Skip to main content

Azure AI Search Deep Dive — RAG & Grounding

[ ABORT TO HUD ]
SEQ. 1
SEQ. 2
SEQ. 3

Azure AI Search Deep Dive

📚 RAG & Grounding 10 min 80 BASE XP⌨ HANDS-ON LAB

The Search Engine Behind RAG

Azure AI Search is the recommended search service for Foundry RAG implementations, supporting three search modes:

Search Modes

ModeHow It WorksBest For
Keyword (BM25)Traditional text matchingExact terms, codes, IDs
VectorSemantic similarity via embeddingsConceptual queries, natural language
HybridKeyword + Vector combinedProduction (best overall quality)
Semantic RankingAI reranker on top of resultsMaximum relevance accuracy

Index Architecture

{
  "name": "company-docs-index",
  "fields": [
    {"name": "id", "type": "Edm.String", "key": true},
    {"name": "content", "type": "Edm.String", "searchable": true},
    {"name": "contentVector", "type": "Collection(Edm.Single)",
     "dimensions": 1536, "vectorSearchProfile": "default"},
    {"name": "source", "type": "Edm.String", "filterable": true},
    {"name": "title", "type": "Edm.String", "searchable": true}
  ]
}
🎯 Pro Tip: Always use Hybrid search + Semantic Ranking in production. Hybrid search combines the precision of keyword matching with the conceptual understanding of vector search, and semantic ranking further reorders results for maximum relevance.
⌨ HANDS-ON LABCreate Vector Index in Azure AI Search
⭐ +200 XP

Deploy an Azure AI Search vector index with HNSW algorithm and semantic ranking enabled.

1Create search index schema definition using az search command.
lab-sandbox — simulated environment
INFINITY LAB SANDBOX v2.6 — simulated shell
Type the command for the current objective. Helpers: "hint", "solution", "clear".
$
OBJECTIVE 1 / 1 — type "hint" if stuck
FOUNDRY VERIFICATION
QUERY 1 // 1
What search configuration provides the best RAG quality in production?
Keyword only
Vector only
Hybrid search + Semantic Ranking
Full-text search