Grounded answers with citations
For engineers
Making answers come only from retrieved sources, cite them precisely and say so plainly when the sources do not contain the answer
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
Why does a grounded-answer prompt give each retrieved chunk an id?
Check yourself · 2 of 5
A user asks about a topic the knowledge base never covers. The vector search still returns five chunks. Why?
Check yourself · 3 of 5
Which citation is easiest for a reader to verify?
Check yourself · 4 of 5
A cited sentence says 'up to 3 days a week [1]'. The cited chunk says 'up to 2 days a week'. How should the claim be labelled?
Check yourself · 5 of 5
Two retrieved chunks give different hotel limits. What should the answer do?
Topics
- Prompting for answers grounded in sources5 min read · Tagged source blocks, instructions to answer only from them, direct quotes before claims, and provider citation features such as Claude's citations API
- Saying no answer was found5 min read · Detecting empty or weak retrieval, relevance thresholds and wording an honest not-found answer instead of a guess from training data
- Citation formats users can check5 min read · Inline markers, footnotes, quoted spans, page and section links and source previews that let a reader verify a claim in one click
- Checking every claim against its citation5 min read · Claim-level verification, unsupported and contradicted statements, and citations that exist but do not support the sentence they follow
- Handling conflicting and outdated sources5 min read · Two policies that disagree, superseded versions and dated documents, and answers that surface the conflict instead of picking silently
Start here
- Citations (Claude API docs) (opens in a new tab)DocsFree
How to pass documents with citations enabled and read back cited text with character, page or block locations.
- Enabling Large Language Models to Generate Text with Citations (ALCE) (opens in a new tab)PaperFree
A benchmark that scores answers on fluency, correctness and citation quality, and shows where models still fail.
- Lost in the Middle: How Language Models Use Long Contexts (opens in a new tab)PaperFree
Shows models use evidence at the start and end of a long context better than evidence in the middle.
Scenarios
Helps to know first
110 questions · last verified 2026-12