A RAG system should answer from the chunks it retrieved, but a model can still add facts from its own training. The check is simple: list every factual claim in the answer, then search the retrieved chunks for each one. A claim that is not in any chunk is unsupported, even if it sounds right, and must be flagged before the answer is used.
Prerequisites
- A RAG answer and the chunks it was built from.
- A way to search the chunk text for a word or date.
- A rule for what to do with an unsupported claim: remove it or verify it elsewhere.
Steps
Step 1: List the answer’s claims
Break the answer into its factual claims: dates, names, numbers and rules. One claim per line, in your own words, so you can check each one separately.
Step 2: Search the chunks
For each claim, search the retrieved chunks for the fact. A claim is supported only if the chunk text actually states it; a similar wording is not enough.
Step 3: Flag the unsupported ones
Mark every unsupported claim and remove it from the answer, or verify it against a named source before keeping it. An answer with flagged claims is not ready to send.
Worked example: Cedar Street Library donation answer
The fictional Cedar Street Library’s RAG system answers a question about book donations with 3 claims. The retrieved chunks support 2 of them.
| Claim in the answer | In the retrieved chunks | Verdict |
|---|---|---|
| Donations are accepted on Saturdays | Yes: chunk 1 | Supported |
| Donations go to the front desk | Yes: chunk 2 | Supported |
| Donations earn a 5-pound voucher | No: not in any chunk | Unsupported: flag it |
Two of the 3 claims are supported by the chunks, and the voucher claim is not in any chunk, so it is flagged and removed from the answer.
Expected result. Every claim in the answer is checked against the retrieved chunks, and unsupported claims are flagged, not sent. UNTESTED: this guide was not run against a live model or API. The worked example below is fictional practice material, and its result is the expected result, not a measured one.
Limits
- A claim can be true and still unsupported by the chunks; this check tests grounding, not truth.
- Paraphrased claims need judgement; when in doubt, flag the claim.
- This guide does not cover fixing the retriever when it returns the wrong chunks.
