Retrieval & Agents

Reranking

A second pass that reorders retrieved results by relevance, surfacing the best few before they reach the model.

A first retrieval pass is fast but rough, often returning dozens of loosely relevant passages. A reranker then scores each candidate against the query with a more accurate, more expensive model and pushes the truly relevant ones to the top. Feeding the model only those best few improves answer quality and keeps the context window focused.