Reranking in RAG: two-stage retrieval (bi-encoder recall -> cross-encoder precision). Three scenarios: 1) two-stage cross-encoder rerank pipeline (Cohere Rerank-3, BGE-v2-m3) over top-100 candidates from hybrid (dense+BM25+RRF) retrieval, sorting to top-10 for LLM context; 2) recall@10 lift comparison without rerank vs with rerank; 3) LLM-as-reranker for high-stakes medical/legal Q&A. ADR on cross-encoder vs LLM-rerank cost/quality tradeoff.
A reranker changes the order of candidates supplied by a first-stage retriever. Cross-encoders and LLM judges can model richer interactions, but their benefit, bias, latency, and failure modes depend on data and deployment.
Two-stage cross-encoder reranking. A first stage supplies recall candidates; a cross-encoder rescores the bounded set.
LLM listwise candidate evaluation. Listwise ranking can use richer context but inherits model variability, bias, injection, and budget limits.
Timeout and overload fallback. Reranking failure must not turn into an unbounded retry storm or an empty implicit success.
Adversarial candidate content. A passage can manipulate an LLM reranker or exploit verbosity and position bias.
Freeze first-stage candidates for comparison, measure ranking metrics and downstream answer quality, and keep a deterministic fallback ordering. Apply authorization before and after ranking, bound candidate and token budgets, and never interpret a model score as a probability without calibration.
Введите числа или выберите пресет