Study FAQ
Why does vector search return results for a question my RAG corpus cannot answer?
Also asked as 2
- Why can nearest-neighbor search return passages when there is no answer in the index?
- Why can RAG vector search return weak matches when the corpus has no supporting passage?
Answer
Nearest-neighbor search finds the closest available vectors, even when none provides useful support for the question. A nonempty result set does not establish corpus coverage.
Azure AI Search vector queries can return the requested k neighbors when enough eligible documents exist, including poor-similarity matches. That behavior differs from a lexical query finding no matching term. Filters, corpus size and any supported threshold can affect the actual result count.
Inspect the readable answer-bearing passages, required conditions and source eligibility before constructing an answer. Keep an application policy for insufficient evidence: acknowledge that the available corpus does not support an answer, ask for information where appropriate, or use an approved escalation path.
Include out-of-scope and similar-but-wrong-document cases in evaluation. Test that generation does not turn a weak neighbor into confident invented guidance. Hybrid retrieval or a supported threshold can be candidates to investigate, but neither a high score nor fluent wording proves the answer is supported. The vector threshold documented in the current query guide is preview and applies before fusion.
Microsoft Learn
Full explanation
AI-300: Designing Vector, Keyword, and Hybrid RAG Retrieval
Study guide · AI-300
Read the full explanation