Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
Foundry IQ (Azure AI Search) provides direct indexing and query APIs alongside higher-level knowledge source and knowledge base APIs for managed retrieval. Use the Azure portal, REST APIs, or Azure SDKs to configure these capabilities, or connect agents to knowledge bases in the Microsoft Foundry portal.
Important
These features and functionality support connections to other Microsoft services and third-party services. Use of these services is subject to their respective terms and might result in data processing or storage outside of the Azure compliance boundary, as well as data flowing into the Azure compliance boundary.
It's your responsibility to manage whether your data will flow outside of your organization's compliance and geographic boundaries and any related implications, and that appropriate permissions, boundaries, and approvals are provisioned.
You're responsible for carefully reviewing and testing applications you build in the context of your specific use cases and making all appropriate decisions and customizations. This includes implementing your own responsible AI mitigations, such as metaprompts, content filters, or other safety systems, and ensuring your applications meet appropriate quality, reliability, security, and trustworthiness standards. For more information, see the Foundry IQ (Azure AI Search) Transparency Note.
In this article, build an indexing pipeline with the Azure Content Understanding skill to:
- Extract text and images from a document
- Produce semantically coherent chunks that respect paragraph and section boundaries
- Optionally generate AI descriptions of charts, diagrams, and other inline images
- Embed each chunk for vector search and project it into a Foundry IQ index
The Azure Content Understanding skill returns one or more chunks per document. Each chunk contains Markdown-formatted content, location metadata (page numbers and bounding polygons), and optional references to extracted images. When you set chunkingProperties.method to semantic, chunks follow paragraph and heading boundaries instead of fixed-character spans. When you set modelName and modelDeployment, the skill calls an Azure OpenAI chat-completion deployment to generate descriptions of embedded images. The skill then merges those descriptions into the chunk content.
Semantic chunking and image descriptions are generally available in Search REST API 2026-10-01, used throughout this walkthrough. This availability is separate from the Content Understanding API called by the skill.
This article uses sample health plan PDFs in Blob Storage. For SharePoint documents, see Extract and enrich SharePoint documents in Foundry IQ. Don't apply this walkthrough's optional image-storage step to permission-protected content. To learn more, see SharePoint ACL limitations.
Prerequisites
A Foundry IQ service in any supported region. The Foundry IQ service itself isn't region-constrained for this scenario.
A Microsoft Foundry resource attached to the skillset in a supported region.
(Optional) An Azure OpenAI chat-completion deployment in the same Foundry resource, using a model supported by Content Understanding. Semantic chunking and image extraction don't require this deployment.
A deployment of a supported Azure OpenAI embedding model in a Foundry resource. The examples use 1,536 dimensions; select a model that supports this value or change the index and skill dimensions together.
An Azure Blob Storage container with the files you want to index. This article uses a blob data source with the
allowSkillsetToReadFileDataindexer setting (used to pass file content to the Content Understanding skill).Permission to create and run Search objects and query the index. Use Search role-based access and a Search managed identity. Grant that identity the Foundry resource role required for skillset attachment and Cognitive Services OpenAI User on the Foundry resource hosting the embedding deployment.
Content Understanding doesn't support Azure API Management (APIM) endpoints.
For each HTTP request, replace {endpoint} with https://<search-service>.search.windows.net and <access-token> with a token for the Foundry IQ service. Replace the Foundry resource and model-deployment placeholders with your own values. <MODEL_NAME> is the optional description model; <EMBEDDING_MODEL_NAME> is the embedding model, not its deployment name.
Use the same embedding resource endpoint, deployment, and model in the embedding skill and query-time vectorizer. The examples use Foundry resource endpoints (https://<resource>.services.ai.azure.com), not project URLs.
Overview
The article builds a one-to-many indexing pipeline. Each source document produces multiple search documents (one per chunk):
The indexer reads each file from Azure Blob Storage and passes the binary content to the skillset through
/document/file_data.The Azure Content Understanding skill uses semantic chunking to produce
text_sections. When you set bothmodelNameandmodelDeployment, the skill also generates embedded-image descriptions and inlines them into the chunk's Markdown.The Azure OpenAI Embedding skill runs once per chunk and produces a vector for the chunk content.
An index projection writes one search document per chunk into the target index, mapping content, page metadata, image references, and the vector to fields.
(Optional) A knowledge store projects
normalized_imagesto Azure Blob Storage so client apps can retrieve the extracted images by URL.
Prepare data files
The Azure Content Understanding skill processes the binary content of each document, so source files must be in a format that the skill supports. For the current list, see the Content Understanding service limits. Common supported formats include PDF, DOCX, XLSX, PPTX, and many image formats.
Upload your files to the Blob Storage container. You can use the Azure portal, REST APIs, or an Azure SDK to create the data source.
The following minimal request creates the data source used throughout this walkthrough.
POST {endpoint}/datasources?api-version=2026-10-01
Authorization: Bearer <access-token>
Content-Type: application/json
{
"name": "my_blob_datasource",
"type": "azureblob",
"credentials": {
"connectionString": "<your-blob-connection-string>"
},
"container": {
"name": "my-container"
}
}
Create an index for one-to-many indexing
Each search document corresponds to one chunk produced by the Content Understanding skill. The index needs:
- A key field (
chunk_id). - A parent field that identifies which source document the chunk came from (
parent_id). - Fields that store the chunk content, page metadata, and image references.
- A vector field for the chunk embedding.
The following index definition matches the skillset that you create in the next section.
PUT {endpoint}/indexes/my_content_understanding_index?api-version=2026-10-01
Authorization: Bearer <access-token>
Content-Type: application/json
{
"name": "my_content_understanding_index",
"fields": [
{
"name": "chunk_id",
"type": "Edm.String",
"key": true,
"searchable": true,
"filterable": false,
"retrievable": true,
"stored": true,
"sortable": true,
"facetable": false,
"analyzer": "keyword"
},
{
"name": "parent_id",
"type": "Edm.String",
"searchable": false,
"filterable": true,
"retrievable": true,
"stored": true,
"sortable": false,
"facetable": false
},
{
"name": "title",
"type": "Edm.String",
"searchable": true,
"filterable": false,
"retrievable": true,
"stored": true,
"sortable": false,
"facetable": false
},
{
"name": "chunk",
"type": "Edm.String",
"searchable": true,
"filterable": false,
"retrievable": true,
"stored": true,
"sortable": false,
"facetable": false
},
{
"name": "page_number_from",
"type": "Edm.Int32",
"searchable": false,
"filterable": true,
"retrievable": true,
"stored": true,
"sortable": true,
"facetable": false
},
{
"name": "page_number_to",
"type": "Edm.Int32",
"searchable": false,
"filterable": true,
"retrievable": true,
"stored": true,
"sortable": true,
"facetable": false
},
{
"name": "image_path",
"type": "Edm.String",
"searchable": false,
"filterable": false,
"retrievable": true,
"stored": true,
"sortable": false,
"facetable": false
},
{
"name": "text_vector",
"type": "Collection(Edm.Single)",
"searchable": true,
"retrievable": false,
"stored": false,
"dimensions": 1536,
"vectorSearchProfile": "profile"
}
],
"semantic": {
"defaultConfiguration": "semantic-config",
"configurations": [
{
"name": "semantic-config",
"prioritizedFields": {
"titleField": {"fieldName": "title"},
"prioritizedContentFields": [{"fieldName": "chunk"}]
}
}
]
},
"vectorSearch": {
"profiles": [
{
"name": "profile",
"algorithm": "algorithm",
"vectorizer": "query-vectorizer"
}
],
"algorithms": [
{
"name": "algorithm",
"kind": "hnsw"
}
],
"vectorizers": [
{
"name": "query-vectorizer",
"kind": "azureOpenAI",
"azureOpenAIParameters": {
"resourceUri": "https://<embedding-resource>.services.ai.azure.com",
"deploymentId": "<embedding-deployment>",
"modelName": "<EMBEDDING_MODEL_NAME>"
}
}
]
}
}
Define a skillset for semantic chunking and vectorization
With the target index in place, define the skillset that produces the chunks, vectors, and projection mappings that feed it.
The skillset has two skills:
The Azure Content Understanding skill chunks each document. Setting
chunkingProperties.methodtosemanticrespects paragraph and heading boundaries. Setting both model properties independently enables image descriptions before vectorization. For supported values, see Skill parameters.The Azure OpenAI Embedding skill generates a vector for each chunk's content.
The skillset uses indexProjections to map each chunk to a separate search document. For more information, see Define an index projection.
The request uses the Foundry IQ service's system-assigned managed identity for Foundry and embedding access. The Blob connection-string example is independent; for a keyless source connection, use managed identity for a data source.
The following example includes image descriptions. If you skip the optional description deployment, use the billing and image description controls to remove its configuration before submitting the skillset. Review the applicable charges there before running the pipeline.
POST {endpoint}/skillsets?api-version=2026-10-01
Authorization: Bearer <access-token>
Content-Type: application/json
{
"name": "my_content_understanding_skillset",
"description": "Semantic chunking, image descriptions, and vectorization with the Azure Content Understanding skill",
"skills": [
{
"@odata.type": "#Microsoft.Skills.Util.ContentUnderstandingSkill",
"name": "my_content_understanding_skill",
"context": "/document",
"modelName": "<MODEL_NAME>",
"modelDeployment": "<chat-deployment>",
"chunkingProperties": {
"method": "semantic",
"unit": "tokens",
"maximumLength": 500
},
"extractionOptions": ["images", "locationMetadata"],
"inputs": [
{
"name": "file_data",
"source": "/document/file_data"
}
],
"outputs": [
{
"name": "text_sections",
"targetName": "text_sections"
},
{
"name": "normalized_images",
"targetName": "normalized_images"
}
]
},
{
"@odata.type": "#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill",
"name": "my_azure_openai_embedding_skill",
"context": "/document/text_sections/*",
"inputs": [
{
"name": "text",
"source": "/document/text_sections/*/content"
}
],
"outputs": [
{
"name": "embedding",
"targetName": "text_vector"
}
],
"resourceUri": "https://<embedding-resource>.services.ai.azure.com",
"deploymentId": "<embedding-deployment>",
"modelName": "<EMBEDDING_MODEL_NAME>",
"dimensions": 1536
}
],
"cognitiveServices": {
"@odata.type": "#Microsoft.Azure.Search.AIServicesByIdentity",
"subdomainUrl": "https://<foundry-resource>.services.ai.azure.com",
"identity": null
},
"indexProjections": {
"selectors": [
{
"targetIndexName": "my_content_understanding_index",
"parentKeyFieldName": "parent_id",
"sourceContext": "/document/text_sections/*",
"mappings": [
{
"name": "chunk",
"source": "/document/text_sections/*/content"
},
{
"name": "text_vector",
"source": "/document/text_sections/*/text_vector"
},
{
"name": "page_number_from",
"source": "/document/text_sections/*/locationMetadata/pageNumberFrom"
},
{
"name": "page_number_to",
"source": "/document/text_sections/*/locationMetadata/pageNumberTo"
},
{
"name": "image_path",
"source": "/document/text_sections/*/imagePath"
},
{
"name": "title",
"source": "/document/metadata_storage_name"
}
]
}
],
"parameters": {
"projectionMode": "skipIndexingParentDocuments"
}
}
}
For the full parameter reference, supported values, and validation rules for the Content Understanding skill, see Azure Content Understanding skill.
Choose chunking and description options
Chunking, image extraction, and image descriptions are independent choices. For description configuration, use the canonical description controls.
For fixed-size chunks, replace the Content Understanding skill's chunkingProperties with {"method": "fixedSize", "unit": "characters", "maximumLength": 1325, "overlapLength": 0}. For allowed ranges and overlap rules, see chunkingProperties.
Configure and run the indexer
Create and run an indexer that reads from your data source, calls the skillset, and projects chunks into the index. Set allowSkillsetToReadFileData to true so the Content Understanding skill receives the file content, and set parsingMode to default.
You don't need outputFieldMappings in this scenario. The indexProjections block in the skillset already maps each chunk to the target index fields.
POST {endpoint}/indexers?api-version=2026-10-01
Authorization: Bearer <access-token>
Content-Type: application/json
{
"name": "my_content_understanding_indexer",
"dataSourceName": "my_blob_datasource",
"targetIndexName": "my_content_understanding_index",
"skillsetName": "my_content_understanding_skillset",
"parameters": {
"batchSize": 1,
"configuration": {
"dataToExtract": "contentAndMetadata",
"parsingMode": "default",
"allowSkillsetToReadFileData": true
}
},
"fieldMappings": [],
"outputFieldMappings": []
}
When the indexer runs, the Content Understanding skill chunks the file and optionally generates descriptions. Index projections write one search document per chunk. If you update an existing indexer and need to apply this pipeline to previously indexed files, reset and run it. Running without a reset processes only new or changed files.
Check indexer status
Before you query, confirm the indexer run finished:
GET {endpoint}/indexers/my_content_understanding_indexer/status?api-version=2026-10-01
Authorization: Bearer <access-token>
Inspect lastResult.status, itemsProcessed, itemsFailed, errors, and warnings. Check representative chunks and investigate missing documents even when the processed count is nonzero. For more information, see Monitor indexer status.
Verify results
Query the index to verify that the chunks contain the expected content and that vector search works as expected. Use Search Explorer or any tool that sends HTTP requests.
The following request runs a hybrid query: keyword search on chunk and a vector query against text_vector. The query-time vectorizer embeds the query text using the configured embedding deployment.
POST {endpoint}/indexes/my_content_understanding_index/docs/search?api-version=2026-10-01
Authorization: Bearer <access-token>
Content-Type: application/json
{
"search": "copay for in-network providers",
"searchFields": "chunk",
"count": true,
"searchMode": "all",
"vectorQueries": [
{
"kind": "text",
"text": "copay for in-network providers",
"fields": "text_vector"
}
],
"select": "chunk, title, page_number_from, page_number_to, image_path"
}
A response contains value entries with the selected fields. Inspect the chunk content and page associations. To check vector retrieval independently, repeat the request without search, searchFields, and searchMode, retaining vectorQueries. Hybrid results alone don't establish that vector retrieval succeeded.
The following response structure is an example and not captured output from a live run; chunk boundaries, text, counts, and scores vary:
{
"@odata.count": 2,
"value": [
{
"@search.score": 0.0317,
"chunk": "## Cost sharing\n\nFor in-network providers, the copay is $20 per visit...\n\n",
"title": "Northwind_Standard_Benefits_Details.pdf",
"page_number_from": 4,
"page_number_to": 4,
"image_path": "figures/3"
},
{
"@search.score": 0.0289,
"chunk": "### Out-of-network providers\n\nWhen you visit a provider that isn't in the Northwind network, the copay is $40 per visit...",
"title": "Northwind_Standard_Benefits_Details.pdf",
"page_number_from": 5,
"page_number_to": 6,
"image_path": null
}
]
}
The response includes:
chunk: The Markdown content of each chunk. When you configure both model properties on the Content Understanding skill, generated image descriptions appear inline for applicable figures.page_number_fromandpage_number_to: The page range that produced the chunk.image_path: The path to the image extracted with the chunk or, when a chunk spans multiple images, a semicolon-separated list of paths. The exact shape depends on whether a knowledge store file projection is configured. Without a file projection, the path is the short form shown in the example (figures/3). With a file projection, the path is the relative path of the image in the knowledge store. To make these images available to client apps, see (Optional) Project images for retrieval.
(Optional) Project images for retrieval
The image_path values stored in the index aren't directly retrievable URLs. To retrieve images, project normalized_images to Azure Blob Storage by using a knowledge store. Your client app can then construct blob URLs from the stored image paths.
This step is optional. Add it only if your client app needs to display or download the extracted images.
Add the knowledgeStore property from the following configuration fragment to the skillset payload. Update the existing skillset with PUT {endpoint}/skillsets/my_content_understanding_skillset?api-version=2026-10-01. This optional Blob scenario isn't supported for permission-protected SharePoint content.
{
"knowledgeStore": {
"storageConnectionString": "<your-azure-storage-connection-string>",
"projections": [
{
"files": [
{
"storageContainer": "extracted-images",
"source": "/document/normalized_images/*"
}
],
"tables": [],
"objects": []
}
]
}
}
To populate the new file projection for documents you already indexed, reset and run the indexer. This reprocesses the source files with the updated skillset.
After the indexer runs, each blob in the extracted-images container corresponds to one normalized_images element. The blob URL has the form https://<storage-account>.blob.core.windows.net/<container>/<imagePath>. Use each individual stored image path when a chunk's image_path contains multiple semicolon-separated paths. Your app also needs authorized access to Blob Storage; a file projection doesn't make images public or enable knowledge-base image serving.
For the full schema, including additional projection types (tables and objects) and authentication options, see Knowledge store "projections" in Foundry IQ.
Control generated image verbalization
For direct and generated pipeline settings, including opt-out validation and asset-store constraints, see Billing and image description controls.
Clean up resources
Stop or delete the indexer and its schedule when ingestion is no longer needed. Delete the data source, skillset, and index when you no longer need them. Search capacity, Blob files and extracted images, Foundry resources, and model deployments have separate lifecycles; deleting Search objects doesn't delete those external resources or reverse charges already incurred.
For a generated knowledge source, use its documented deletion procedure and review its generated objects. Don't delete shared resources used by other pipelines.
Troubleshooting
If the indexer fails or returns unexpected results, check the following common causes.
Skillset validation fails with 400
The skill returns a 400 Skill validation failed error when parameter combinations conflict. Common causes:
modelNameis set withoutmodelDeployment, or vice versa. Both must be set together.- You set
methodtosemanticandoverlapLengthto a value greater than0. SetoverlapLengthto0or omit it. methodandunitaren't a supported pair. UsefixedSizewithcharactersorsemanticwithtokens.
Authorization fails against the Foundry resource
If the skill returns 401 or 403 when calling the Foundry resource, verify that:
- The
cognitiveServicesblock in the skillset points to the correct Foundry resource. - The identity used by the Foundry IQ service has the required role on the Foundry resource. For managed-identity setups, see Attach a billable resource to a skillset in Foundry IQ.
text_sections is empty
If indexed documents have no chunks, verify that:
- The file format is supported. For the list, see Supported file formats.
- The Foundry resource is in a supported region.
- Password-protected PDFs are unlocked before indexing.
Image descriptions are missing
If chunks don't include inline image descriptions, check the description configuration, the deployment in the attached Foundry resource, and its available TPM or RPM quota.
Troubleshoot Content Understanding analysis
The default document-analysis polling window is eight minutes. When this window expires, the process returns a skill-timeout error and produces no Content Understanding output for that document. This expiration doesn't necessarily fail the entire indexer run.
Use the execution details to distinguish the cause:
| Symptom or evidence | Check |
|---|---|
| Skill timeout after analysis polling | Representative document complexity, optional work, resource location, and the canonical large-document guidance. Batch size doesn't change this window. |
| Analyzer creation doesn't become ready | A separate operation with a five-minute readiness-poll timeout, not the eight-minute document-analysis window. |
| Terminal Content Understanding failure or malformed output | The reported service error and supported file/input format. Don't diagnose every missing chunk as poll expiration. |
| HTTP timeout, 429, or service unavailable | Request and network failures, throttling, and configured model and service capacity. Retry delays can consume polling time. |
| 401 or 403 | Identity, role assignments, resource endpoint, and network access. |
| File and page quota or indexer runtime exhaustion | Content Understanding service limits and Search indexer limits, separately. |
Record the indexer name, execution time, affected source identifier, skill name, error details, and available request and correlation IDs for Support. Don't include access tokens, keys, or protected document content. See Indexer troubleshooting and Common errors and warnings.
Before rerunning or resetting, consider the cost of repeating extraction, descriptions, and embeddings. Don't assume cached analysis, resumed polling, cancellation of the earlier Content Understanding operation, or freedom from duplicate processing charges.