Skip to content
Duoduo Mediaevidence to decision

Package 08 · Section 5.5

Reranking Context Assembly and Evidence Budgets

Select and arrange the smallest evidence set that supports a complete answer.

Track
B · Knowledge and retrieval engineering
Level
Practitioner
Version
v1.0
Status
In validation · catalog only
Explanation depthDepth

Learning objectives

  • Compare cross-encoder, LLM and rule-based reranking.
  • Remove duplicates and balance source diversity.
  • Allocate evidence and token budgets by claim importance.

In brief

First-stage retrieval optimizes recall. Reranking and context assembly decide which evidence actually reaches the model, in what order and within what budget. This is where most precision is won or lost.

Core concepts

08.1Reranking

Cross-encoder rerankers score query and passage together and are more accurate than embedding similarity, at higher cost. They are typically applied to the top 20 to 100 candidates.

Rerankers can be biased toward fluent or long passages. Evaluate them on hard negatives and on exceptions.

08.2Diversity and deduplication

Near-duplicate passages waste budget and inflate support. Maximal marginal relevance balances relevance with novelty.

Ensure that contradicting evidence and exceptions are not filtered as "redundant".

08.3Evidence budgets and ordering

Every passage has a cost in tokens and latency. Allocate a budget, then pack the highest-value evidence first. Models attend unevenly across long contexts, so place the most important evidence near the start or end.

Include source metadata with each passage so the generator can cite and date it.

Worked example

Recovering an exception below the cutoff

Situation: Gold exception passage ranks 14th after hybrid retrieval; context holds 6 passages.

  1. 1Add a cross-encoder reranker over the top 50.
  2. 2Exception passage moves to rank 3.
  3. 3Apply MMR to remove two near-duplicate restatements of the main rule.
  4. 4Pack 6 passages within a 3,000-token budget, with metadata headers.

Outcome: Exception recall@6 rises from 0.58 to 0.90, and token use drops by 18 percent.

Decision rules

  • Rerank when precision at the context cutoff is below target.
  • Deduplicate before packing, never after.
  • Reserve budget for contradicting or exception evidence.
  • Pass source IDs and dates with every passage.

Common pitfalls

  • Increasing context size instead of fixing ranking.
  • Reranking without measuring added latency and cost.
  • Stripping metadata to save tokens, which breaks citation.

Key vocabulary

Cross-encoder
A model that scores a query and passage jointly for relevance.
Hard negative
A passage that looks relevant but does not support the answer.
MMR
Maximal marginal relevance: selection balancing relevance and novelty.
Evidence budget
The token and latency allowance for context passed to generation.

Tutorial outline

  1. 08.1Pointwise, pairwise and listwise ranking.
  2. 08.2Maximal marginal relevance; authority and freshness boosts.
  3. 08.3Context ordering, compression, conflict preservation and evidence saturation.

Required artifacts

Ranked candidate trace, context manifest, ablation table and selected policy.

Evaluation evidence

NDCG, evidence coverage, diversity, token use, latency and answer completeness.