An AI tool in Foundry for analyzing documents and media to classify content, extract entities, and generate structured understanding
Fields inside a list of objects are supported, but after correcting labels you must rebuild the analyzer and run the document against that newly built analyzer rather than the project’s earlier analyzer version.
Rebuild and retest the analyzer
- In Content Understanding Studio, open the project and its Knowledge tab.
- Confirm each edited value shows the corrected tag.
- Select Build analyzer at the top of the page.
- Give the build a new analyzer name so it cannot be confused with the previous build.
- After the build succeeds, select Jump to analyzer list and open the new analyzer.
- Use the endpoint/code sample from that analyzer to analyze the labeled document.
Saving labels alone does not update an existing built analyzer. Microsoft’s documented workflow explicitly requires rebuilding after adding or correcting labeled samples.^1^ ^2^
Verify the built analyzer configuration
If the newly built analyzer still ignores the corrected line fields, retrieve its definition and check these points:
- The labeled dataset is attached to the built analyzer.
In2025-11-01, labeled data must appear underknowledgeSourceswithkind: "labeledData".^3^ -
Linesis an array whose items are objects.
An array of objects is the documented representation for a variable-row table, so this structure is supported rather than excluded from Knowledge.^4^ - Each literal line field uses
extract.
For an explicitly configuredextractfield, setestimateSourceAndConfidence: true. This provides grounding and confidence needed to verify which source text was selected.^5^
A representative schema is:
"Lines": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ProductCode": {
"type": "string",
"method": "extract",
"estimateSourceAndConfidence": true
},
"Description": {
"type": "string",
"method": "extract",
"estimateSourceAndConfidence": true
},
"Quantity": {
"type": "number",
"method": "extract",
"estimateSourceAndConfidence": true
}
}
}
}
Microsoft specifically recommends arrays of objects for repeated line items rather than asking a string field to return JSON.^6^
Also compare the analyzer ID used by the application with the ID returned by the new build. A successful Studio test does not update an application that continues calling an older analyzer ID.
Distinguish labeling from OCR or row-grouping problems
Inspect each incorrect field’s returned source location and the underlying OCR/layout text:
- If the source text itself is wrong—for example,
Owas recognized as0—labeled samples cannot correct that text-recognition error.^1^ - If the text is correct but the field points to the wrong row, improve each nested field description with the column heading, aliases, expected format, and row relationship. Field names and descriptions materially guide document extraction.^6^
- If rows depend on implicit grouping—such as a group identifier embedded in a description or carried across page breaks—labels may improve field detection without teaching that grouping rule. In that case, extract the values and source coordinates separately and associate them in post-processing.^7^
For GA 2025-11-01, the built analyzer retains and uses the labeled data at analysis time. Therefore, its storage access must remain valid; this differs from the newer preview workflow that distills the samples during the build.^8^
If a newly named analyzer has the correct knowledgeSources, correct nested schema, accessible labeled data, accurate OCR, and still reproduces the failure on the labeled document, there is no documented GA limitation excluding nested extract fields. Open an Azure support case with the analyzer definition, analyzer ID, region, build time, analysis request ID, and a redacted sample showing the expected and actual nested-field output.
References
- Document analysis with confidence, grounding, and labeled samples - Foundry Tools | Microsoft Learn
- Create and improve your custom analyzer in Content Understanding Studio
- Content Analyzers - Create Or Replace - REST API (Azure Azure AI Services) | Microsoft Learn
- Azure Content Understanding in Foundry Tools service quotas and limits
- Azure Content Understanding in Foundry Tools - What is an analyzer? Configuration and reference - Foundry Tools | Microsoft Learn
- Best practices for Azure Content Understanding in Foundry Tools
- Content Understanding: issues recognizing grouped line items in invoices - Microsoft Q&A
- Data, privacy, and security for Content Understanding