AI systemshybrid retrievalreciprocal rank fusionRRFBM25 + vectors

Hybrid search

Definition

Hybrid search combines a lexical ranking (usually BM25 over an inverted index) with a vector similarity ranking and merges them, commonly with reciprocal rank fusion.

In practice

Embeddings capture meaning but blur exact tokens such as error codes, SKUs and names, while keyword search matches those precisely but misses paraphrases. Running both in parallel and fusing the results fixes many retrieval misses in RAG. Reciprocal rank fusion scores each document by summing 1 / (k + rank) across lists, which needs no score normalisation and has one gentle parameter.

The cost is two indexes to keep in sync, two queries per request and a fusion step to tune. Filters for tenant and permissions must apply to both sides. Hybrid search improves recall of candidates; a reranker is usually what improves precision in the final few results.

Example

For "error E1043 after upgrade", BM25 ranks the troubleshooting page containing E1043 first while vectors rank a general upgrade guide first; RRF over the top 50 of each puts both in the final top 5.