Exercise: cited answers from 10 source pages
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.
- Choose ten Learn term pages concentrated in one area, such as RAG or local deployment.
- Split them into retrievable passages and record whether you split by paragraph, heading or fixed length.
- Write ten questions; three should have no answer in the corpus, to test abstention.
- Every answer must cite a page title, link and supporting source sentence.
- Record failures: incorrect answers, off-topic answers, fabrication or citations to the wrong page.
Deliverables
| File | Contents | Check |
|---|---|---|
answers.md | Ten answers, each with citations | Every citation links back to a source where the sentence can be located |
citations.csv | Question / cited page / source sentence / supported? | Ten rows, no blank rows |
eval.csv | Question / verdict (correct, incorrect, abstained) / reason | Another reader can review the verdict |
failures.md | Failures and proposed fixes | Record actual outcomes and triggers; label deliberately constructed failure inputs |
Rubric
Award 0–2 for each item, for a total of ten:
| Dimension | 0 | 1 | 2 |
|---|---|---|---|
| Citation accuracy | Page unrelated to answer | Relevant page, but sentence does not support answer | Every source sentence can be located and supports the answer |
| Abstention | Answers unsupported questions anyway | Abstains without explaining the gap | Abstains on all three unanswerable questions and explains what is missing |
| Reviewable evaluation | Only “feels right” | Verdict without a reason | Verdict and reviewable reason for every question |
| Failure log | No log | Symptoms only | Trigger conditions and proposed fixes |
| Reproducibility | Others cannot follow the process | A step is missing | Chunking, 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 | URL |
|---|---|
| This site: RAG end to end, from documents to answers | https://learn.specul.com/guide/RAG%20%E5%85%A8%E9%93%BE%E8%B7%AF%EF%BC%9A%E4%BB%8E%E6%96%87%E6%A1%A3%E5%88%B0%E7%AD%94%E6%A1%88/ |
| This site: how to chunk documents for retrieval | https://learn.specul.com/guide/%E6%80%8E%E4%B9%88%E7%BB%99%E6%96%87%E6%A1%A3%E5%81%9A%E5%88%86%E5%9D%97/ |
| This site: how to evaluate RAG | https://learn.specul.com/guide/%E6%80%8E%E4%B9%88%E8%AF%84%E6%B5%8B%20RAG%20%E7%9A%84%E6%95%88%E6%9E%9C/ |
| This site: how to verify AI output | https://learn.specul.com/guide/%E6%80%8E%E4%B9%88%E9%AA%8C%E8%AF%81%20AI%20%E7%9A%84%E8%BE%93%E5%87%BA/ |
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.