feat: treat disputed extracted values as unverified in constructability and critic prompts
This commit is contained in:
@@ -32,6 +32,16 @@ def _evidence_block(cluster: Dict) -> str:
|
||||
f"{a.get('attribute','')} = {a.get('value','')} | "
|
||||
f"\"{a.get('source_text','')}\""
|
||||
)
|
||||
disputes = cluster.get("disputed_attributes") or []
|
||||
if disputes:
|
||||
lines.append("")
|
||||
for d in disputes:
|
||||
lines.append(
|
||||
"DISPUTED VALUE (possible extraction misread): "
|
||||
f"attribute={d.get('attribute','')} "
|
||||
f"values={' | '.join(d.get('values') or [])} "
|
||||
f"(assertions {', '.join(d.get('assertion_ids') or [])})"
|
||||
)
|
||||
return "\n".join(lines)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user