SaveMyCert
Log in
2 of 2 free questions left today·for 5 a day
Implement information extraction solutions

AI-103: Build Retrieval and Grounding Pipelines with Azure AI Search

20 min readAI-103 · Implement information extraction solutionsUpdated

A retrieval and grounding pipeline is the ingestion side of RAG: it pulls documents, images, audio and video into an Azure AI Search index, enriches and chunks them with skills, embeds the chunks, and exposes the index to agents and workflows as a grounding tool. This lesson covers AI-103 task 5.1 — indexers with change and deletion detection, OCR and layout-aware extraction with the Azure Content Understanding skill, index projections, the embedding skill, built-in and custom skills, image, audio and video ingestion, vector, hybrid and semantic configuration, and connecting the result to Foundry agents through the Azure AI Search tool or a Foundry IQ knowledge base's MCP endpoint.

What you’ll learn

  • Configure an indexer with a schedule, change detection, deletion detection and the right field or output field mappings
  • Build an OCR flow that extracts images, reads their text and merges it into the content that gets chunked and embedded
  • Choose between the Azure Content Understanding, Document Layout and Document Extraction skills, and configure file_data and locationMetadata
  • Write chunks to an index with index projections and an embedding skill whose dimensions, input size and identity are correct
  • Enrich text with built-in skills and custom Web API skills, and attach a billable Foundry resource without keys
  • Ingest images, audio and video by choosing verbalization, multimodal embeddings or Content Understanding search analyzers
  • Configure vector fields, filters, hybrid and semantic queries, and connect the index to agents through the Azure AI Search tool or a knowledge base MCP endpoint

The 10 parts · about 14 min of reading

  1. How does an indexer pull documents into an Azure AI Search index?Start hereIndexers pull from supported sources on a schedule; deletions need a policy from run one, and skill outputs go in outputFieldMappings.2 min
  2. How does a RAG ingestion flow handle scans, embedded images and OCR?Scanned text needs imageAction plus the OCR skill, and Text Merge puts that text back into content before chunking and embedding.1 min
  3. Which skill should extract layout and chunk documents?The Content Understanding skill extracts Markdown tables, chunks across pages and adds page ranges; both layout skills need file_data.1 min
  4. How do index projections write chunks as separate search documents?Projections write one search document per chunk; never map the parent key, and skip parent documents to avoid empty ones.1 min
  5. How do you configure the Azure OpenAI Embedding skill?The embedding skill's dimensions must match the vector field, inputs stay under about 8,000 tokens, and identity auth is keyless.1 min
  6. Which built-in skills enrich text, and how is enrichment billed?PII Detection, Entity Recognition and Translation enrich text; past 20 free documents a day you must attach a Foundry resource.1 min
  7. When should you write a Custom Web API skill?A Custom Web API skill sends recordId-matched batches to your HTTPS endpoint; shrink batchSize and raise timeout for slow work.1 min
  8. How do you make images, audio and video searchable for RAG?Verbalize figures with GenAI Prompt or the Content Understanding skill, or embed images directly; media goes through Content Understanding first.2 min
  9. How do you configure vector, hybrid and semantic search for grounding?Vector fields need matching dimensions and a profile; filter on nonvector fields, prefer preFilter, and add hybrid or semantic ranking.2 min
  10. How do you connect a retrieval pipeline to agents and workflows?The Azure AI Search tool targets one index; a Foundry IQ knowledge base spans several over MCP with managed identity and roles.2 min

Mind map

Pull on a schedule, no upload codeDeletion policy must exist from runoneBlob soft delete needs versioning offSkill outputs go inoutputFieldMappingsbase64Encode makes a valid key1✓Indexers and mappingsCracking skips text that is onlypixelsimageAction yields normalized_imagesOCR outputs text and layoutTextText Merge inserts OCR atcontentOffset2✓Scans and OCRContent Understanding skill for newskillsetsMarkdown tables; cross-page tableswholelocationMetadata gives page rangesNeeds allowSkillsetToReadFileData3✓Layout skills andchunkingOne search document per chunkNever map the parent keyKey: Edm.String with keyword analyzerskipIndexingParentDocuments dropsempties4✓Index projectionsSkill and field dimensions must matchField dimensions can't change laterInputs capped near 8,000 tokensEmpty key and identity = systemidentityNeeds Cognitive Services OpenAI User5✓Embedding skillPII Detection: index maskedTextTranslation: set target, auto-detectsourceFree for 20 documents per indexer adayAIServicesByIdentity: keyless, anyregion6✓Built-in text skillsYour own logic at an HTTPS endpointRecords matched by recordId, not orderDefaults: 1,000 records, PT30S timeoutTimeout max PT230S; parallelism max 107✓Custom Web API skillVerbalize diagrams with GenAI PromptPhoto queries need multimodalembeddingsGenAI Prompt timeout fixed at 30secondsMedia: videoSearch and audioSearchfirst8✓Images, audio and videoCollection(Edm.Single), searchableFilter on nonvector fieldspreFilter returns k when matches existstored false: partial updates dropvectorsHybrid merges with Reciprocal RankFusion9✓Vector, hybrid, semanticSearch tool targets exactly one indexPrivate service: Entra ID plus tworolesKnowledge base spans indexes over MCPRemoteTool connection, Index DataReaderPer-user trimming needs the user'stoken10✓Agents and knowledgebasesRetrieval andgrounding with AzureAI Search
Mind map

AI-103: Build Retrieval and Grounding Pipelines with Azure AI Search

