Force to use dedupe int ID from FACT INVALIDATION CANDIDATES

This commit is contained in:
Néstor Coppi 2025-08-31 22:36:34 -03:00
parent da6f3336bb
commit 6c6698f84a
No known key found for this signature in database
GPG key ID: C6E214E060B591EC

View file

@ -143,6 +143,7 @@ def resolve_edge(context: dict[str, Any]) -> list[Message]:
Task: Task:
If the NEW FACT represents identical factual information of one or more in EXISTING FACTS, return the idx of the duplicate facts. If the NEW FACT represents identical factual information of one or more in EXISTING FACTS, return the idx of the duplicate facts.
Facts with similar information that contain key differences should not be marked as duplicates. Facts with similar information that contain key differences should not be marked as duplicates.
When returning the idx list, ensure to use the integer id from FACT INVALIDATION CANDIDATES items, not the uuid from EXISTING FACTS.
If the NEW FACT is not a duplicate of any of the EXISTING FACTS, return an empty list. If the NEW FACT is not a duplicate of any of the EXISTING FACTS, return an empty list.
Given the predefined FACT TYPES, determine if the NEW FACT should be classified as one of these types. Given the predefined FACT TYPES, determine if the NEW FACT should be classified as one of these types.