# How do candidate retrieval, RRF, semantic reranking and context selection differ?

Exam: AI-300 — Operationalizing Machine Learning and Generative AI Solutions
Knowledge domain: Optimize generative AI systems and model performance
Updated: 2026-11-25T04:35:48.413001+00:00
HTML: https://learningpathx.com/faq/AI-300/ai300-rag-retrieval-fusion-context-stages.html

## Also asked as

- What happens to a passage between vector retrieval, fusion, reranking and the RAG prompt?
- How do vector k, hybrid top, semantic ranking and the final context budget affect what reaches generation?

Candidate retrieval discovers possible evidence, RRF combines ranked lists, semantic reranking reorders retrieved candidates, and context selection chooses what the application actually sends to generation. Each stage has a different responsibility.

Vector `k` requests nearest-neighbor candidates. Hybrid `top` controls the returned result count. Neither automatically specifies how many passages enter the prompt: the application still applies its context-selection rule and budget.

Semantic reranking operates on available retrieved candidates; only the top 50 initial results progress to that step. The documented vector-plus-semantic example sets vector `k` to 50 to supply the ranker. This is candidate-input guidance, not an instruction to put 50 passages into every prompt. In hybrid configurations, review the combined lexical/vector pool and filters as well. It cannot recover an answer-bearing passage omitted from that candidate set. Likewise, more candidates can produce no answer benefit if context selection still discards the required evidence.

Preserve document/passage identifiers through the stages. If the correct passage is absent from the index, inspect ingestion and preparation. If indexed but absent from candidates, inspect query fields, representations and retrieval settings. If returned but absent from context, inspect ranking and selection. If correct evidence reaches the model but the answer fails, investigate generation and application handling.

Increase counts only to test a concrete hypothesis. Larger context can add duplication and irrelevant material. Keep the generation context budget distinct from the retrieval candidate budget, and keep the semantic-ranker input pool distinct from the prompt size.

**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)
* [Relevance in vector search](https://learn.microsoft.com/en-us/azure/search/vector-search-ranking)
* [Semantic ranking in Foundry IQ (Azure AI Search)](https://learn.microsoft.com/en-us/azure/search/semantic-search-overview)
* [Create a hybrid query in Foundry IQ (Azure AI Search)](https://learn.microsoft.com/en-us/azure/search/hybrid-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)
