graphiti/graphiti_core/utils/maintenance
Daniel Chalef 8ab119cca8 fix: Add edge type validation based on node labels
- Add DEFAULT_EDGE_NAME constant for 'RELATES_TO'
- Implement pre-resolution validation to reset invalid edge names
- Add post-resolution validation for LLM-returned fact types
- Rename parameter from edge_types to edge_type_candidates for clarity
- Add comprehensive tests for validation scenarios

This ensures edges conform to edge_type_map constraints and prevents
misclassification when edge types don't match node label pairs.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-29 14:29:24 -07:00
..
__init__.py Gemini support (#324) 2025-04-06 09:27:04 -07:00
community_operations.py Add support for Kuzu as the graph driver (#799) 2025-08-27 11:45:21 -04: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: Add edge type validation based on node labels 2025-09-29 14:29:24 -07:00
graph_data_operations.py OpenSearch updates (#906) 2025-09-14 01:43:37 -04:00
node_operations.py Fix index out of range errors in LLM deduplication responses (#939) 2025-09-26 14:57:48 -07:00
temporal_operations.py ensure ascii default to false (#817) 2025-08-08 11:20:02 -04:00
utils.py chore: Fix packaging (#38) 2024-08-25 10:07:50 -07:00