getzep / graphiti

Build and query dynamic, temporally-aware Knowledge Graphs
https://help.getzep.com/graphiti
Apache License 2.0
1.39k stars 75 forks source link

Use sessions search #197

Closed prasmussen15 closed 1 month ago

prasmussen15 commented 1 month ago

[!IMPORTANT] Refactor database query execution to use sessions and rename query parameters for consistency across multiple files.

  • Database Query Execution:
    • Refactor to use session.run() for executing queries in search_utils.py, community_operations.py, and graph_data_operations.py.
    • Replace execute_query() with session.run() in functions like get_mentioned_nodes(), get_communities_by_nodes(), edge_fulltext_search(), and others.
  • Parameter Naming:
    • Rename _database to database_ in edges.py, nodes.py, search_utils.py, community_operations.py, and graph_data_operations.py for consistency.
  • Miscellaneous:
    • Minor adjustments in query handling and logging across the affected files.

This description was created by Ellipsis for 5dd92c8bf0a0fee258bfdc08162dc73cd9f7dbb3. It will automatically update as commits are pushed.