Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
Confidence scores and citations (grounding) for generate fields:
- Confidence scores are available for all field extraction methods for documents, including generate. This is explicitly called out as a recent enhancement: “Confidence scores are now consistently available across all extraction methods for documents—whether you use extract, generative, or classify.”
- Grounding (citations to source regions) is supported for extract and generate methods when enabled. Grounding is defined as the “specific regions in content where a value was extracted or generated,” and is available when confidence/grounding is opted in.
- To enable confidence and grounding for field extraction in a document analyzer, set:
-
estimateFieldSourceAndConfidence = truein the analyzer config (for all fields), or -
estimateSourceAndConfidence = trueon a specific field.
-
This applies equally to generate fields in document analyzers, so generate fields can return both confidence scores and grounded source regions.
C# SDK sample for confidence and citations on generate fields:
The context describes the API behavior and configuration flags but does not include a C# SDK code sample. The key configuration needed in any client (including C#) is:
- In the analyzer schema/configuration for documents:
- Set
estimateFieldSourceAndConfidence = trueto opt in to confidence and grounding for all fields, or - On individual fields, set
estimateSourceAndConfidence = true.
- Set
Once enabled, the JSON response for analyzed documents will include, for each field (including generate fields):
- The field value
- Confidence score (0–1)
- Grounding/source spans (page numbers, bounding boxes, etc.)
The C# SDK would need to deserialize these properties from the service’s JSON response according to the SDK’s model types, but the exact C# types and usage are not provided in the context.
Opening a PDF and showing bounding boxes / highlights:
- Content Understanding provides grounding source information for document fields, including page numbers and bounding boxes for extracted values. This is intended to “aid the user experience by highlighting locations for human review and correction.”
- The service itself does not perform PDF rendering or visual highlighting. It only returns metadata (page numbers, bounding boxes, spans) that can be used by a client application.
- The context does not specify any particular .NET or NuGet package for opening PDFs and drawing bounding boxes/highlights. Any PDF rendering library that allows drawing rectangles at given coordinates could be used, but no specific package recommendation is provided in the available documentation.
References:
- Transparency note: Azure Content Understanding in Foundry Tools
- What is Azure Content Understanding in Foundry Tools?
- Tutorial: Build a retrieval-augmented generation solution
- Azure Content Understanding in Foundry Tools document solutions
- What's new in Azure Content Understanding in Foundry Tools?
- Azure Content Understanding in Foundry Tools terminology