Hybrid Search
Two kinds of search fail in opposite ways. Keyword search cannot tell that "laptop will not boot" and "notebook fails to start" are the same question. Embedding search sees that instantly, but when a user types an exact part number it will cheerfully return something that merely means the same thing. Hybrid search runs both and merges the results.
What gets combinedThe lexical side is usually BM25, which scores documents on the rare words they share with the query. The semantic side embeds the query with a model such as a sentence transformer and finds the nearest vectors in an index. Each side produces a ranked list, and the two have to be reconciled — their scores sit on incomparable scales, so a raw sum is meaningless.
Fusing the two lists- Reciprocal rank fusion ignores the scores entirely and adds up 1/(k + rank) from each list, which is robust and needs no tuning.
- Weighted score fusion normalises both scores into one range and blends them with an alpha that decides how lexical or how semantic the system behaves.
- Either way the merged list usually goes to a reranker that rescores the top candidates directly against the query.
In a RAG system the generator can only be as good as what retrieval handed it, and a document that was never fetched is invisible in the final answer. Hybrid search is the cheapest fix for the failure mode that embarrasses these systems most: a user quoting an error code or a surname verbatim and getting plausible neighbours instead of the exact match. Weaviate, Qdrant, OpenSearch and Azure AI Search all expose it as a single query parameter.
Hybrid search combines lexical retrieval, typically BM25 over exact terms, with dense vector search over embeddings, then merges the two ranked lists using reciprocal rank fusion or normalised weighted scores. It matters because each method misses what the other catches: embeddings handle paraphrase but blur exact identifiers, while keywords match codes and names but not meaning. In retrieval-augmented generation, where the answer is capped by what was fetched, it raises recall at negligible cost.
Think of two librarians. One finds books only by the exact words you say, so asking for a notebook that will not start gets you nothing about laptops. The other understands what you mean, but hand her a precise serial number and she brings back something similar instead of the right one. Hybrid search sends your question to both and combines what they bring back. AI assistants that answer from a company's own documents depend on this: the system first fetches the relevant pages, then writes its answer from them. If the wrong pages arrive, the answer is wrong, so looking two ways is worth the effort.