Retrieval and RAGRanking, evidence and groundingStaff
Why can retrieval recall improve while an assistant produces less accurate citations?
By Amit Kumar4 min readWorked answer includedReviewed 26 Sept 2026
The question
Interview question
Your retrieval-augmented generation pipeline retrieves passages, reranks them, and selects a limited context for the answering model. After increasing the vector candidate count, measured Recall@20 improves but citation correctness falls. The reranker code and model are unchanged. Explain three mechanisms that could produce this result and design experiments that distinguish them. Clarify what each metric must measure.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
Finding useful material and citing it correctly are different events. Retrieval recall measures how much labeled relevant material a search stage finds. Citation correctness measures whether the source attached to an answer actually supports the associated claim. A system can improve the first event and fail later while selecting, interpreting or attributing that evidence.
Start by defining Recall@20 precisely. In its usual form, it is the fraction of all labeled relevant items that appear in the first 20 results, averaged according to the evaluation's rules. If a query has one labeled supporting passage, finding it anywhere in those 20 gives full recall for that query. Finding a document about the topic is a weaker label than finding the exact passage that supports a specific claim. Also identify which stage produces the measured 20. A metric before permission filtering is different from one after reranking.
The first mechanism is evidence loss between stages. In a hypothetical query, the old search returns the governing rule but misses its exception. A larger candidate pool finds the exception at rank 18, improving recall. The context builder still sends only six passages, and all six are broad summaries or near duplicates. The newly found evidence never reaches the model. An unchanged reranker can behave differently because its input set, competition and truncation changed.
Record passage identities, source revisions and ranks at retrieval, reranking and context selection. For the failing query, insert the reviewed supporting spans directly into the final context while keeping the rest of the generation configuration fixed. This is an oracle-context experiment: a deliberately supplied correct evidence set used to locate the failure boundary. If it repairs the answer, inspect selection and packing. If the passage was never retrieved, tuning the context selector cannot solve the earlier miss.
A second mechanism is a mismatch between relevance labels and claim support. Suppose a document is labeled relevant because it discusses backup retention. Its introduction says backups are configurable. A later table states that the requested plan retains them for seven days. The assistant answers “seven days” but cites the introduction. Document recall looks good, and the numerical answer may even be right, yet the citation does not support it. The citation evaluation needs the claim and the exact span, including any header or qualifier needed to interpret that span.
To test this, have reviewers separate topical relevance, answer-bearing evidence and support for the precise output claim. Fix the corpus revision so that citations are not judged against moved text. Compare claims with their cited passages, rather than treating any link to the right manual as a success. If the supporting table was present in context but the system linked the introduction, inspect citation-map construction and generation. A source-index bookkeeping bug and a model attribution error need different repairs.
The third mechanism is conflicting evidence introduced by the broader search. A current policy and an older release note may use similar language but contain different thresholds. More candidates can bring both into context. The model may combine the current rule's wording with the old number and attach a plausible current citation. This is especially likely if source revisions, authority or effective dates were lost before generation.
Hold the reviewed current spans fixed, then add stale passages and near duplicates separately. Vary their order without changing their content. Track whether the answer begins to fail only in the presence of a particular conflict or placement. That distinguishes an evidence-arbitration problem from a missing-evidence problem. The repair may require preserving source scope and resolving an authority conflict, rather than another increase in candidate count. An unresolved conflict on a consequential question should lead to qualification or abstention.
The investigation also needs a fair baseline. Replay the same queries against the same corpus, permission state, prompt and token budget. Check whether extra candidates caused reranker timeouts, a fallback path or truncation before scoring. Reuse of the same model binary does not freeze those execution conditions. If the reported Recall@20 changed because the evaluation set or labels changed, there may be no demonstrated retrieval gain to explain.
For the release decision, report exact supporting-span recall at each stage, selected-context coverage, claim support, citation attribution, unsupported claims and abstentions. Include latency and cost because expanding every context can be an expensive way to hide a selection failure. These measurements tell the team where useful evidence disappeared or became misinterpreted. A higher retrieval score is valuable only when the rest of the pipeline can turn the additional evidence into supported answers.
Related questions
- How would you retrieve and combine a contract clause with an applicable later exception?Principal
- How should hybrid retrieval select coherent source revisions and diverse supporting evidence?Principal
- Why can a click-trained reranker improve ranking metrics while hiding a required policy exception?Staff
Keep practising retrieval and rag
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux