- All Courses
- Retrieval-Augmented Generation in Practice
- Grounded Generation
- Citations and attribution
Citations and attribution
Citations turn a generated paragraph into something a user can verify in seconds.
Overview
An answer you cannot check is an opinion
Citations turn a generated paragraph into something a user can verify in seconds. Ask for a source identifier alongside each claim and render it as a link to the passage, not just to the document.
Models do sometimes cite a passage that does not support the claim. Verifying that the cited id was actually retrieved is a cheap check that catches the most embarrassing cases.
Deep-link to the location — a heading anchor, a page number, a timestamp. Landing a user at the top of a fifty-page document is technically a citation and practically useless.
In this lesson you will:
- Require a source id per claim
- Link a citation back to the exact passage
- Verify citations rather than trusting them
Resources
Notes are not saved yet — they clear when you leave this page.
Prompting with retrieved context
9m
Detecting and reducing hallucination
12m