Hybrid search, query rewriting, and re-ranking
Notebook· 06.08· 120–150 min· Lesson 53 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Explain what keyword search (BM25) finds that vector search misses, and vice versa.
- Fuse both rankings with reciprocal-rank fusion (RRF): hybrid search.
- Rewrite a question into several search queries (multi-query), built explicitly instead of
MultiQueryRetriever. - Re-rank candidates with a local cross-encoder (free; Cohere optional).
- Measure every addition on the golden and paraphrase sets, and keep only what helps.
Before you start
Lessons 06.04–06.06.
