Evidence Blocks and Provenance
In this article
- List the fields an evidence record carries and say why each one must reach the request.
- Render retrieved passages as one block each, in Claude's `search_result` format and in plain tagged text.
- Map every id the model sees back to its stored record with a manifest.
- Spot a request that flattens its evidence or puts it among the application's instructions.
- Terms defined here: evidence object.
Overview
A customer asks a support assistant: "My router arrived 20 days ago. Can I still get a refund?" The reply says no, because a refund can be requested up to 14 days after delivery. A week later a supervisor asks where that 14 came from. Which page, which section, which version of the page? If the help text went to the model as one long paste, nobody can say, the model included.
The fix happens before the model writes a word, in the code that builds the request. By the end you can give every retrieved passage its own id and origin, send it in one real API format and in plain tagged text, and trace any id the model repeats back to a stored record.
Three chunks, one paste
Here is the setting for the whole topic, all of it made up. Brightline, a home-internet provider, runs a support assistant on its website. When a customer writes, its search code finds the best few chunks, short pieces cut from Brightline's help pages and router manuals, and puts them into the request before the model writes the reply. Each chunk has a chunk id, the document id plus its position in the document, such as help-refunds#2.
The customer above asked on 10 March 2026, and the router was delivered on 18 February 2026. The search returned three chunks from two documents: help-refunds#1 ("To ask for a refund, ask in chat."), help-refunds#2 (the 14-day rule) and help-router-setup#1 ("Place the router near the middle of your home."), which shares the word "router" with the question and answers nothing.
The naive request pastes the three into the prompt as one piece of text. One well-known example: the OpenAI Cookbook's question-answering example builds its message by adding each retrieved section under the same label, Wikipedia article section:, inside triple quotes, and then appends the question. [3] Brightline's version, invented:
Use the help text below to answer the customer.
Help text:
"""
To ask for a refund, ask in chat.
A refund can be requested up to 14 days after delivery.
Place the router near the middle of your home.
"""
Question: My router arrived 20 days ago. Can I still get a refund?A model can answer this correctly. Now try to audit the answer. Nothing marks where one chunk ends and the next begins, so two sentences from the refund page and one from the setup page read as one text. No id appears anywhere, so the reply cannot say "help-refunds#2": the model has no id to repeat. And if the refund page changes next month, nothing records which wording the model saw. The ids existed in the search results a moment earlier. The template dropped them.
The evidence record
The fix starts one step earlier. For each chunk it keeps, the search code builds an evidence record, also called an evidence object: the passage plus everything needed to trace it. These fields are the passage's provenance, where it came from and where it can be loaded from again. Here is the record for help-refunds#2, with invented values:
| field | value | why it travels |
|---|---|---|
source_id | help-refunds | which document |
chunk_id | help-refunds#2 | which passage of it |
title | Refunds | a name a person recognises |
url | https://help.brightline.example/refunds | where to load it again |
version | 2025 | which wording was sent |
effective_from | 2025 | when that wording starts to apply |
heading | Refunds > Time limits | where the passage sits in the page |
text | A refund can be requested up to 14 days after delivery. | the evidence itself |
The heading path earns its place on short passages. A chunk cut from the middle of a page loses the headings above it, and "up to 14 days after delivery" read alone could be any time limit. "Refunds > Time limits" says which page and which part of it the sentence belongs to, for the model and for the person checking the reply later.
Version and effective date look idle today: no reply to this customer uses them. But a page can be rewritten while its chunk ids stay the same, so the id alone cannot say which wording the model saw. The two fields also differ: version names a wording, effective_from the day its rule starts, and a page rewritten today can say its new rule starts next month. Later steps that choose between versions need these fields, and a field dropped here cannot be recovered after the model has answered.
Two things stay out. The record keeps only what generation and checking need, since every field rides along in every request. And search scores never go in: the model receives chunk text with ids, not the numbers the search used to rank it. Most important of all, the application assigns every id, never the model.
One block per passage
Next, each record becomes its own evidence block in the request, so the boundary between two sources survives the rendering. One provider's format makes this concrete. Claude's Messages API accepts search_result blocks, each with a type, a source, a title, a content array of text blocks and an optional citations setting. [1] The source can be any stable string, a URL or an internal id. [1] Brightline uses the chunk id, and puts the heading path in the title. Two of the three blocks: [1]
[
{"type": "search_result",
"source": "help-refunds#1",
"title": "Refunds",
"content": [{"type": "text",
"text": "To ask for a refund, ask in chat."}],
"citations": {"enabled": true}},
{"type": "search_result",
"source": "help-refunds#2",
"title": "Refunds > Time limits",
"content": [{"type": "text",
"text": "A refund can be requested up to 14 days after delivery."}],
"citations": {"enabled": true}}
]The third block, for help-router-setup#1, has the same shape. Why is content a list? A long passage can be split into several text blocks, and a citation then says which of them it covers; one big block means every citation returns all of it. [1] Citations are off by default. [1] Turned on, they arrive attached to the text blocks of the reply that draw on your results, with no special prompting. [1] All search results in one request must use the same setting, so Brightline turns them on for every block. [1] The blocks sit in the user message next to the customer's question. [1]
Before reading on, predict: when the reply states the 14-day rule, what will its citation name? Each citation carries the source and title that you supplied. [1] So it names help-refunds#2 and "Refunds > Time limits", exactly as Brightline supplied them.
:::note In practice (Nov 2026) search_result blocks hold text only, with no images or other media. [1] Anthropic's own advice for them: clear, permanent source URLs and descriptive titles that match the content. [1] :::
The same records for any model
Other providers have their own formats, and some have none. The fallback is plain tagged text, which any model can read because it is only text. In Claude's prompting guide, the shape is each document in a <document> tag with an index, a <source> and a <document_content>, all inside <documents>, with other metadata in tags of its own. [2] The same three records: [2]
<documents>
<document index="1">
<source>help-refunds#1</source>
<heading>Refunds</heading>
<document_content>To ask for a refund, ask in chat.</document_content>
</document>
<document index="2">
<source>help-refunds#2</source>
<heading>Refunds > Time limits</heading>
<document_content>A refund can be requested up to 14 days after delivery.</document_content>
</document>
<document index="3">
<source>help-router-setup#1</source>
<heading>Router setup</heading>
<document_content>Place the router near the middle of your home.</document_content>
</document>
</documents>Look at the two labels on each document. The index is a position: reorder the results and document 2 becomes another passage. The source is an identity, and it means the same thing in every request. Claude's citations show the same split: next to the source you chose, each carries a search_result_index, the block's position among the request's search results, counted from 0. [1] The 14-day citation would carry help-refunds#2 and index 1, since its block comes second. Store and cite the identity. With plain tags, no API attaches citations for you: the reply has to write the id, and your code has to check it.
The manifest
The model sees help-refunds#2. Your logs, your reviewers and your support team need the page, the section and the version behind it. The bridge is a manifest, the same idea as the manifest of context assembly: the application's own list for this request, from each id the model can see to its canonical record.
source url version
help-refunds#1 https://help.brightline.example/refunds 2025
help-refunds#2 https://help.brightline.example/refunds 2025
help-router-setup#1 https://help.brightline.example/router-setup 2024The manifest holds only what loads the record again; title, heading and text stay in the stored record. Now the supervisor's question has an answer. The reply cites help-refunds#2; the manifest turns it into the refunds page, version 2025, section "Time limits". An id that is not in the manifest resolves to nothing, so it cannot count as a citation. help-router-setup#1 is listed although no claim will cite it: the manifest records what was sent, not what was used. Store it with the reply.
Where the blocks go
Retrieved help text is retrieved evidence and therefore untrusted context, text the developer did not write. Under the instruction hierarchy it gives no orders, so it goes in the user message as data and never in the system prompt next to the rules. The Claude API enforces half of this for its format: search_result blocks may appear only in user messages and tool results, and an assistant message that holds one is rejected. [1]
As for order, for long inputs Claude's guide puts the documents near the top and the question last. [2] Tags help the model tell instructions, context and input apart, which reduces misreading. [2] They lower the chance that a passage is read as an order, but they are not a security boundary.
So, before any request with evidence leaves the application, check four things. Every block has a unique id that the manifest resolves. Each record's provenance fields survived the template. Each chunk is its own block, with no two merged. And no retrieved text sits in the system prompt. A request that passes all four can be audited after the fact; one that fails any of them can only be taken on trust.
:::note In an interview "Every passage that can shape the answer gets an id the application assigns, one block per passage in the user turn, and a manifest that maps each id to its source and version." The trade-off: every field costs tokens on every call, so carry what generation and citation checks need, and nothing else. :::
Next comes judging the reply itself: which of its claims these blocks actually support.
Sources
- Search results. Anthropic. Checked 24 Oct 2026.
- Prompting best practices (long context prompting section). Anthropic (Claude Platform Docs). Checked 24 Oct 2026.
- Question answering using embeddings-based search. OpenAI Cookbook. Checked 24 Oct 2026.
Check yourself
Check yourself
Question 1 of 13
A help page is edited but its chunk ids stay the same. Which field shows what the model was sent?
Your first check counts towards your result.