Run keyword (BM25 or learned sparse) and vector search in parallel, then merge the ranked lists.
Reciprocal rank fusion (RRF) is a popular merge: each document's score is the sum of 1 divided by (k + rank) across lists, with k around 60; it needs no score normalization. The alternative is a weighted sum of normalized scores (for example 0.7 semantic and 0.3 keyword as a starting point), tuned on evaluation data.
Prefer hybrid when queries contain identifiers, product names, acronyms, version numbers or stack traces, when the corpus has specialized jargon, or when you need robustness across query types.
Loading…