diff --git a/graphiti_core/prompts/extract_edges.py b/graphiti_core/prompts/extract_edges.py index dc73cbf5..9ae3f6f9 100644 --- a/graphiti_core/prompts/extract_edges.py +++ b/graphiti_core/prompts/extract_edges.py @@ -111,7 +111,7 @@ You may use information from the PREVIOUS MESSAGES only to disambiguate referenc 2. Each fact must involve two **distinct** entities. 3. Use a SCREAMING_SNAKE_CASE string as the `relation_type` (e.g., FOUNDED, WORKS_AT). 4. Do not emit duplicate or semantically redundant facts. -5. The `fact_text` should quote or closely paraphrase the original source sentence(s). +5. The `fact_text` should closely paraphrase the original source sentence(s). Do not verbatim quote the original text. 6. Use `REFERENCE_TIME` to resolve vague or relative temporal expressions (e.g., "last week"). 7. Do **not** hallucinate or infer temporal bounds from unrelated events. diff --git a/graphiti_core/utils/maintenance/edge_operations.py b/graphiti_core/utils/maintenance/edge_operations.py index a5578f8f..60a35357 100644 --- a/graphiti_core/utils/maintenance/edge_operations.py +++ b/graphiti_core/utils/maintenance/edge_operations.py @@ -480,9 +480,7 @@ async def resolve_extracted_edge( start = time() # Prepare context for LLM - related_edges_context = [ - {'id': i, 'fact': edge.fact} for i, edge in enumerate(related_edges) - ] + related_edges_context = [{'id': i, 'fact': edge.fact} for i, edge in enumerate(related_edges)] invalidation_edge_candidates_context = [ {'id': i, 'fact': existing_edge.fact} for i, existing_edge in enumerate(existing_edges) diff --git a/uv.lock b/uv.lock index 379a1ffc..a67aa561 100644 --- a/uv.lock +++ b/uv.lock @@ -783,7 +783,7 @@ wheels = [ [[package]] name = "graphiti-core" -version = "0.21.0rc7" +version = "0.21.0rc8" source = { editable = "." } dependencies = [ { name = "diskcache" },