Skip to main content
← Guides

Exercise: cited answers from 10 source pages

Planning

A self-contained RAG exercise: use 10 site pages as a corpus and produce 10 answers, a citation table, an evaluation sheet and a failure log, with a rubric and a model-answer outline.

The task

Use ten site pages as the only corpus for a question-answering workflow. Do not add external search or fill gaps from memory. The question count and passing score are teaching constraints for this exercise, not universal production standards.

  1. Choose ten Learn term pages concentrated in one area, such as RAG or local deployment.
  2. Split them into retrievable passages and record whether you split by paragraph, heading or fixed length.
  3. Write ten questions; three should have no answer in the corpus, to test abstention.
  4. Every answer must cite a page title, link and supporting source sentence.
  5. Record failures: incorrect answers, off-topic answers, fabrication or citations to the wrong page.

Deliverables

FileContentsCheck
answers.mdTen answers, each with citationsEvery citation links back to a source where the sentence can be located
citations.csvQuestion / cited page / source sentence / supported?Ten rows, no blank rows
eval.csvQuestion / verdict (correct, incorrect, abstained) / reasonAnother reader can review the verdict
failures.mdFailures and proposed fixesRecord actual outcomes and triggers; label deliberately constructed failure inputs

Rubric

Award 0–2 for each item, for a total of ten:

Dimension012
Citation accuracyPage unrelated to answerRelevant page, but sentence does not support answerEvery source sentence can be located and supports the answer
AbstentionAnswers unsupported questions anywayAbstains without explaining the gapAbstains on all three unanswerable questions and explains what is missing
Reviewable evaluationOnly “feels right”Verdict without a reasonVerdict and reviewable reason for every question
Failure logNo logSymptoms onlyTrigger conditions and proposed fixes
ReproducibilityOthers cannot follow the processA step is missingChunking, retrieval and prompting steps can be followed

Eight is the exercise's passing score. Below six, return to the RAG evaluation guide and repeat the exercise.

Model answer outline

The corpus is your choice, so this supplies an answer structure rather than answers to every question:

Question: Why preserve headings and page numbers when chunking?
Answer: They can be stored as metadata to filter retrieval by document structure.
Citation: How to Chunk Documents for Retrieval, “How to do it”, item 6.
Source sentence (Chinese original): 保留结构信息:标题、章节、页码存进元数据,检索时能过滤。
Verdict: correct; the cited sentence directly supports the answer.

An acceptable abstention:

Question: What was this model's accuracy on 2026-11-01?
Answer: The corpus contains no evaluation data for that date, so this cannot be answered.
An official evaluation page or a suitable evaluation would be needed.
Verdict: abstained; the required fact is absent from the corpus.

Common misses

  • Citing a whole page instead of a supporting sentence makes checking difficult.
  • Semantic similarity does not establish support; an answer may go beyond the cited text.
  • Abstain on unanswerable questions rather than filling gaps from memory.
  • Normal inputs alone miss boundary cases. Add unanswerable questions, missing fields and malformed inputs.

Sources

Source snapshot: 2026-11-03; item-specific rechecks and their scope are recorded in the text or source notes. Features and terms may change; check the original sources before use.