41.5 "Answer with provenance" techniques

Overview and links for this section of the guide.

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.

Where to go next