RAG Groundedness: Chunking, Hybrid Retrieval, Re-ranking, and Citations
Short answer
B Better chunking and retrieval relevance, hybrid retrieval with re-ranking, and a context-only citation instruction directly improve groundedness in the Cosmos DB-backed RAG pipeline.
Question
Key Takeaways
Groundedness in a RAG pipeline improves when retrieval supplies relevant, well-scoped context and the model is constrained to answer from that context. The correct combination is better chunking and retrieval relevance, hybrid search with re-ranking, and a citation-focused context-only instruction, which addresses both retrieval misses and unsupported generation. Switching Cosmos DB to Redis, removing the system prompt, or raising temperature and max_tokens does not fix the context-selection failure.
Expert Analysis
Groundedness improves when the model receives relevant, well-scoped context and is constrained to use only that context — better chunking, hybrid retrieval with re-ranking, and explicit grounding instructions with citations address the root cause. Higher temperature increases variability/hallucination, changing the vector store technology does not fix relevance, and removing the system prompt loses the grounding constraints.
The failure described is a context-selection and instruction-following problem, not a vector-database-brand problem. Fluent but unsupported answers mean the generator is filling gaps that retrieval left in the top-k context. Option B is the only choice that changes both the evidence the model sees and the rule it follows when that evidence is incomplete: better chunking/retrieval relevance, hybrid retrieval with re-ranking, and an explicit instruction to answer only from provided context with citations.
"Improve chunking/retrieval relevance" addresses whether a retrieved passage is self-contained and actually contains the answer. Smaller, semantically coherent chunks reduce the chance that a chunk mixes several topics or cuts an answer in half, so the context window carries usable evidence rather than adjacent but irrelevant text. Hybrid retrieval adds lexical matching to vector similarity, which matters when the query contains exact terms, product names, or identifiers that embeddings may blur; re-ranking then reorders the candidate set so the most answer-bearing passages survive into the model's limited context. The citation instruction changes the generation contract: the model is told to ground each statement in the supplied passages and identify its source, which suppresses unsupported elaboration. Together these actions target both root causes of low groundedness in this RAG pipeline.
The alternatives fail for concrete reasons. Option A swaps the vector store from Cosmos DB to Redis. That may change indexing, throughput, or operational characteristics, but it does not change chunk boundaries, query phrasing, hybrid scoring, or how many relevant passages reach the prompt; the same weak retrieval result can be returned from a different engine. Option C removes the system prompt entirely, which discards the grounding constraint and citation behavior, leaving the model free to answer from parametric knowledge. Option D increases temperature and max_tokens; higher temperature increases sampling variability and makes unsupported wording more likely, while a larger token budget gives the model more room to elaborate beyond the retrieved evidence. Neither decoding change adds relevant context or forces attribution.
A mechanism the pipeline depends on but the options do not spell out is the top-k context assembly step: the generator can ground only in the passages that survive retrieval and re-ranking. If the top-k window is filled with chunks that are semantically close to the query but do not contain the answer, the model has no citable support even when the vector store is healthy. Hybrid retrieval plus a re-ranker changes which passages occupy that window; chunking determines whether the winning passage is self-contained enough to be quoted. For example, if the query asks for an exact configuration detail and Cosmos DB vector search returns generally related documentation, hybrid lexical matching can surface the passage containing the exact term, and re-ranking can promote it above merely similar passages before the prompt is built. That is why combining retrieval changes with a context-only citation instruction is more direct than any storage swap or decoding tweak.
Official Reference
- https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/vector-search
- https://learn.microsoft.com/en-us/azure/search/hybrid-search-ranking
- https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/use-your-data
These links open the official vendor documentation in a new tab.
Exam Strategy
For RAG quality questions, separate retrieval failures from generation failures. Options that swap a vector store or tune decoding parameters do not change what context reaches the model; prioritize changes that improve chunking, hybrid retrieval, re-ranking, and grounding instructions. When an option bundles retrieval improvements with prompt constraints, it usually addresses groundedness more directly than any single infrastructure swap.
Related Analysis
Practice All AI-200 Questions
Access 69 questions with complete answers and detailed explanations.
View Full AI-200 Practice Test →