What is reranking in RAG? When does it help?medium

Type
conceptual
Topic
is-reranking-in-rag-when-does-it-help
Frequency
common
Tags
rag, what, reranking, when, does
Answer

After ANN retrieval (approximate, optimizes for speed), a cross-encoder reranker scores each retrieved chunk precisely against the query.

Explanation

After ANN retrieval (approximate, optimizes for speed), a cross-encoder reranker scores each retrieved chunk precisely against the query. Helps when: top-k from ANN includes irrelevant chunks, query is complex/long, or precision matters over recall. Overkill for: simple single-document lookup, latency-critical paths, or when ANN already gives high precision.

Follow-upCan you give a production example?