Earlier in this series, I covered:
A RAG answer can show a source link only if the system preserves a path back to that source.
The retriever works with passages, not just whole documents. Each passage therefore needs more than text. It may also carry a document title, URL, file name, section, page number, document identifier, or chunk identifier. When a passage is retrieved, that metadata can travel with it.
A common citation flow assigns a local label such as [1] to each retrieved passage, asks the model to place those labels beside relevant claims, and then lets the application resolve each label into a readable source reference. Other implementations return structured citation spans or attach references in a separate step. The exact mechanism varies, but the underlying requirement is the same: the answer’s reference must remain connected to the passage and its source metadata.
A citation needs evidence and a source address
A retrieved passage supplies the evidence text. Its metadata supplies the address needed to identify or open the source.
During indexing, an application may store fields such as document ID, title, URL, file name, page, section, publication date, and chunk ID alongside each passage. Not every system uses every field. The important point is that the searchable representation must remain associated with the readable passage and the source it came from.
A URL alone is often too coarse. Several passages can come from the same document, and a long document may contain many unrelated sections. A page number, heading, paragraph anchor, or chunk identifier can help the application return a more specific reference when the source format supports it.
Metadata is not the evidence itself. The title and URL tell the reader where the passage came from; the passage text is what may support the answer. Keeping those roles separate prevents a source name from being mistaken for proof.
How the citation path works
Consider one common implementation.
First, retrieval returns passage text together with stored metadata. The application assigns short identifiers such as [1] and [2] to the passages selected for the model’s context.
Second, the prompt includes both the labeled passages and an instruction describing how citations should appear. The model may be asked to place the relevant identifier after a sentence or claim. Some systems instead request structured output that associates a span of generated text with one or more retrieved references.
Third, the application checks the returned identifiers against the passages that were actually supplied. It then replaces or renders each identifier as a source title, link, page, section, or expandable excerpt. This resolution step should use the application’s stored mapping rather than asking the model to reconstruct a URL from memory.
The displayed citation may therefore contain information the model never had to reproduce character by character. The model emits [1]; the application knows that [1] corresponds to a particular passage and source address.

A fictional travel-policy example
Suppose retrieval returns two passages from a fictional travel policy.
Passage [1] says that reimbursement claims must be submitted within 30 days. Its metadata identifies the Travel Policy, the Reimbursement section, and the policy URL. Passage [2] says that receipts are required for expenses above $75 and carries its own section metadata.
The model receives both labeled passages and produces:
“Submit the claim within 30 days [1]. Include a receipt when the amount is above $75 [2].”
The application does not need the model to invent two links. It maps [1] and [2] to the metadata that arrived with the retrieved passages. Both references may open the same document but point readers toward different sections or excerpts.
This example separates three layers that are easy to collapse: the passage contains the evidence, the identifier connects the answer to that passage, and the metadata tells the interface how to display or open the source.
A source link is not the same as claim support
A citation marker proves only that the response contains a reference. It does not prove that the referenced passage supports the nearby wording.
Consider a fictional sentence: “Employees may carry over up to five unused days, and approval is automatic [1].” The source says: “Employees may carry over up to five unused days with manager approval.”
The citation supports the five-day limit. It does not support the claim that approval is automatic; the source says the opposite. Because the marker appears after the complete sentence, a reader could mistakenly treat both clauses as grounded.
Similar gaps can occur when a citation supports only one number, one clause, or one interpretation within a longer statement. A link can also point to the correct document while the retrieved passage is unrelated to the specific claim.
This is why citation presence and citation support are different properties. The interface can make verification easier, but the reference still has to be compared with the claim.

What citations can, and cannot, show
When the passage-to-source mapping is intact, citations provide provenance: they show which source the system associates with part of the answer. They also give a reader a practical route for checking the underlying material.
They do not establish that the source is correct, current, or authoritative. A perfectly resolved citation can lead to an outdated policy, a duplicated page, or a source that is itself wrong.
Citations also depend on retrieval. If the needed evidence was not retrieved, the model cannot cite it from the supplied context. If metadata is missing or stale, the answer may use a passage correctly while the displayed link is broken or too broad.
Granularity matters as well. A citation attached to a paragraph may leave unclear which sentence it supports. Several chunks from one document may be collapsed into a single source card, while one claim may require evidence from multiple passages.
Finally, implementations differ. Some systems let the model place inline markers. Others return structured mappings between answer spans and retrieved references, or add citations after generation. The presence of a familiar [1] label reveals little about which mechanism produced it.
A RAG citation depends on a preserved relationship among the generated claim, the retrieved passage, and the passage’s source metadata.
A common system labels retrieved passages, asks the model to emit those labels, and resolves them into readable links or references. Other systems represent the same relationship through structured citation data.
The resulting citation improves traceability. It does not, by itself, prove that the source is correct or that the cited passage supports every nearby claim.
A possible next explainer will cover query rewriting in RAG: how an application can transform a conversational question into one or more retrieval queries, without making comparative performance claims.


The carryover example is the one I keep running into. The marker sits at the end of the sentence, so it quietly vouches for every clause before it. Splitting the answer into single claims before attaching markers helps a lot, because then a clause with no passage behind it shows up as a bare sentence instead of hiding next to one that is supported.