Reranking
Definition
Reranking is a second pass in search or retrieval: a fast first step gathers many candidate results, then a slower, more accurate model rescores them and keeps only the best few. In RAG it decides which passages the language model actually sees.
Diagram
1,000,000 chunks in the index
150 candidates from a fast search
embeddings and keywords, milliseconds
20 kept after reranking
a model reads each one against the question
1 answer
written by the language model from those 20 passages