Skip to main content

Lesson - Checking Sources in RAG Answers

Lesson plan · about 15 min · refs checked 2026-11-07 (reference links and dates only)

Learners split a RAG answer into retrieval, passage and generation responsibilities, use a three-column check sheet to locate the failing stage, and propose a verifiable improvement.

Lesson objectives
Split one answer into three responsibilities: whether retrieval hit, whether passages are sufficient, and whether generation goes beyond passages. Find the passage and position for each claim; mark it unsupported if none can be found. Explain that chunking can cut context and reranking only changes candidate order, not facts. Propose one improvement and state how to verify whether it worked.
Materials
Anthropic engineering post Introducing Contextual Retrieval: traditional RAG can lose context during encoding and fail retrieval. Cohere Rerank documentation: given a query and document list, order by semantic relevance. LlamaIndex CitationQueryEngine example: answers with source-node citations. Three fictional internal document passages, one with a clause cut from its context, plus a three-column check sheet.
Steps
    3-minute reference answer: groups read the question and documents and manually mark passages that should be hit. 4-minute retrieval check: compare system passages and classify them as hit, missed, or missing context. 4-minute generation check: check the answer sentence by sentence against passages and mark claims beyond passages or misplaced citations. 4-minute improvement: each group gives one action and verification method; the class groups them by which responsibility stage changed.
Common misconceptions
Assuming an answer with citations is trustworthy; a citation may point to a passage that does not support the sentence. Blaming the model for retrieval misses; chunking may cut context or wording may differ. Assuming reranking can supply missing facts; it only adjusts candidate order. Copying uplift figures from a vendor blog into your own corpus; those results depend on specific data and settings.
Assessment checks
The three-column sheet is complete: every claim has a passage position or is explicitly marked unsupported. The group can attribute its failure to one of the three stages and point to evidence for that judgment. The improvement has a verification method, such as rerunning the same questions and comparing the number of unsupported claims.

Example and interpretation

A teaching scenario, not a measured or executed site test.

Class exercise: the answer says the event is free, but the cited passage only gives time and place. Mark the claim unsupported, then decide whether the failure is missed retrieval or generation beyond the passage.

How to check your practice

Explain the example in your own words, inspect input constraints, then verify against the source. Revisit concepts if you cannot explain why; supply missing dates, fields or permissions; withdraw unsupported conclusions.

For this topic, start with concept confusion · See all six scenarios and their reasoning

Sources
  • Anthropic: Introducing Contextual Retrieval ↗
  • Cohere: An Overview of Cohere's Rerank Model ↗
  • LlamaIndex: CitationQueryEngine example ↗