Reranking
A post-retrieval filtering step in RAG pipelines. Takes a large candidate set from initial retrieval, scores each chunk against the query with a dedicated reranking model, passes only the top-K to the LLM.Pipeline position
Why it helps
Initial retrieval is fast but coarse — embedding similarity doesn’t perfectly reflect query relevance. Rerankers are cross-encoders: they see query and chunk together, enabling richer relevance judgments than embedding cosine similarity.Trade-offs
Tune retrieval pool size vs. reranking cost for your latency budget.
Models
Cohere Rerank (tested by Anthropic). Voyage also offers a reranker. Cross-encoder models generally.Related
- Contextual Retrieval — gains stack: contextual retrieval + reranking = −67% vs. baseline
- BM25 — part of initial retrieval that feeds the reranker