Pull on a schedule, no upload codeDeletion policy must exist from runoneBlob soft delete needs versioning offSkill outputs go inoutputFieldMappingsbase64Encode makes a valid key1✓Indexers and mappingsCracking skips text that is onlypixelsimageAction yields normalized_imagesOCR outputs text and layoutTextText Merge inserts OCR atcontentOffset2✓Scans and OCRContent Understanding skill for newskillsetsMarkdown tables; cross-page tableswholelocationMetadata gives page rangesNeeds allowSkillsetToReadFileData3✓Layout skills andchunkingOne search document per chunkNever map the parent keyKey: Edm.String with keyword analyzerskipIndexingParentDocuments dropsempties4✓Index projectionsSkill and field dimensions must matchField dimensions can't change laterInputs capped near 8,000 tokensEmpty key and identity = systemidentityNeeds Cognitive Services OpenAI User5✓Embedding skillPII Detection: index maskedTextTranslation: set target, auto-detectsourceFree for 20 documents per indexer adayAIServicesByIdentity: keyless, anyregion6✓Built-in text skillsYour own logic at an HTTPS endpointRecords matched by recordId, not orderDefaults: 1,000 records, PT30S timeoutTimeout max PT230S; parallelism max 107✓Custom Web API skillVerbalize diagrams with GenAI PromptPhoto queries need multimodalembeddingsGenAI Prompt timeout fixed at 30secondsMedia: videoSearch and audioSearchfirst8✓Images, audio and videoCollection(Edm.Single), searchableFilter on nonvector fieldspreFilter returns k when matches existstored false: partial updates dropvectorsHybrid merges with Reciprocal RankFusion9✓Vector, hybrid, semanticSearch tool targets exactly one indexPrivate service: Entra ID plus tworolesKnowledge base spans indexes over MCPRemoteTool connection, Index DataReaderPer-user trimming needs the user'stoken10✓Agents and knowledgebasesRetrieval andgrounding with AzureAI Search

How the exam tests this

Expect scenario items about an ingestion or retrieval pipeline that isn't behaving — an empty content field, stale or orphaned documents, missing chunks, a 403, a timeout — or a new requirement such as citing page ranges, searching by photo, or answering from videos. The deciding detail is usually a constraint: no upload or custom code, no API keys, least privilege, the index must not be rebuilt, slower indexing is acceptable, or a partner's concurrency limit. Several items show a short JSON or Python fragment (a mapping, a projection selector, a custom skill response) and ask what to change, and some ask you to select two changes that together fix the problem.

Key takeaways

  1. Supported source and no upload code means an indexer on a schedule; blob change detection uses LastModified automatically.
  2. Native blob soft delete detection needs versioning off and must exist from the first run; deletions take effect on the next indexer run.
  3. fieldMappings read source fields before skills run; outputFieldMappings send skill outputs to the index. Use base64Encode to turn a path into a valid key.
  4. Scans need imageAction plus the OCR skill, and the Text Merge skill is what puts image text into the content that gets chunked and embedded.
  5. For new layout-aware skillsets use the Azure Content Understanding skill: Markdown tables, cross-page chunks, locationMetadata page ranges, and allowSkillsetToReadFileData for file_data.
  6. Index projections: never map the parent key, use a keyword-analyzed string key and a filterable string parent field, and skipIndexingParentDocuments for chunk-only indexes.
  7. Embedding skill dimensions must equal the vector field's; chunk anything over about 8,000 tokens; empty apiKey and authIdentity means the system-assigned identity.
  8. Built-in skills are free for 20 documents per indexer per day; a keyless AIServicesByIdentity attachment removes the limit with no region requirement.
  9. Custom Web API responses must echo every recordId; tune batchSize, timeout (max PT230S) and degreeOfParallelism (max 10) together.
  10. Verbalize diagrams that must be explained, embed images directly for look-alike search; use Content Understanding audioSearch and videoSearch analyzers for media.
  11. One Azure AI Search tool targets one index; a knowledge base over several indexes connects through a RemoteTool MCP connection, with a per-request user token for permission trimming.
0/10
Ready to start

Part 1: How does an indexer pull documents into an Azure AI Search index?

Indexers pull from supported sources on a schedule; deletions need a policy from run one, and skill outputs go in outputFieldMappings.

2 min read · 10 parts, about 14 min in allStart lesson

Frequently asked questions

How do I make Azure AI Search remove documents when the source blobs are deleted?

Add a deletion detection policy to the blob data source before the indexer's first run. With native blob soft delete detection, enable blob soft delete on the storage account (and keep blob versioning off), set the retention period longer than the indexer interval, and the indexer removes each document the next time it processes the soft-deleted blob. Blobs deleted before the policy existed aren't cleaned up by a reset; Microsoft recommends a new index and indexer with the policy from the start.

Why is text from images missing from my vector search results in Azure AI Search?

The OCR skill stores the text it reads per image under /document/normalized_images/*, while chunking and embedding skills read /document/content. Add the Text Merge skill to combine the content with the OCR text at each image's contentOffset, then chunk and embed the merged output. Output field mappings can't fix it, because they run after all skills have finished.

Should I use the Azure Content Understanding skill or the Document Layout skill?

Use the Azure Content Understanding skill for new skillsets. It outputs tables as Markdown, keeps tables that span pages together, chunks the content itself with chunks that can cross page breaks, and adds pageNumberFrom and pageNumberTo when locationMetadata is requested. The Document Layout skill remains supported for existing pipelines; its tables are plain text and its text chunks stay within a page. Both need allowSkillsetToReadFileData set to true for blob sources.

Sign up free to mark lessons complete, bookmark topics and track your exam readiness.

Spotted a mistake in this lesson?