Home/
Part XIII — Expert Mode: Systems, Agents, and Automation/41. Advanced RAG (Beyond the Basics)/41.5 "Answer with provenance" techniques
41.5 "Answer with provenance" techniques
Overview and links for this section of the guide.
On this page
Citations
Don't just answer. Prove it.
Prompt: "For every sentence you write, append the [Doc ID] that supports it."
The UI Pattern
Parse the `[Doc ID]` in the output. Render it as a clickable tooltip that shows the source snippet.
This "citation UI" transforms trust. Users can verify the AI isn't lying.