Evidence Extraction for RAG: Select the Passages That Support an Answer
Evidence extraction identifies sentences or spans in retrieved documents that actually answer a question, links them to their original sources, and passes them to answer generation. A search result’s topical relevance alone does not make it evidence. Check whether the material supports each claim under the question’s conditions, exceptions, and time frame; distinguish support, contradiction, and insufficient evidence to reduce the risk that a model will combine unrelated material as fact.
Evidence Extraction for RAG: Select the Passages That Support an Answer
Evidence extraction identifies sentences or spans in retrieved documents that actually answer a question, links them to their original sources, and passes them to answer generation. A search result’s topical relevance alone does not make it evidence. Check whether the material supports each claim under the question’s conditions, exceptions, and time frame; distinguish support, contradiction, and insufficient evidence to reduce the risk that a model will combine unrelated material as fact.
Relevance is different from evidential support
A retriever returns candidate documents that are semantically close to a question. Whether a candidate supports the answer is a separate judgment. For example, a general refund policy may be relevant to “How many days do refunds for international orders take?” but it does not support an exact number if it never states the processing time for international orders. A document’s repetition of the question’s terms or discussion of a similar subject does not establish that it supports the question’s specific conditions.
Evidence extraction can sit between retrieval and answer synthesis:
Break the question into verifiable subquestions or factual claims.
Find spans in retrieved documents that relate to each subquestion.
Classify each span as supporting, contradicting, partly supporting, unrelated, or indeterminate for the claim.
Preserve the source ID and location, along with the document date or version needed to recheck it.
Answer from sufficient supporting spans; if evidence is missing or conflicting, narrow the answer or abstain.
This does not mean every application needs a separate model call. Application rules, an extraction model, natural-language instructions, or database lookups can be combined. For a simple question with very short search results, handling extraction inside the same generation call may be simpler. For many documents or high error costs, a separate evidence structure can be useful for review and validation.
What should an evidence record preserve?
A compact structure for extracted evidence can support synthesis, validation, and auditing. Consider fields such as:
| Field | Meaning | Validation question |
|---|---|---|
| Claim or question part | The unit whose support is being checked | Is it specific enough to verify independently? |
| Evidence text | A relevant sentence or short span from the source | Does it match the original, with enough surrounding context? |
| Source ID and locator | Document, chunk, or sentence location | Is it in the actual retrieved material and traceable to that version? |
| Relation | Supports, contradicts, partly supports, unrelated, or cannot determine | Does the wording support the same conditions as the claim? |
| Conditions, time, and exceptions | Applicable audience, date, and limitations | Do the source’s scope and the question’s conditions match? |
It is usually best to assign stable source IDs during retrieval. OpenAI’s citation-formatting guide also recommends deciding on citation units—such as documents, blocks or chunks, and line ranges—and passing both IDs and readable text. A locator can help verify the original, but do not trust line numbers invented by a model. The application should resolve and validate the actual rendered location.
Preserve extracted strings as source excerpts where possible, and put any summary or interpretation in a separate field. A summary can omit an important qualification. Add a rule such as “extract only what is present in the source and mark unclear content” so the extractor does not invent causality, numbers, or policy exceptions. Structured output alone still does not guarantee factuality, so downstream validation remains necessary.
Hypothetical example: international shipping and refund timing
Suppose a user asks, “How many days does a partial refund for an international order take?” and retrieval returns two passages:
Source A: “Approved refunds for domestic orders are processed within five business days.”
Source B: “International orders may incur additional payment-processor time. The exact period varies by account.”
Source A is relevant to refund timing, but its “domestic order” condition does not directly support a number for international orders. Source B supports variability for international orders but gives no number of days. An evidence record should therefore not use A as numeric evidence for international orders; it can record B as support for the account-dependent period. The answer should avoid stating an exact number and instead suggest checking the order or contacting the responsible team. This is an illustrative scenario, not an actual policy.
How should evidence extraction be evaluated?
Prepare a sample of questions and retrieved results, and have people annotate supporting spans, conditions, conflicts, and source scope. Then check whether extraction captures the necessary source spans, avoids treating merely relevant text as evidence, and refrains from adding content absent from the source. Evaluate the downstream answer separately to see whether it is fully supported by the selected evidence.
Include cases such as:
A passage that mentions only some conditions in the question
A document on the same subject but for a different entity, region, or version
Material that contradicts the claim, or current and older sources that conflict
Material that does not answer the question and an empty retrieval result
The same answer repeated across sources with different original locations
A question that requires reading more than one span to answer
If spans are made extremely short to maximize precision, exceptions or prerequisites can disappear. Passing every full document downstream increases token cost, noise, and the burden of resolving conflicts. Zhao et al. (EMNLP 2024) proposed research on extracting more concise evidence from retrieved RAG context and discussed generalization limits of rule-based extraction and meaning preservation. Do not assume the paper’s scores or benefits from one extractor model apply to every dataset or product; compare them on your team’s questions and materials.
At a minimum, examine:
**Evidence recall:** Did extraction capture the spans people marked as necessary?
**Support accuracy:** Does the extracted passage actually support the claim under the same conditions?
**Source traceability:** Do citation IDs and locators point to real retrieved material?
**Conflict and uncertainty preservation:** Are missing or conflicting sources retained rather than flattened into one conclusion?
**Downstream answer quality:** How do answer accuracy, grounding, omissions, length, and format change after extraction?
**Operating cost:** Did model calls, tokens, latency, and review effort change?
Common failures and responses
**Selecting text that is merely on topic:** Compare whether the claim and evidence refer to the same entity, time, and conditions. Record relevance separately from support.
**Inventing citation IDs or locations:** Do not accept free-form citations from a model without validation. Allow only IDs from retrieved results and verify locations in code.
**Dropping conditions or exceptions in a summary:** Preserve the source span, put summaries in separate fields, and compare dates, regions, and versions from the question after extraction.
**Merging conflicting documents:** Retain each source’s date, scope, and relation to the claim. Mark conflicts unless a policy priority has been verified.
**Keeping spans so short that the answer is incomplete:** Evaluate whether the full set of necessary claims is supported and whether all subconditions are covered, not just whether the result is concise.
Summary
Evidence extraction is an optional step after retrieval that organizes source passages by the claims they support, instead of passing all search results directly to generation. Separate relevance from support and preserve original locations, conditions, and uncertainty. Validate the extracted text and citation IDs before answer generation; handle missing or conflicting evidence by abstaining, giving a partial answer, or asking for clarification. Judge its value by comparing downstream responses together with latency and cost, not extraction metrics alone.
Sources
[Zhao et al., “SEER: Self-Aligned Evidence Extraction for Retrieval-Augmented Generation” (EMNLP 2024)](https://aclanthology.org/2024.emnlp-main.178/) — research on extracting concise evidence from retrieved RAG passages and limits of rule-based context filtering. Findings are limited to the paper’s evaluated settings.
[OpenAI API: Citation Formatting](https://developers.openai.com/api/docs/guides/citation-formatting) — citation units, stable source IDs, readable source text and locators, and parsing and validation guidance.
[OpenAI API: Retrieval](https://developers.openai.com/api/docs/guides/retrieval) — official description of vector search and retrieval tuning.