# Why does vector search return results for a question my RAG corpus cannot answer?

Exam: AI-300 — Operationalizing Machine Learning and Generative AI Solutions
Knowledge domain: Optimize generative AI systems and model performance
Updated: 2026-11-25T04:35:49.653965+00:00
HTML: https://learningpathx.com/faq/AI-300/ai300-vector-search-irrelevant-neighbors.html

## Also asked as

- 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?

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**

* [Create a vector query in Foundry IQ (Azure AI Search)](https://learn.microsoft.com/en-us/azure/search/vector-search-how-to-query)

Source: [AI-300: Designing Vector, Keyword, and Hybrid RAG Retrieval](https://learningpathx.com/news/ai-300-designing-vector-keyword-and-hybrid-rag-retrieval.html)
