Home › Studies › AI-103 › Information Extraction › Retrieval & Grounding Pipelines

Retrieval & Grounding Pipelines

Indexers · vector, hybrid and semantic search · skillsets (OCR, Text Split, layout, custom) · integrated vectorization · agent retrieval tools

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Ingest and index content

Indexer stages, in order

  1. Document cracking: open files and extract text, images and metadata.
  2. Field mappings: send source fields to index fields as-is (optional).
  3. Skillset execution: optional enrichment into an in-memory enriched document.
  4. Output field mappings: copy enriched nodes into index fields. Required for any transformed content you want in the index.

Field mappings move source content unchanged. Skill output lives only in the enriched document, so it reaches the index only through an output field mapping. Enriched content is temporary unless you save it, for example to a knowledge store.

Azure Content Understanding in Foundry Tools ingests documents, images, video and audio into a defined output format and can feed a search index, with figure descriptions to make visuals searchable.

Vector, hybrid and semantic search

ModeWhat it doesKey detail
Full-textKeyword match, BM25 scoringPrecise for codes, jargon and names
VectorFinds content with similar meaning by comparing embeddingsVector fields are Collection(Edm.Single) with dimensions and a vector profile (hnsw or exhaustiveKnn)
HybridOne request with both search and vectorQueries; runs in parallel, merged by RRFk = vector matches given to RRF; top = results returned
Semantic rankerReranks a BM25 or RRF result; adds captions and answersqueryType = semantic plus semanticConfiguration; top 50 are reranked

Enrichment with skills

SkillDoesNotes
OCRReads printed and handwritten text in image files and embedded imagesNeeds a billable Foundry resource beyond 20 documents per indexer per day; outputs text and layoutText
Text SplitChunks text by pages or sentencesNot bound to Foundry Tools, non-billable; maximumPageLength default 5000, pageOverlapLength sets overlap
Document LayoutDetects structure with the Document Intelligence layout model; outputs Markdown or textNeeds a billable resource beyond 20 documents per indexer per day; times out past five minutes
Azure Content UnderstandingExtraction and chunking in one skill; tables and figures as Markdown; cross-page tables as one unitNo free 20 documents per indexer per day; no Text Split needed
Document ExtractionExtracts text and images from a file, with control over namingText extraction free; image extraction billed by Azure AI Search
GenAI PromptVerbalizes images into short text descriptions with an LLMUsed in the multimodal pipeline
Custom Web APICalls your endpoint for custom processingHTTPS only; PUT or POST; default timeout 30 s, max 230 s; default batchSize 1000

RAG ingestion flow

  1. Indexer reads raw data from a supported data source.
  2. Chunking strategy in the skillset: Text Split, Azure Content Understanding, or a document parsing mode. Chunking is needed unless documents are small, to meet embedding token limits.
  3. Embedding skill creates the vectors (AzureOpenAIEmbedding, a custom skill, Azure Vision multimodal, or an AML skill).
  4. Index receives chunked, vectorized content; a vectorizer on the vector field converts text queries at query time.
Embedding skillMatching vectorizer
AzureOpenAIEmbedding skillAzure OpenAI vectorizer
Custom skillCustom Web API vectorizer
Azure Vision multimodal embeddings skillAzure Vision vectorizer
AML skill (Foundry model catalog)Microsoft Foundry model catalog vectorizer

Multimodal pipeline (Import data wizard)

Without integrated vectorization, you can generate embeddings outside the service and push prevectorized content into vector fields.

Connect retrieval to agents

OptionHow it retrievesUse it when
Classic searchOne query against one index in one request-response; no LLM planningPredictable, low-latency queries; GA features required
Agentic retrievalLLM-based query planning, parallel subqueries, semantic reranking, merged result with referencesComplex, multi-part or context-dependent questions; accepts extra latency
Azure AI Search toolAgent queries one index through a project connectionYou own an index with searchable text and vector fields
Foundry IQ knowledge baseAgent calls the knowledge_base_retrieve MCP tool of the knowledge baseShared, multi-source, permission-aware grounding for several agents

