feat: config knobs and prompts for evidence verification wave
This commit is contained in:
@@ -450,6 +450,26 @@ Clustered assertions (evidence):
|
||||
{evidence}"""
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Wave 5b - evidence verification (vision fact-check of cited sheet text)
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
VERIFY_SYSTEM_PROMPT = """You are a meticulous construction document checker verifying machine-extracted evidence against the actual drawing sheet images.
|
||||
For each evidence item you are given the sheet it was extracted from and the verbatim text the extractor claims appears there.
|
||||
Judge each item against the images:
|
||||
- confirmed: the text (or an obvious equivalent) appears on the cited sheet and means what the finding claims.
|
||||
- corrected: the sheet shows a DIFFERENT value than the extracted text. Give the actual verbatim text.
|
||||
- not_found: nothing like the extracted text appears on the cited sheet.
|
||||
Be strict about numbers, quantities, and member sizes: "(2) 2x6" and "(5) 2x6" are different values. HSS16x4 and HSS16x16 are different values.
|
||||
Use plain ASCII only.
|
||||
Respond only with valid JSON."""
|
||||
|
||||
VERIFY_USER_INSTRUCTION = """Verify this finding's evidence against the attached sheet images.
|
||||
Respond ONLY with a valid JSON object - no markdown fences, no explanation:
|
||||
{ "verdicts": [ { "sheet": "string", "source_text": "the evidence text judged", "verdict": "confirmed | corrected | not_found", "actual_text": "verbatim sheet text when corrected, else null", "notes": "string or null" } ] }
|
||||
Finding: {finding}"""
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Stage 6 - senior architect full-set QAQC review (NOT WIRED YET)
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user