RAG lesson 05 · Generate grounded answers
Versioned evidence corpus · deterministic retrieval fixtures
Lighthouse Policy Evidence Assistant. A fictional support assistant answers questions from a versioned product-policy corpus. It must retrieve current, authorized evidence, cite exact source spans, and abstain when evidence is missing or conflicting.
01 · Smallest useful mechanism
Grounded generation constrains the answer to selected evidence, attaches stable citations, and validates material claims. It must handle insufficient or conflicting evidence without asking the model to improvise.
A citation proves nothing unless its span entails the nearby claim.
02 · Experiment
Deterministic retrieval fixture
This workbench uses inspectable ranking and evidence fixtures and injected failures. It does not make live calls or execute external effects.
Retrieval workbench · lighthouse-grounding-v5
Injected failure
The evidence supports a 30-day window and one exception, but contains no refund-processing time.
The trace has not run.
Commit to an implementation, then inject the failure and inspect the actual state transitions.
03 · Implementation brief
Your learning artifact
Stored only in this browser. No account required; course reset does not delete it.
04 · Check your understanding
Primary sources · verified 2026-08-02
Models can cite topically related passages, blend incompatible versions, import unsupported parametric knowledge, or follow instructions embedded in retrieved text while appearing well sourced.
Common mistake: Requiring citations prevents hallucination. Citation formatting can be syntactically correct while the cited span does not support the claim. Support must be inspected or evaluated separately.
Transfer exercise: Write a claim ledger for eligibility, time window, exception, and next action; attach one exact span to each or abstain.
Next: Grounding must be measured component by component so retrieval gains are not hidden behind one end-to-end answer score.