Worked lessons · 19 November 2026
Lesson 05 / 12 · approximately 8–12 minutes
Build an answer from current evidence
Evaluate retrieval and the answer as separate stages.
The idea
Retrieval-augmented generation combines selected source material with a generation step. Loading, chunking, indexing, filtering, retrieval and reranking all affect what reaches the model. Hybrid search can combine lexical and vector signals. Reranking may improve ordering but adds another model or heuristic to evaluate. Larger context does not make every included passage relevant. Graph and agentic retrieval are optional complexity; compare them against a simple scoped baseline first.
Worked example
Three fictional policy cards say: A, dated January, refunds within 30 days; B, dated March, explicitly replaces A with 14 days; C, another customer private note. For a purchase ten days ago, use B if it governs the case. Exclude A as superseded and C by ownership. If the question asks whether an exception was approved and no card says so, answer that approval is unknown. A citation to B would not prove the missing exception.
Use it in a workflow
- Maintain provenance, owner/project scope, revision and expiry.
- Evaluate retrieval recall with judged evidence, including negative cases.
- Require each answer claim to be supported by the actual cited passage.
- Test abstention, corrections, deletion and malicious source instructions.
Try it without a model
Draft a two-sentence answer for the cards and ten-day purchase. Then explain why a request for an approved exception cannot be answered from them.
Compare with the answer criteria
The current policy allows a request within 14 days, so this purchase is inside that window. No evidence establishes approval or eligibility beyond the timing rule. The answer must not imply that the refund has been granted.