Citation Attribution
In this article
- Store each citation as data on a claim, with the chunk ids it rests on, in place of markers the model types into its text.
- Read the citations that Claude and Gemini return and map them back to your own records.
- Check a citation in two steps, does it resolve and does the cited text back the claim, and say why a link that works can still be wrong.
- Render source titles and links from your own records, never from the model's words.
- Terms defined here: citation.
Overview
A customer writes: "My router arrived 20 days ago. Can I still get a refund? And who pays to send it back?" The reply says refunds can be requested up to 14 days after delivery, with a small link to the refunds page. The link looks like proof. But who checked that it points at a page Brightline holds, and that the text behind it says 14 days?
In a made-up example, Brightline, a home-internet provider, runs a support assistant whose search code puts the best few chunks, short pieces of its help pages, into the request, each with a chunk id that names the page and the place in it, before the model writes the reply.
After this you can store a citation as data on a claim, read the citations Claude and Gemini return, and accept one only when it points at a record you hold and that record backs the claim.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Markers the model writes
- Citations as data
- What the provider gives you
- Checking a citation
- Rendering from the manifest
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions