Lesson 1 of 5 Information Extraction with Content Understanding

Defining Content Understanding Analyzers and Field Schemas

This lesson explains how Azure Content Understanding in Foundry Tools turns unstructured content into structured data with analyzers, what an analyzer contains and how results are structured.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the three stages of Content Understanding.
  • Describe what an analyzer specifies.
  • Choose the extract, classify or generate method for a field.
  • Identify where analyzers are designed and tested.

How Content Understanding works

Content Understanding follows three stages. Content is ingested, as a URL or uploaded file. It is analyzed with a combination of OCR, layout analysis, speech recognition and generative models. And it is returned as structured output in JSON: the content as Markdown plus the fields that the analyzer defines, each with a confidence score and its source location. The service uses chat completion and embedding model deployments in the Foundry resource, which are registered once as the resource's default deployments, and it applies the deployments' guardrails.

The following diagram shows the three stages of Content Understanding.

How Content Understanding works. Content is ingested as a URL or uploaded file: a document, image, audio or video. An analyzer analyzes it with a combination of OCR, layout analysis, speech recognition and generative models, using the chat and embedding deployments registered as the resource's defaults and their guardrails. The result is structured JSON: the content as Markdown plus the fields the analyzer defines, each with a confidence score and its source location.
One analyzer turns any supported content into structured fields.
Put in order

Three stages of analysis

Exam skills 2.4.1

Put the stages of a Content Understanding analysis in order.

Log in to try this activity Interactive activities are free with an account.

Analyzers

An analyzer is a reusable configuration that applies the same extraction logic to every input. It specifies the content type it is based on (document, image, audio or video), processing options, the models it uses and a field schema. Prebuilt analyzers cover common scenarios, and custom analyzers extend a base analyzer with your own schema. The following table lists prebuilt analyzers that appear in Microsoft's learning material.

Prebuilt analyzerPurpose
prebuilt-invoiceInvoice fields such as vendor, dates, totals and line items
prebuilt-documentSearchDocument Markdown, figures and a summary for search and RAG
prebuilt-imageSearchImage descriptions for search
prebuilt-audioSearchTranscript and summary of recordings for search
prebuilt-videoSearchVideo segments, transcript and descriptions for search
Match the pairs

Prebuilt analyzers

Exam skills 2.4.1 · 2.4.2 · 2.4.3

Match each prebuilt analyzer with what it returns.

Log in to try this activity Interactive activities are free with an account.

Field schemas

A field schema lists the fields to return. Each field has a name, a type (string, number, integer, date, time, boolean, array or object, so that nested structures such as invoice line items are possible), a description that tells the model what the field means, and a method.

  • extract: return a value that appears in the content, such as an invoice number.
  • classify: choose one of a list of values (an enum), such as the document type.
  • generate: produce a value from the content, such as a summary or a yes/no judgment.

Because extraction is semantic, a field described as the invoice number is found whether the document labels it Invoice No., Invoice # or not at all.

True or false

Inside a field schema

Exam skills 2.4.1

Check five statements about analyzers and field schemas.

Log in to try this activity Interactive activities are free with an account.

Where to design analyzers

In the Foundry portal and in Content Understanding Studio, you can run prebuilt analyzers on sample or uploaded files, view the extracted fields over the source, inspect the JSON, and build custom analyzers by defining fields and testing them. Analyzers can also be created with the REST API or the Python SDK, which suits automation.

Worked example

Choosing field methods

A custom analyzer for supplier letters must return (1) the supplier's reference number printed in the letter, (2) whether the letter is a quote, an order confirmation or a complaint and (3) a one-sentence summary. Which method should each field use?

(1) uses extract, because the value appears in the letter. (2) uses classify with an enum of the three types. (3) uses generate, because the summary is written by the model rather than copied from the letter.

Check yourself

What does an analyzer return for each input?

Show answer

Markdown of the content plus the schema's fields, each with a confidence score.

Exam Tips

Remember for the exam

  • Analyzers apply the same schema to every input and return Markdown plus fields with confidence.
  • Prebuilt analyzers cover invoices and search scenarios; custom analyzers add your own schema.
  • Field methods: extract, classify (enum) and generate.
  • Content Understanding uses default model deployments in the Foundry resource.