Retrieval, Hybrid Search, and Reranking
Retrieval, Hybrid Search, and Reranking
Fact-check status
Key jargon
| Term | Plain-language meaning |
|---|---|
| Sparse retrieval | Term-based search that rewards lexical overlap, commonly using BM25. S1 |
| Dense retrieval | Vector search that compares learned embeddings. S1 |
| Hybrid search | Combining sparse and dense retrieval signals. S1 |
| Reranking | Applying a more expensive relevance scorer to a smaller candidate set. S1 |
Key concepts
- Sparse search is strong for exact names and identifiers; dense search helps with paraphrases and semantic similarity. S1
- A reranker improves ordering only among candidates already retrieved, so candidate recall still matters. S1
Concept map
flowchart LR
A["Run sparse and dense search"] --> B["Fuse candidate rankings"]
B --> C["Rerank shortlist"]
C --> D["Return evidence with scores"]Diagram semantics verified against S1 and S2 on 2026-09-02.
| Method | Strength | Weakness |
|---|---|---|
| Lexical/BM25 | Exact names, identifiers, rare terms | Misses paraphrases S1 |
| Dense vector | Semantic similarity | Can blur exact constraints S1 |
| Metadata filter | Tenant, date, type, policy | Depends on correct metadata S1 |
| Hybrid | Balances exact and semantic signals | Requires score fusion/tuning S1 |
| Reranker | Better ordering of candidates | Adds latency and model risk S1 |
Retrieve broadly enough to include the answer, then rerank/filter narrowly enough for useful context. Tune on real questions, including “no answer” cases. S1
Exercise
Create queries containing exact error codes, synonyms, dates, and ambiguous terms. Compare lexical and vector results, then define a simple hybrid rule.
Metrics
Recall@k, precision@k, mean reciprocal rank, nDCG, policy-filter correctness, freshness, latency, and cost. Metrics require labeled relevance judgments. S1