Skip to content

Commit

Permalink
Fixed CLEAR_SESSION_QUERY
Browse files Browse the repository at this point in the history
  • Loading branch information
alexthomas93 committed Feb 20, 2025
1 parent f56ba20 commit e84230a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo4j_graphrag/message_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"MATCH (s:`{node_label}`) "
"WHERE s.id = $session_id "
"OPTIONAL MATCH p=(s)-[:LAST_MESSAGE]->(:Message)<-[:NEXT*0..]-(:Message) "
"WITH CASE WHEN p IS NULL THEN [s] ELSE nodes(p) + [s] END AS nodes "
"WITH CASE WHEN p IS NULL THEN [s] ELSE nodes(p) END AS nodes "
"UNWIND nodes AS node "
"DETACH DELETE node;"
)
Expand Down

0 comments on commit e84230a

Please sign in to comment.