graphiti/graphiti_core/utils/maintenance
Daniel Chalef dc0088f936 fix: Improve edge extraction entity ID validation
Fixes invalid entity ID references in edge extraction that caused warnings like:
"WARNING: source or target node not filled WILL_FIND. source_node_uuid: 23 and target_node_uuid: 3"

Changes:
- Format ENTITIES list as proper JSON in prompt for better LLM parsing
- Clarify field descriptions to reference entity id from ENTITIES list
- Add explicit entity ID validation as #1 extraction rule with examples
- Improve error logging (removed PII, added entity count and valid range)

These changes follow patterns from extract_nodes.py and dedupe_nodes.py where
entity referencing works reliably.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-02 15:11:38 -07:00
..
__init__.py Gemini support (#324) 2025-04-06 09:27:04 -07:00
community_operations.py Remove ensure_ascii configuration parameter (#969) 2025-10-02 15:10:57 -07:00
dedup_helpers.py Refactor batch deduplication logic to enhance node resolution and track duplicate pairs (#929) (#936) 2025-09-26 08:40:18 -07:00
edge_operations.py fix: Improve edge extraction entity ID validation 2025-10-02 15:11:38 -07:00
graph_data_operations.py OpenSearch updates (#906) 2025-09-14 01:43:37 -04:00
node_operations.py Remove ensure_ascii configuration parameter (#969) 2025-10-02 15:10:57 -07:00
temporal_operations.py Remove ensure_ascii configuration parameter (#969) 2025-10-02 15:10:57 -07:00
utils.py chore: Fix packaging (#38) 2024-08-25 10:07:50 -07:00