Citations (source attribution)
Links from each claim in an AI answer to the passage it came from, so a reader can verify it.

Citations link each claim in an AI answer to the passage it came from, so a reader can verify it. The interface shows the document, page or quote behind a sentence, and checking an answer takes a click instead of a search.
In a RAG system the model is asked to mark which retrieved passage supports each statement, and the interface shows the document, page or quote. Citations make grounding visible and speed up checking, but they are generated too: a model can cite a real document that does not say what the answer claims. Some APIs reduce one part of the risk. Anthropic’s citations feature extracts the cited text itself and guarantees valid pointers into the documents you supplied. That proves the quote exists; it does not prove the quote supports the sentence next to it.
Verifying in code that the quoted text exists in the source closes the first gap. The second needs sampling and a metric such as faithfulness, judged by a person or an LLM judge. A citation pointing at an outdated policy is still a wrong answer, so keep the source documents current.
Sources
- Claude Docs: Citations platform.claude.com
Related terms
- Grounding: Tying a model’s answer to specific supplied sources, such as retrieved documents or search results, instead of its training memory.
- RAG (retrieval-augmented generation): Finding relevant documents first and putting them into the prompt, so the model answers from them.
- Hallucination: A fluent, confident answer that is false or not supported by the sources.
- Faithfulness (groundedness): A RAG metric: the share of claims in an answer that are supported by the retrieved sources, not by the model’s memory or invention.
- LLM as judge: Using a model with a rubric to grade another model’s output.
