Prompt LibraryEngineering
RAG Answer Grounding Checker Prompt
Verify a generated answer is grounded in retrieved chunks.
The prompt
Check whether the answer below is fully grounded in the retrieved context.
For each claim in the answer, mark it: GROUNDED (found in context, cite chunk), PARTIALLY GROUNDED (some support, rest inferred), or UNGROUNDED (not in context).
If any claim is UNGROUNDED, rewrite the answer to remove it or add "[not in sources]".
Do not add facts that are true but absent from the context.
Answer:
{{answer}}
Context chunks:
{{context}}Replace the {{fields}} with your own context and tighten the rules to match your domain.



