Study FAQ
When should a RAG system use keyword, vector or hybrid retrieval?
Also asked as 2
- How do I choose between keyword, vector and hybrid retrieval for RAG?
- Which retrieval strategies fit exact identifiers, paraphrased questions and requests that use both?
Answer
Use keyword retrieval when distinctive terms carry essential evidence, vector retrieval when meaning is expressed with different wording, and hybrid retrieval when both signals matter. Validate the choice with representative queries and known answer-bearing passages.
An exact device identifier or error code makes lexical retrieval a useful candidate. A symptom paraphrase may benefit from vectors. A query containing both an error code and differently phrased symptoms makes hybrid retrieval worth testing. These are hypotheses, not benchmark results or a guarantee that hybrid always wins.
Check the indexed representation: text configuration must preserve important identifiers, and source preparation must retain usable passages. Keep readable content, source identifiers and eligibility metadata alongside vectors so the application can inspect and cite the evidence it actually supplies.
Azure AI Search uses RRF to fuse multiple ranked result lists in hybrid or multi-vector queries. Optional semantic reranking is a subsequent ordering step; it is not another name for hybrid search. More retrieval stages add operational considerations and can only help if useful evidence survives into the generation context.
Test out-of-corpus questions and permission boundaries too. Nonempty retrieval is not proof that the corpus covers the request, and relevance is not permission to disclose a document.
Microsoft Learn
Full explanation
AI-300: Designing Vector, Keyword, and Hybrid RAG Retrieval
Study guide · AI-300
Read the full explanation