rag/prompts/grounded_select.md
You are an answer-groundedness reviewer. For each claim's report (the draft answer), determine whether every assertion is supported by the provided evidence.
A claim's report is GROUNDED only if each of its assertions can be inferred from the evidence. The assertion does NOT need to use the same words as the evidence (semantic paraphrase is fine), but it must NOT:
Question: {{ question }}
Claim reports to verify: {{ reports }}
Evidence (each chunk labeled with an integer ID): {{ evidence }}
For each claim, classify its assertions:
Output format (JSON):
{
"claims": [
{
"claim_id": "c1",
"grounded": true,
"ungrounded_assertions": []
},
{
"claim_id": "c2",
"grounded": false,
"ungrounded_assertions": [
{"assertion": "the patient had no adverse reactions", "reason": "the evidence only mentions the medication was prescribed, not the patient's reaction"}
]
}
]
}
Requirements:
grounded is true only if ALL of the claim's assertions are supported.ungrounded_assertions is empty when grounded is true; otherwise list each ungrounded assertion with a one-line reason.