Hybrid retrieval combines candidates from lexical and semantic search so that an answering system can recover both exact terminology and differently worded descriptions. It is useful when a collection contains both kinds of evidence, but adding two retrievers does not establish that the combined ranking is better.
Begin with questions that expose different retrieval needs. Keep the allowed corpus and final context budget comparable, then inspect what each method contributes.
Two questions can need different signals
Imagine a synthetic operations manual containing a header reference, a troubleshooting procedure, an obsolete procedure and an unrelated product page.
| Question | Evidence that matters |
|---|---|
| “What does X-Request-ID mean?” | The exact header name and its documented scope |
| “How do I follow one request through several services?” | A procedure whose wording may differ from the question |
| “Where is customer data stored?” | No answer if the authorized collection contains no such statement |
Lexical retrieval can make exact names useful ranking signals. Dense retrieval can connect descriptions whose words differ. Both can return the obsolete procedure if version eligibility is ignored.
The Elastic hybrid-search guide describes combining full-text and semantic retrieval. Treat its product workflow as one implementation, not a requirement to adopt that stack or a promise about an arbitrary corpus.
The questions and input rankings below are synthetic. We calculated the fusion scores locally from those rankings. Generating embeddings and running a search service were outside this exercise.
Decide how lists will be combined
Raw lexical and vector scores need not share a scale. Simply adding them can make one method dominate because of scoring conventions rather than evidence quality.
Reciprocal rank fusion, or RRF, instead combines contributions based on positions in ranked lists. Microsoft's RRF explanation describes that distinction and its role in hybrid ranking. Elastic's RRF reference documents implementation controls and behavior.
A document appearing near the top of both lists can receive support from both. A document missing from both candidate lists cannot be recovered by their fusion. Candidate depth therefore matters separately from the number of results finally shown to the model.
Do not confuse fusion with a reranker that reads candidates and produces a new relevance ordering. A pipeline can use both, but each adds a distinct configuration, latency contribution and failure boundary.
Which bulletin survives a two-passage cutoff?
Which gasket fits the revised housing on the fictional Lumen pump? The parts list (PARTS-1) tells you to check the revision. The procedure (PROC) says the gasket is ordered separately. BUL-1 specifies G14 for the original housing. Only BUL-2 specifies G27 for the revised housing. RET describes returns.
Take these fixed lists, best first: lexical = PARTS-1, PROC, BUL-1. Semantic = PROC, BUL-2, RET. Give each passage 1/(60 + rank) for every list in which it appears, starting at rank 1. An absent passage contributes zero. Add the contributions, then sort by decreasing score, breaking ties by passage ID.
| Passage | Lexical rank | Semantic rank | Fused score |
|---|---|---|---|
| PROC | 2 | 1 | 0.032522 |
| PARTS-1 | 1 | — | 0.016393 |
| BUL-2 | — | 2 | 0.016129 |
| BUL-1 | 3 | — | 0.015873 |
| RET | — | 3 | 0.015873 |
PROC wins because 1/62 + 1/61 exceeds any single contribution. Semantic search alone includes BUL-2 in its first two passages. Fusion spends those two slots on PROC and PARTS-1, neither of which names the gasket. Withhold the part number at that cutoff. With a third slot, cite BUL-2 for G27. This example counts passages. Repeat the comparison at your actual token limit if passage lengths vary.
If the applicable bulletin reaches the candidate pool but misses the final cutoff, the reranking example uses the same bulletins to examine what a second pass can recover.
Apply the same eligibility rules
Before comparing rankings, define the requesting identity, product version and document state. The permitted corpus should be consistent across retrieval branches.
If lexical search filters out another team's documents while vector search retrieves them, fusion does not repair the access failure. Likewise, retrieving a current manual on one branch and an old index on the other can produce contradictory evidence even when the ranker behaves as configured.
Record document IDs and revisions after candidate generation, fusion, optional reranking and final context assembly. That trace reveals whether evidence was never found, lost in ranking or discarded while constructing the prompt.
The retrieval evaluation guide develops the evidence labels and measures to use here. Hybrid search changes the retrieval mechanism; it does not replace the need to define relevance.
Compare at a useful budget
Run a lexical baseline, a dense baseline and the hybrid configuration on the same frozen questions and corpus. Preserve query transformations and filters. Use a comparable final text budget, not only the same count of chunks whose sizes differ greatly.
Inspect exact-name questions, paraphrases, version-specific questions and questions with no supported answer. Report per-question regressions before an aggregate score. If hybrid improves paraphrases but buries an exact configuration key, the tradeoff needs to remain visible.
Also inspect repeated passages. Several chunks from the same section can crowd out another fact the question requires. Deduplication may improve evidence diversity, but it can also remove a necessary exception if equivalence is defined too loosely.
Choose hybrid retrieval when observed failures justify its additional machinery and the comparison supports it. Keep the simplest baseline that works for the collection. Returning a plausible passage for every question is not the objective; supplying the right eligible evidence, or recognizing its absence, is.