Hybrid search and reranking
For engineers
Combining keyword and vector search, reranking candidates with a second model and enriching chunks with context to raise retrieval quality
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
A user searches a support wiki for ERR_CERT_9921. Which retriever is most likely to find the exact page?
Check yourself · 2 of 5
Why is a cross-encoder reranker run on 50 candidates and not on every chunk in the index?
Check yourself · 3 of 5
What does contextual retrieval add to each chunk before it is embedded?
Check yourself · 4 of 5
What makes a comparison of retrieval variants fair?
Check yourself · 5 of 5
What does a late-interaction retriever such as ColBERT store for each chunk?
Topics
- Combining BM25 keyword and vector search4 min read · Why exact terms such as error codes, names and SKUs need keyword search, and fusing ranked lists with reciprocal rank fusion
- Second-stage rerankers and cross-encoders4 min read · Retrieving wide then reranking narrow with cross-encoders, hosted rerank APIs or an LLM, and the latency and cost this adds
- Contextual retrieval: situating each chunk4 min read · Prepending a short model-written summary of where a chunk sits in its document before embedding and indexing, using prompt caching to keep cost down
- Measuring what each retrieval upgrade buys4 min read · Comparing baseline, hybrid, reranked and contextual variants on the same query set before paying for added complexity
- Late interaction and multi-vector retrieval4 min read · ColBERT-style token-level matching as a middle ground between single vectors and cross-encoders, and its storage cost
Start here
- Introducing Contextual Retrieval (Anthropic) (opens in a new tab)ArticleFree
The source of the 49% and 67% fewer failed retrievals figures, the prompt and the caching cost estimate.
- Reciprocal Rank Fusion outperforms Condorcet and individual rank learning methods (Cormack et al.) (opens in a new tab)PaperFree
The original RRF paper: the formula and the constant of 60.
- Rerank overview (Cohere docs) (opens in a new tab)DocsFree
How a hosted rerank endpoint takes a query and documents and returns relevance scores.
Helps to know first
110 questions · last verified 2026-12