Skill 2.4.4

Build a lightweight application with information extraction capabilities by using Content Understanding

Key Concepts

The Python client library is azure-ai-contentunderstanding. A ContentUnderstandingClient is created with the Foundry resource endpoint (https://<resource>.services.ai.azure.com/) and a credential, preferably DefaultAzureCredential. begin_analyze() takes an analyzer ID and inputs (such as a URL) and returns a poller, because analysis is asynchronous; poller.result() waits for completion. With the REST API, the analyze request returns an Operation-Location URL that the application polls until the status is Succeeded.

Each item in the result's contents list has markdown and fields; each field has a type-specific value (such as valueString or valueNumber) and a confidence score. Content Understanding uses chat completion and embedding model deployments in the same Foundry resource, so a one-time setup registers default deployments for the resource. A production application stores high-confidence values automatically and routes low-confidence values to a person for review.