RAGcore
Citations & grounding
Every claim points at the passage it came from, and answers say “not in the documents” when it isn’t.
What it is and why it exists
Grounded generation asks the model to answer only from provided sources and to cite them (chunk IDs, quotes). Citations let users verify, let you measure faithfulness automatically, and make abstention a first-class answer.
Quick prototype
“Cite sources like [1].”
In production, at scale
Stable chunk IDs in the context, citations validated after generation (cited ID exists and supports the claim), quotes checked for exact match, UI that links to the passage, and a tracked abstention rate.
Vendors and tools
| Anthropic citations | Native citations over provided documents |
|---|---|
| Cohere RAG / grounded generation | Citations in responses |
| Vertex AI grounding | Grounding on your data or search |
On AWS: Bedrock Knowledge Bases RetrieveAndGenerate returns citations; Bedrock Guardrails contextual grounding checks.
How it fails
- Real citation, unsupported claim
- Citation IDs the model invented
- Never abstaining because the prompt demands an answer
What the interviewer asks next
How do you check a citation automatically?
Verify the cited chunk was in the context, then check entailment: does the chunk support the sentence? Code for the first, a calibrated judge or NLI model for the second.