graphiti/graphiti_core
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
..
cross_encoder fix typo and model selector (#843) 2025-08-18 11:15:45 -04:00
driver Graph quality updates (#922) 2025-09-23 17:53:39 -04:00
embedder OpenSearch Integration for Neo4j (#896) 2025-09-09 10:51:46 -04:00
llm_client Gpt 5 default (#849) 2025-08-21 12:10:57 -04:00
migrations cleanup (#894) 2025-09-05 11:30:46 -04:00
models OpenSearch Integration for Neo4j (#896) 2025-09-09 10:51:46 -04:00
prompts Improve node dedup prompts (#942) 2025-09-28 12:18:06 -07:00
search fix-fulltext-syntax-error (#914) 2025-09-23 10:52:44 -04:00
telemetry feat: add telemetry with PostHog and update Docker configurations (#633) 2025-06-27 12:23:30 -07:00
utils fix: Add edge type validation based on node labels 2025-09-29 14:29:24 -07:00
__init__.py chore: Fix packaging (#38) 2024-08-25 10:07:50 -07:00
edges.py OpenSearch updates (#906) 2025-09-14 01:43:37 -04:00
errors.py Add group ID validation and error handling (#618) 2025-06-24 09:33:54 -07:00
graph_queries.py Graph quality updates (#922) 2025-09-23 17:53:39 -04:00
graphiti.py don't save duplicate edges (#927) 2025-09-24 17:24:57 -04:00
graphiti_types.py ensure ascii default to false (#817) 2025-08-08 11:20:02 -04:00
helpers.py fix-fulltext-syntax-error (#914) 2025-09-23 10:52:44 -04:00
nodes.py OpenSearch updates (#906) 2025-09-14 01:43:37 -04:00
py.typed Add py.typed file (#105) 2024-09-11 08:44:06 -04:00