Skip to main content
RAG Retrieval Quality: When to Combine Keyword and Vector Search
← Back to BlogAI & Automation

RAG Retrieval Quality: When to Combine Keyword and Vector Search

Written by

Our editorial team includes software developers, designers and technology consultants who write from practical experience building websites, applications, automation and cloud systems for businesses.

RAG Retrieval Quality: When to Combine Keyword and Vector Search

An AI assistant gives a confident answer from the wrong product manual. The wording is clear, the citation exists, and the model followed its instructions. The mistake happened earlier: the search step supplied evidence about a similar product.

RAG quality depends on what reaches the model. Before rewriting the prompt, inspect whether retrieval found the material needed to answer the question.


Why One Search Method May Miss the Point

Vector search can find conceptually related text even when a question uses different wording. Keyword search can be valuable for exact identifiers, specialised terms, and names.

Microsoft's Azure AI Search documentation describes hybrid search as combining full-text and vector queries. Its implementation merges their ranked results using Reciprocal Rank Fusion.

These are useful capabilities to evaluate, not a guarantee that combining methods improves every collection. The right comparison uses your documents and your questions.


Classify the Questions First

Build a small set of representative requests:

  • Exact identifier: a customer asks about a specific product code.
  • Paraphrase: a user describes a problem without the manual's terminology.
  • Version-sensitive request: an answer depends on a release or effective date.
  • Multi-part question: several passages are needed.
  • Unanswerable request: the approved collection does not contain the answer.

For each request, identify the expected supporting passage and why it is relevant. This makes the evaluation more precise than asking whether a result merely looks related.


Inspect the Retrieval Pipeline

1. Check the Source Material

Confirm that the correct document is present, current, and readable. Search tuning cannot recover a missing paragraph or resolve a version conflict the organisation has not settled.

Keep document ownership visible so someone can correct the source when the problem is editorial.

2. Review How Content Is Split

Inspect the passages returned to the model. If a procedure is separated from its exceptions, the selected text may support an incomplete answer.

Try changes on a small sample and compare results. Avoid choosing a universal passage length without checking the documents' actual structure.

3. Compare Retrieval Approaches

Run the same question set through keyword, vector, and hybrid configurations. Save the returned passages and their order.

Review exact identifiers separately from paraphrased questions. A higher overall score may hide a regression in the product-code requests that matter most to customers.

4. Evaluate the Final Evidence Set

Returning more text can add conflicting or irrelevant material. Ask whether each selected passage contributes to the answer and whether essential evidence was omitted.

If an additional ranking step is introduced, measure its effect on relevance and response time rather than assuming the extra component is worthwhile.


A Hypothetical Product-Support Example

Suppose two devices have nearly identical names but different reset procedures. A user enters the full model code.

A good evaluation checks whether the retrieved material belongs to that exact device, whether the instructions match its version, and whether the answer stays within that evidence. A citation to the other device's manual should count as a failure even if the response sounds plausible.

This is a proposed test case that a team can adapt to its own catalogue.


Keep Access Rules Independent of Relevance

A relevant document is not automatically an authorised document. Apply access controls before restricted content reaches the model, and include permission-sensitive cases in the test set.

Also track how document removal and updates reach the index. A strong answer based on a retired procedure is still a problem for the person following it.


Final Thoughts

Improving RAG begins with a clear view of the evidence being retrieved. Compare methods using realistic questions, inspect passage quality, and measure changes by request type. Hybrid search is an option to test within that process, not a substitute for it.


Related Blogs

  • RAG for Business Knowledge: Build an AI Assistant That Shows Its Sources
  • Choosing an LLM for Your Application: Test Quality, Latency, and Cost

Further reading and primary accessibility guidance

Related Blogs

More blogs →