getzep / graphiti

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

add delete nodes by group_id #217

Closed prasmussen15 closed 1 week ago

prasmussen15 commented 1 week ago

[!IMPORTANT] Add delete_by_group_id() to Node class, update routing in query functions, and modify tests in test_graphiti_int.py.

  • Behavior:
    • Add delete_by_group_id() method in Node class in nodes.py to delete nodes by group_id.
    • Update delete() method in Node class to match nodes with labels Entity, Episodic, or Community.
  • Routing:
    • Add routing_='r' to get_by_uuid(), get_by_uuids(), and get_by_group_ids() in edges.py and nodes.py.
  • Tests:
    • Import Node class in test_graphiti_int.py.
    • Remove unused code in test_graphiti_int.py related to node and edge creation.
  • Misc:
    • Update version in pyproject.toml from 0.4.1 to 0.4.2.

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