generated from langchain-ai/integration-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
libs/neo4j/langchain_neo4j/chat_message_histories/neo4j.py
line 73:
self._driver.execute_query(
CREATE_SESSION_NODE_QUERY.format(node_label=self._node_label),
{"session_id": self._session_id},
database=self._database,
)
This is now creating duplicate session nodes due to the below commit in the neo4j-graphrag-python
The library used now runs a merge commit with createdAt appended, causing session nodes to be created every time you call Neo4jChatMessageHistory, regardless of passing in a previous sessionId.
Each session node created will also then have messages appended to them each time you create a new message, leading to exponential data increase.
The poetry.lock file uses version 1.6.1 of this library, but the pyproject.toml uses ^1.5.0. Perhaps setting it to 1.6.1 specifically will fix the issue?
Metadata
Metadata
Assignees
Labels
No labels