Information Provenance
Citations
Enable with "citations": {"enabled": true} on a document block (plain text, PDF or custom content). Claude then returns citations tied to the provided documents:
| Document type | Location fields |
|---|---|
| Plain text | start_char_index (0-indexed), end index, document_index |
start_page_number (1-indexed), end page, document_index | |
| Custom content | content_block_location with block indices |
Each citation includes cited_text. Key facts:
- The API parses citations into this format, so they are guaranteed to contain valid pointers to the provided documents.
cited_textdoes not count toward output tokens, and is not counted as input tokens when passed back, which can be cheaper than prompting Claude to output direct quotes.- Anthropic's evaluations found citations more likely to cite relevant quotes than prompt-based approaches.
- You can give a document a
titleand acontextfield (metadata that is not cited from). - Citations and structured outputs cannot be used together (citations interleave with text; structured outputs force a strict JSON shape). Choose one per request, or run two steps.
Provenance in your own pipelines (design guidance)
- Carry a claim-to-source mapping through every stage: each finding keeps its source id, location, retrieval date and quote. When subagents return findings (1.3), require the source attached, or provenance is lost at the summary step.
- In extraction schemas (4.3), add
source_quoteorsource_locationfields and verify the quote appears in the source (4.4). - Preserve dates: when a fact has a publication or "as of" date, keep it, because recency changes which source wins.
Conflicting sources (design guidance)
Do not silently pick one or average them. Instead:
- Report the conflict with both claims and their sources.
- Prefer by explicit rules (primary over secondary, newer over older when the topic is time-sensitive, official over community), and state the rule used.
- If it cannot be resolved, say so and escalate (5.2).
Grounding prompts (verified example)
Anthropic's guidance for agentic coding: never speculate about code you have not opened; read the file before making claims. The same principle applies to documents: answer from provided sources and say when the sources do not contain the answer.
Exam traps
- Summaries that drop source attribution.
- Using citations and
output_config.formaton the same request. - Quoting from memory instead of from the retrieved text.
- Choosing one conflicting source without saying so.
- Ignoring dates on time-sensitive facts.
References
- Citations — checked Oct 16, 2026
- Prompting best practices — checked Oct 16, 2026
Check your understanding
What does the citations feature guarantee about pointers?Show answerHide answer
Answer
They are valid pointers to the provided documents.Do
cited_texttokens count toward output tokens?Show answerHide answerAnswer
No.Two sources give different figures. What do you do?Show answerHide answer
Answer
Report both with sources, apply and state a precedence rule, or escalate if unresolved.