CLI and PowerShell

TaskAzure CLIPowerShell
Hybrid query with the Python SDKclient = SearchClient(endpoint=endpoint, index_name=index_name, credential=credential)-
Build the vector part of a hybrid query (Python)VectorizedQuery(vector=query_vector, k_nearest_neighbors=10, fields="DescriptionVector", exhaustive=True)-
Run the hybrid search (Python)results = client.search( search_text="historic hotel walk to restaurants and shopping", vector_queries=[vector_query], select=["HotelName", "Description", "Address/City"], top=10 )-
Attach an Azure AI Search index to an agent (Python)AzureAISearchTool( azure_ai_search=AzureAISearchToolResource( indexes=[ AISearchIndexResource( project_connection_id=connection_id, index_name=SEARCH_INDEX_NAME, query_type=AzureAISearchQueryType.SIMPLE, ), ] ) )-

Exam Tips

Tick each tip once you can answer it without looking.

“Crawl Blob Storage into an index on a schedule without writing code that adds documents” → Indexer with a data source and a schedule (as often as every five minutes). Trap: The push model means your code sends data to the index.

“Indexer limits” → One data source and one index per indexer; many indexers can write to one index. Trap: One indexer can't write to several indexes.

“Change detection for new or updated content” → Automatic for blobs; must be enabled for Azure SQL and Azure Cosmos DB. Trap: Don't assume every source detects changes by default.

“Skill output (OCR text, chunks) isn't in the index” → Add an output field mapping from the enriched document. Trap: Field mappings copy source fields as-is; they don't see enriched nodes.

“Split extracted text into overlapping chunks for an embedding model, no billing” → Text Split skill (pages or sentences, pageOverlapLength). Trap: Document Layout and OCR call Foundry Tools and become billable beyond 20 documents per indexer per day.

“Structure-aware chunks, cross-page tables and tables as Markdown, no Text Split” → Azure Content Understanding skill. Trap: The Content Understanding skill page contrasts it with Document Layout, which outputs tables and figures as plain text and gives 20 free documents per indexer per day before a billable resource is needed.

“Scanned images or embedded images that must become searchable text” → OCR skill (JPEG, JPG, PNG, BMP, TIFF; also images embedded in PDFs). Trap: Image extraction must be on (imageAction) and has an extra fee.

“Your own enrichment code in the pipeline” → Custom Web API skill: HTTPS, PUT or POST, returns the declared outputs. Trap: Any other response is an error and no enrichment is performed.

“Keyword precision plus meaning in one request” → Hybrid: search + vectorQueries, merged by RRF. Trap: The semantic ranker is a separate reranking step, not the merge.

“Semantic ranker is configured but isn't reranking” → The query is * or empty; use a plain text query with queryType = semantic and a semanticConfiguration. Trap: Semantic ranking only reranks the top 50 results.

“Text queries must be converted to vectors at query time” → Vectorizer in the index schema that matches the embedding model used for indexing. Trap: A mismatched model compares vectors from different spaces.

“Vector field definition” → Collection(Edm.Single), searchable, dimensions from the embedding model, a vector profile. Trap: A vector field isn't filterable; filter on a text or numeric field.

“Azure AI Search tool defaults” → top_k = 5, query_type = vector_semantic_hybrid. Trap: project_connection_id and index_name are required.

“Agent grounding through an Azure AI Search knowledge base” → MCP tool with allowed_tools = knowledge_base_retrieve, via a RemoteTool project connection. Trap: Hub-based projects aren't supported.

“Complex multi-part questions that depend on chat history” → Agentic retrieval: LLM query planning, parallel reranked subqueries, merged result. Trap: Classic search is one query against one index and adds no LLM planning.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Information Extraction overviewDocument Extraction →