From c6f7c985988d04a034cd05c2a3a3d5af4f23196d Mon Sep 17 00:00:00 2001 From: prestonrasmussen Date: Thu, 26 Jun 2025 15:38:05 -0400 Subject: [PATCH] updates --- graphiti_core/prompts/dedupe_edges.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graphiti_core/prompts/dedupe_edges.py b/graphiti_core/prompts/dedupe_edges.py index 6ccbbf2..5f5f317 100644 --- a/graphiti_core/prompts/dedupe_edges.py +++ b/graphiti_core/prompts/dedupe_edges.py @@ -141,6 +141,7 @@ def resolve_edge(context: dict[str, Any]) -> list[Message]: Task: If the NEW FACT represents the same factual information as any fact in EXISTING FACTS, return the idx of the duplicate fact. + Facts with similar information that contain key differences should not be marked as duplicates. If the NEW FACT is not a duplicate of any of the EXISTING FACTS, return -1. Given the predefined FACT TYPES, determine if the NEW FACT should be classified as one of these types. @@ -152,6 +153,7 @@ def resolve_edge(context: dict[str, Any]) -> list[Message]: Guidelines: 1. The facts do not need to be completely identical to be duplicates, they just need to express the same information. + 2. Some facts may be very similar but will have key differences, particularly around numeric values in the facts. """, ), ]