What is a reranker, and why add one after vector search?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
A reranker is a second-stage model - usually a cross-encoder - that re-scores the first stage's candidates with much more compute per pair. First-stage retrieval (bi-encoder + ANN, plus BM25) is built for cheap recall over millions of chunks; the reranker is built for precision over ~100. The recipe: retrieve top 100-200 with hybrid search, rerank with the cross-encoder, keep the top 5-20 for the prompt.
Full worked answer with diagram
A reranker is a second-stage model - usually a cross-encoder - that re-scores the first stage's candidates with much more compute per pair. First-stage retrieval (bi-encoder + ANN, plus BM25) is built for cheap recall over millions of chunks; the reranker is built for precision over ~100. The recipe: retrieve top 100-200 with hybrid search, rerank with the cross-encoder, keep the top 5-20 for the prompt.
Why it works: a cross-encoder concatenates query and passage and runs them through a transformer together, so every query token attends to every passage token. It can resolve coreference, handle negation, and weigh exact-term matches - precisely the interactions a bi-encoder's single precomputed vector cannot capture (the document was embedded before the query existed). The cost is that scores can't be precomputed: it's one forward pass per candidate, which is why it's only feasible after a candidate-generation stage - reranking 10M documents per query is off the table.
Going further: follow-up territory
Numbers to have ready: reranking ~100 candidates adds roughly 50-300ms depending on model size and hardware; options include hosted APIs (Cohere Rerank, Voyage rerankers) or open-weight cross-encoders (BGE-reranker family) self-hosted. In return you typically get a large jump in precision@k - often the single best quality-per-effort upgrade after fixing chunking, and Anthropic's contextual-retrieval post reported reranking pushing retrieval failure reduction to ~67% combined with their other techniques.
Two subtleties that signal seniority: rerankers also act as a calibration layer - their scores are more meaningful for thresholding ("don't answer if the best score is weak") than raw cosine similarity; and reranking lets you be greedy at stage one (recall-oriented, wide k) because precision gets restored at stage two.
Worth sketching. The counts carry the argument: cheap scoring over millions, expensive scoring over a hundred, and a threshold you can abstain on.
flowchart LR
A["10M chunks"] -->|"bi-encoder plus BM25,<br/>tens of ms"| B["Top 100-200,<br/>recall-oriented"]
B -->|"cross-encoder, one forward<br/>pass per candidate, 50-300ms"| C["Top 5-20,<br/>precision-oriented"]
C --> D["Prompt context"]
C -->|"best score below cutoff"| E["Abstain or<br/>ask to clarify"]
What a good answer covers
- First-stage retrieval (bi-encoder + ANN, plus BM25) is built for cheap recall over millions of chunks;…
- The recipe: retrieve top 100-200 with hybrid search, rerank with the cross-encoder, keep the top 5-20…
- Why it works: a cross-encoder concatenates query and passage and runs them through a transformer…
- It can resolve coreference, handle negation, and weigh exact-term matches - precisely the interactions a…
- Two subtleties that signal seniority
Key terms: cross-encoder · together · calibration layer
In the glossary: Cross-encoder · Bi-encoder · BM25 · Hybrid search · Reranking · Cosine similarity
Interviewer follow-ups to expect
Your reranker adds 250ms and the PM objects - options?
Why not fine-tune the bi-encoder instead of adding a reranker?
Where does ColBERT-style late interaction fit between these two?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep