Citation and Attribution
An answer you can check is worth more than an answer you simply have to believe. Citation and attribution is the last stage of a retrieval pipeline: tying each claim in the generated answer back to the specific retrieved passage it came from, so the reader can follow the pointer and see for themselves.
How it is doneThe retrieved chunks are handed to the model with identifiers attached — a number, a title, a document id — and the prompt requires every sentence to carry the id of the passage supporting it. The pipeline then resolves those ids back to real URLs or page numbers. Two checks matter afterwards: whether the cited passage exists, and whether it actually supports the sentence attached to it. A model that invents a plausible-looking marker is a known failure mode, which is why resolution is done in code rather than trusted to the model.
Why it carries the whole system- It turns an unverifiable claim into a checkable one — the difference between a tool a clinician, lawyer or support agent can actually use and one they cannot.
- It localises failure. A wrong answer with a citation tells you whether retrieval fetched the wrong document or the model misread the right one.
- It credits the source, so publishers and internal document owners get traffic instead of having their text silently absorbed.
Benchmarks such as ALCE score answers on citation precision and recall rather than fluency, and the measurement is unforgiving: systems that read beautifully often cite passages that do not contain the claim. Without this step a retrieval system is a chatbot with extra machinery — the grounding is there, but nobody can confirm it.
Citation and attribution is the final stage of a retrieval-augmented pipeline: linking each claim in the generated answer to the specific retrieved passage that supports it, with the identifiers resolved back to real sources in code rather than trusted to the model. It makes an answer verifiable instead of merely plausible, and it localises blame when the answer is wrong — bad retrieval or bad reading. Without it the grounding exists but nobody can confirm it.
Think of a student who hands in a brilliant essay, and another who hands in a good essay with footnotes. Only the second one can be checked. When an AI assistant looks things up before answering, citation and attribution is the part that shows you where each sentence came from — which document, which page, which link. You can click it and see for yourself.
This matters because these systems sound exactly as confident when they are wrong as when they are right. A footnote is how you tell the difference. It also gives credit back to whoever wrote the original.