- All Courses
- Retrieval-Augmented Generation in Practice
- Retrieval Quality
- Re-ranking results
Re-ranking results
Retrieve fifty candidates with a fast method, then re-score them with a model that reads the query and the passage together.
Overview
Cheap recall, then expensive precision
Retrieve fifty candidates with a fast method, then re-score them with a model that reads the query and the passage together. That two-stage shape gives you accuracy you could not afford across the whole corpus.
A cross-encoder is far more accurate than vector similarity because it can attend to the query while reading the passage — and far too slow to run over everything, which is exactly why it belongs in stage two.
Keeping fewer, better passages usually beats keeping more. Irrelevant context does not just waste tokens, it actively distracts the generation step.
In this lesson you will:
- Retrieve widely, then rank precisely
- Understand the cross-encoder trade-off
- Pick how many results to keep
Resources
Notes are not saved yet — they clear when you leave this page.
Hybrid keyword and vector search
7m
Query rewriting and expansion
6m