Keyword search and semantic search fail in opposite ways. Keyword search misses documents that use different words; semantic search misses exact identifiers such as SKUs, error codes and names, and sometimes returns things that are merely similar. Hybrid search runs both and blends the results. It has become a common default in production retrieval-augmented generation systems because business documents are full of both plain language and precise codes.
How it works
The query goes down two paths. The keyword path uses a classic ranking method such as BM25, which scores documents on how often the query terms appear and how rare those terms are. The semantic path embeds the query and finds the nearest passages in a vector database. The two ranked lists are then merged. A common merging method is reciprocal rank fusion, which rewards documents that rank highly in either list without needing the two scores to be on the same scale. Some systems instead weight the two scores, tuning the balance on test queries.
Many search engines and vector databases now support both kinds of index natively, including Elasticsearch, OpenSearch, Weaviate and PostgreSQL with full-text search plus pgvector. A reranking step often follows to reorder the merged list.
An example: a support assistant receives "Error E-4012 when exporting to CSV". The keyword path finds the troubleshooting page that mentions E-4012; the semantic path finds a general article about export failures. Hybrid search returns both, and the specific page ranks first.
What it means for cost
Adding hybrid search to a RAG build is a moderate increase in effort: a second index to maintain, a merging method to choose and some tuning. It usually pays for itself wherever users search for codes, names or exact phrases. Running costs change little, since keyword search is cheap.
Ask a builder whether their retrieval handles exact identifiers, and how they tested it. A set of real queries, including awkward ones with codes and abbreviations, is the honest way to show that hybrid search beats either method alone. Live figures for retrieval builds are on the document search and RAG cost page.
Common questions
When is hybrid search worth it?
When users search with a mix of natural questions and precise terms, as in technical support, legal and compliance documents, product catalogues and internal wikis. For a small collection of plain prose with conversational questions, semantic search alone may be enough.
Does hybrid search replace reranking?
No, they do different jobs. Hybrid search widens the net so relevant passages are among the candidates. Reranking then reads those candidates closely and puts the best ones first. Strong systems often use both.