Key takeaways
A more capable language model cannot reliably compensate for missing or incorrect source information.
Hybrid search combines the precision of keyword retrieval with the ability of vector retrieval to find related meanings.
Rank fusion and optional reranking help select evidence, but neither establishes that a document is authoritative or current.
Enforce document permissions and version eligibility independently of relevance scores.
Measure retrieval quality and final answer correctness separately, alongside latency and cost.
Introduce hybrid retrieval only when it demonstrates an advantage over simpler search methods on representative business questions.
Your AI assistant knows how to answer — but can it find the answer?
Imagine a customer-service team using an AI assistant to understand its insurance policies. An employee asks whether a customer can cancel a policy within the cooling-off period. The assistant retrieves an explanation about ordinary policy cancellation, produces a fluent response and misses the separate document containing the applicable cooling-off rules.
Now consider another employee who searches for a specific endorsement reference but describes the surrounding issue in everyday language. A search engine that relies entirely on matching words may find the reference without the relevant explanation. One that relies entirely on meaning may find similar explanations but overlook the exact reference.
Both situations expose a problem that businesses can easily mistake for a weakness in the AI model. The assistant may be perfectly capable of interpreting the right evidence, yet the information it needs never reaches it.
Hybrid search for generative AI addresses this retrieval problem by combining different ways of finding information. Before spending more on a larger language model, it is worth examining whether your AI application is searching the right documents, identifying the right passages and respecting the rules that govern their use.
Two search methods, two different strengths
Traditional keyword search looks for words and phrases in indexed content. A widely used ranking method, BM25, considers factors such as how often query terms occur in a document, how distinctive those terms are across the collection and document length. It is particularly useful for reference numbers, product names, regulatory terminology and distinctive phrases.
Exact identifiers deserve additional care. A product code containing punctuation may be split into separate terms by a text analyser. A dedicated exact-match field can preserve that identifier, while the full-text index handles surrounding descriptions.
Vector search works differently. An embedding model converts text into numerical representations called embeddings. The search system compares a question's representation with those of indexed passages to find material that is close in meaning. A question about money being returned after a purchase might therefore retrieve a document about refunds even if the same words do not appear in both.
Meaning-based retrieval is valuable because customers and employees rarely use the exact terminology found in internal documents. However, semantic similarity can also bring back passages about related but different products, jurisdictions or policy conditions.
Keyword retrieval is not an outdated technology that vector search automatically replaces. Research on the BEIR benchmark found that BM25 remained a competitive baseline across diverse retrieval datasets, while more computationally demanding reranking approaches performed strongly on average.[1] The practical lesson is to test complementary methods rather than assuming that the newest method will always perform best.
Where hybrid search fits inside a RAG application
Retrieval-augmented generation (RAG) supplies a language model with relevant external information before it generates an answer. The original RAG research explored combining learned model knowledge with information retrieved from an external index.[2] Enterprise RAG systems apply the general principle to sources such as product manuals, support articles, approved policies and internal knowledge repositories.
Hybrid search is one way to implement the retrieval stage of RAG. It is not a different kind of language model, nor does it require retraining the model on every company document.
A typical request follows this sequence: authenticated question → authorised keyword and vector searches → combined ranking → optional reranking → evidence selection → AI-generated answer with citations or a controlled refusal to answer.
During ingestion, the application extracts text, splits documents into useful passages, generates embeddings and indexes both the text and vector representations. Each passage should retain its source identifier and relevant metadata, including document version, effective date, product scope and permissions.
At query time, the two search methods retrieve candidate passages. The application combines their results, removes duplicates and selects a limited amount of context for the language model. The model should distinguish information supported by that context from information it cannot establish.
The distinction matters: retrieval finds potential evidence; generation interprets it. A convincing answer is not evidence that the search was successful.
How two different result lists become one ranking
Combining search results is more complicated than adding their scores. A BM25 score and an embedding similarity score express different quantities and may have very different ranges. An uncalibrated sum can make one retrieval method dominate the other for purely numerical reasons.
Reciprocal Rank Fusion (RRF), introduced by Cormack, Clarke and Büttcher in 2009, combines rankings using the positions of documents rather than their original scores.[3] A passage receives a contribution from each list in which it appears, with higher positions contributing more.
For a passage d, the unweighted RRF score is the sum of 1/(c + r) across the result lists containing d. Here, r is its one-based position and c is a positive ranking constant. The constant controls how much emphasis is placed on the highest positions. It is separate from the number of candidates retrieved.
Suppose one passage ranks second in keyword search and third in vector search, while another ranks first in keyword search and is absent from the vector candidate list. With c = 60, the first passage receives 1/62 + 1/63, approximately 0.0320. The second receives 1/61, approximately 0.0164. Under this fusion rule, the passage supported by both searches ranks higher.
This is a mathematical demonstration of ranking behaviour, not evidence that the first passage is factually better. A uniquely relevant exact reference might still deserve priority. Mandatory filters or a dedicated identifier lookup should enforce requirements that cannot safely be left to ranking.
Managed platforms already implement this approach. Microsoft's Azure AI Search documentation describes merging ranked search results through RRF, with additional semantic ranking available in the retrieval pipeline.[4] Other platforms may use calibrated score fusion or different combinations. Evaluate their behaviour on your own documents.
A practical insurance knowledge-assistant scenario
Consider an insurer designing a knowledge assistant for its customer-service employees. Its content includes policy wording, product endorsements, claims guidance and internal operating procedures. Multiple versions exist, and similar product names can refer to substantially different coverage.
An employee asks whether accidental damage is covered under a particular endorsement. Keyword search can locate the endorsement identifier and distinctive insurance terminology. Vector search can find relevant passages about unintended physical damage, even if the employee's wording differs from the contract.
Neither result list should be sent straight to the language model. The application must establish which product, endorsement version and effective dates apply to the enquiry. Depending on the workflow, the customer's policy schedule and applicable exclusions may also be necessary.
After restricting the search to authorised and applicable material, the system can combine candidate passages and rerank them against the question. It should retain the coverage clause together with any relevant definitions and exclusions rather than retrieving a favourable sentence in isolation.
The answer can explain the relevant wording and cite its source. If the product version or circumstances are unknown, the assistant should request clarification or direct the employee to the appropriate specialist. It should not make a final claims determination merely because a retrieved clause looks relevant.
The business opportunity is to help employees locate reliable supporting information more quickly. Whether that translates into shorter handling times or fewer errors must be established through operational testing.
Reranking helps — but more context is not always better
A first-stage retriever aims to find a manageable collection of potentially useful passages. A reranker then assesses those candidates more closely against the question. A cross-encoder, for example, jointly examines the question and passage to estimate relevance rather than comparing their embeddings independently.
This extra stage can distinguish a passage explaining refund eligibility from one describing how a previously approved refund is processed. Both may contain similar language, but only one addresses an eligibility question.
Reranking has a cost: it requires additional computation and can increase response time. It also cannot recover evidence that was excluded from the initial candidate lists. Candidate depth, ranking quality and the final context budget therefore need to be designed together.
Sending every retrieved passage to the model is rarely a good default. Irrelevant text consumes context capacity, increases processing costs and can obscure the evidence that matters. Prefer a compact set of sufficiently complete passages, retaining their original source references and necessary surrounding context.
Search quality begins before anyone asks a question
A sophisticated retrieval algorithm cannot repair an unreliable knowledge collection. If policy documents are outdated, scanned text is extracted incorrectly or tables lose their row and column relationships, hybrid search may simply retrieve those defects more effectively.
Start with source quality and ownership. Identify authoritative repositories, remove obsolete copies where appropriate and record effective dates. Preserve historical versions when required for past transactions or audit purposes, but distinguish them clearly from current documents.
Chunk documents around meaningful boundaries such as headings, clauses and paragraphs. Include enough context to retain definitions and qualifications. Test whether retrieved chunks are independently understandable; overly small fragments can separate an exception from the rule it modifies.
For multilingual applications, evaluate both the keyword analyser and embedding model on the languages and mixed-language questions that employees actually use. A search system performing well on English documents may behave differently when the question is in Hindi and the authoritative source is in English.
Treat document updates, deletions, access changes and embedding-model upgrades as operational processes. Monitor index freshness and test reindexing before replacing a working retrieval configuration.
The most relevant document may still be the wrong document to reveal
An enterprise search application must distinguish relevance from permission. An employee searching for salary information must not retrieve a colleague's confidential records simply because those records are semantically similar to the question.
Enforce access controls using trusted identity and document permission metadata across both retrieval paths. Apply permissions within retrieval where possible, verify authorisation before content is passed to any model or reranker, and protect cached answers from reuse across incompatible permission scopes. Microsoft's document-level access-control guidance describes patterns for applying identity-based restrictions at query time.[5]
Index synchronisation is also a security requirement. Revoked access and deleted content must be propagated within defined service objectives. Where permission freshness cannot be established, sensitive content should not be disclosed.
Documents may contain malicious or misleading instructions directed at an AI system. Treat retrieved text as untrusted evidence, not as authority to change system behaviour or execute actions. Keep permissions, tool execution and business approvals outside the model's control.
Finally, citations must be more than decorative links. Check that cited passages actually support consequential statements, disclose conflicting evidence and allow the user to inspect authorised source material. Retrieval and citation checks reduce certain risks, but they do not eliminate hallucinations or guarantee accuracy.
How to know whether hybrid search is worth the investment
Build an evaluation set from real, authorised business questions. Include exact references, paraphrased questions, ambiguous requests, multilingual searches, outdated information, restricted content and questions that cannot be answered from the available documents.
Ask subject-matter specialists to identify the relevant evidence and acceptable answers. Keep a separate test set for comparing keyword-only, vector-only and hybrid retrieval, with and without reranking, while holding other components constant where feasible.
Measure evidence recall at k: the fraction of labelled relevant passages recovered within the first k results. Measure ranking quality using metrics such as normalised discounted cumulative gain (nDCG), which rewards putting more relevant results nearer the top. Inspect failed queries individually rather than relying on one average.
Evaluate the final assistant separately. Track answer correctness, citation support, appropriate abstention, critical errors and unauthorised disclosures. A retrieval improvement does not necessarily produce a proportional improvement in generated answers.
Connect these measures to operational value. Track time to an accepted answer, repeat searches, specialist escalations, P95 end-to-end latency and cost per accepted answer. Include embedding generation, indexing, search infrastructure, reranking, model calls and any human review in the cost assessment.
Set minimum quality and security requirements before a controlled pilot. Compare results with existing search and manual workflows, and assess performance by query type. A hybrid solution is worth expanding when the observed improvement justifies its extra cost and operational responsibilities.
Start with the search problem, not the technology purchase
If an organisation primarily searches for exact order numbers, customer identifiers or approved reference codes, a deterministic database lookup or well-configured keyword search may already be sufficient. If users mainly explore descriptive content expressed in varying language, vector search may perform well without an elaborate fusion pipeline.
Hybrid search becomes especially compelling when the knowledge base contains both precise terminology and natural-language explanations, and users frequently move between the two. Even then, begin with a limited use case and add complexity only where evaluation identifies a genuine need.
My view is that an enterprise AI assistant should be judged by its ability to deliver trustworthy, useful information, not by how impressive its responses sound. If your business is struggling with inaccurate AI answers, a focused assessment of document quality, retrieval performance, access controls and answer evaluation can establish where the improvement effort belongs.
The most useful AI answer often begins with finding the right evidence.
References and further reading
[1] Thakur, N., Reimers, N., Rücklé, A., Srivastava, A. and Gurevych, I. (2021). BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models. NeurIPS Datasets and Benchmarks. https://datasets-benchmarks-proceedings.neurips.cc/paper_files/paper/2021/hash/65b9eea6e1cc6bb9f0cd2a47751a186f-Abstract-round2.html
[2] Lewis, P., et al. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. Advances in Neural Information Processing Systems, 33. https://papers.nips.cc/paper/2020/hash/6b493230205f780e1bc26945df7481e5-Abstract.html
[3] Cormack, G. V., Clarke, C. L. A. and Büttcher, S. (2009). Reciprocal rank fusion outperforms condorcet and individual rank learning methods. Proceedings of SIGIR '09, pp. 758–759. https://doi.org/10.1145/1571941.1572114
[4] Microsoft Learn. Relevance scoring in hybrid search using Reciprocal Rank Fusion (RRF). https://learn.microsoft.com/en-us/azure/search/hybrid-search-ranking
[5] Microsoft Learn. Document-level access control in Azure AI Search. https://learn.microsoft.com/en-us/AZURE/search/search-document-level-access-overview
Apply the approach
Consider a customer-service assistant searching an insurer's knowledge base. Three common question patterns require different retrieval strengths: a precise endorsement identifier, a description of a coverage issue in everyday language, and a question containing both. The following mapping shows how to select the retrieval approach without assuming that one method is universally superior.
Locate the specified identifier using a dedicated field where exact matching is required. Confirm the applicable product and version.
Find clauses with related meanings even when the employee does not use the terminology in the policy. Check that the retrieved scope is applicable.
Combine identifier-aware lexical retrieval with meaning-based candidates, then select relevant, authorised evidence and preserve necessary exclusions.
Put the approach into practice
- 01Choose a knowledge-intensive business workflow and identify its authoritative documents, owners and access rules.
- 02Build an evaluation set covering exact references, natural-language questions, ambiguous requests and unanswerable queries.
- 03Compare keyword and vector baselines with hybrid fusion and optional reranking using equivalent test conditions.
- 04Implement permission filtering, version control, source citations and evidence-based abstention before production use.
- 05Pilot with representative users and measure answer acceptance, critical errors, search latency and complete operating costs before scaling.
Frequently asked questions
Is hybrid search the same as RAG?
No. Hybrid search retrieves relevant information using complementary search methods. RAG uses retrieved information to support a generated answer. A RAG system may use keyword search, vector search, hybrid search or another retrieval approach.
Does hybrid search require two separate databases?
No. Some search engines support full-text and vector indexing within the same service. Separate systems can also be used, but they require careful coordination of document identifiers, permissions, index updates and result fusion.
How many search results should a RAG application retrieve?
There is no universal number. Tune initial candidate depth, reranking depth and final context size using representative queries, evidence recall, answer quality and latency. Retrieve enough to cover the evidence without filling the model context with unrelated text.
Can hybrid search eliminate AI hallucinations?
No. It can improve access to supporting information, but the system can still retrieve incorrect or incomplete content, misunderstand passages or generate unsupported claims. Use authoritative sources, citation checks, abstention and human review where appropriate.
Can hybrid search work without fine-tuning a language model?
Yes. Search indexes and embedding models can be used to retrieve external evidence for an existing language model. Fine-tuning may help with specialised behaviour or output formats, but it is not a prerequisite for hybrid retrieval.
What determines the cost of hybrid search?
Cost depends on document volume, update frequency, embedding generation, index storage, query traffic, candidate counts, optional reranking and generation. Compare the total cost per accepted answer against simpler retrieval methods at equivalent quality and security levels.