Retrieve a small candidate set quickly, then use a cross-encoder to score the query and each candidate together.
Build the example
Create fictional help documents about password reset, recovery codes and account deletion. Use a lexical or embedding index for the first stage and choose K based on validation recall. Rerank only those K candidates with the cross-encoder. A relevant document missing from the candidate set cannot be recovered by the second stage.
Create a query whose correct result uses different words from the query. Have the first stage miss it at K=2 and recover it at K=5. Run the reranker against both candidate sets. Measure how many pairs are evaluated so the relevance improvement has a corresponding compute cost in the same example.
Retrieve and rerank
Retrieve a small candidate set quickly, then use a cross-encoder to score the query and each candidate together.
Example
- Retriever
select K candidates
- Cross-encoder
score each query and candidate together
- Ranked results
measure relevance and latency
measure relevance and latency
Watch the failure boundary
Batch query–document pairs at the reranking stage and impose a maximum document length. If a relevant sentence falls beyond truncation, compare passage-based scoring with document-level scoring. Track whether improvements come from retrieving additional candidates or from moving an already-retrieved candidate upward.
Verify the behavior
Compare candidate recall, final NDCG and median and tail latency on the same queries. Include paraphrases and ambiguous terms. Lower K to find where candidate recall begins to drop, then choose a deployment budget that fits both relevance and latency needs.
Sources
Technical references checked .



