Skip to content

Commit d656ebd

Browse files
committed
add joe content
1 parent 9642d38 commit d656ebd

File tree

3 files changed

+88
-84
lines changed

3 files changed

+88
-84
lines changed

articles/ai-services/content-understanding/best-practices.md

Lines changed: 0 additions & 84 deletions
This file was deleted.
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
title: Best practices for using Content Understanding
3+
titleSuffix: Azure AI services
4+
description: Learn how to best use Azure AI Content Understanding for document, image, video, and audio file content and field extractions.
5+
author: laujan
6+
ms.author: jfilcik
7+
manager: nitinme
8+
ms.service: azure-ai-content-understanding
9+
ms.topic: overview
10+
ms.date: 02/24/2025
11+
---
12+
13+
# Best Practices for Content Understanding
14+
15+
Azure AI Content Understanding in an innovative Generative AI service designed to facilitate the precise and accurate analysis of extensive data sets. The service proficiently processes various content modalities, including documents, images, videos, and audio, transforming them into a user-specified output format. This document provides guidance and best practices to effectively utilize Content Understanding for your data processing and analysis requirements.
16+
17+
18+
## Use field descriptions to guide output
19+
20+
When defining a schema, it's essential to provide detailed field descriptions. Clear and concise descriptions guide the model to focus on the correct information, improving the accuracy of the output.
21+
22+
###    **Example**
23+
24+
* If you want to extract the date from an invoice, in addition to naming the field `"Date"`, provide a description such as:
25+
> **"The date when the invoice was issued, typically found at the top right corner of the document."**
26+
27+
###    **Example**
28+
29+
* Suppose you want to extract the `"Customer Name"` from an invoice. Your description might read:
30+
> **"The name of the customer or client to whom this invoice is addressed, usually located near the billing address. It should be the name of the business or person, but not the entire mailing address."**
31+
32+
## Correct mistakes by editing field descriptions
33+
34+
If the system's output isn't meeting expectations, the first thing to try is refining and updating the field descriptions. By clarifying the context and being more explicit about what you need, you reduce ambiguity and improve accuracy.
35+
36+
###    **Example**
37+
38+
* If the `"Shipping date"` field generated inconsistent or incorrect extraction, often after a "Dispatch Date" label, update it to something more precise like:
39+
> **"The date when the products were shipped, typically found below the item list. It may also be labeled something similar like Delivery Date or Dispatch Date. Dates should typically have a format like 1/23/2024 or 01-04-2025."**
40+
41+
* This extra context guides the model to the right location in the document.
42+
43+
44+
## Use classification fields for specific outputs
45+
46+
When you need the system to choose from a set of predefined options (for example, document type, product category, or status), use classification fields. When there's ambiguity with the options, provide clear descriptions for each option, enabling the model to categorize the data accurately.
47+
48+
###    **Example**
49+
50+
* If you need to classify documents as either `"Invoice"`, `"Claim"`, or `"Report"`, create a classification field with these words as category names.
51+
52+
###    **Example**
53+
54+
* When processing product images, you might need to assign them to categories like `"AlcoholicDrinks"`, `"SoftDrinks"`, `"Snacks"`, and `"DairyProducts"`. Since some items can appear similar, providing precise definitions for close-call cases can help. For example:
55+
56+
* **`"Alcoholic Drinks"`**: Beverages containing alcohol, such as beer, wine, and spirits. This category excludes soft drinks or other nonalcoholic beverages.
57+
58+
* **`"Soft Drinks"`**: Carbonated nonalcoholic beverages, such as soda and sparkling water. This category doesn't include juices or alcoholic drinks.
59+
60+
* By clearly defining each category, you ensure that the system correctly classifies products while minimizing misclassification.
61+
62+
## Use confidence scores to determine when human review is needed
63+
64+
Confidence scores help you decide when to involve human reviewers. Customers can interpret confidence scores using thresholds to decide which results need more reviews, minimizing the risk of errors.
65+
66+
###    **Example**
67+
68+
* For an invoice review use case, if a key extracted field like `"TotalInvoiceAmount"` has a confidence score under **0.80**, route that document to manual review. This helps ensure that a human verifies critical fields like invoice totals or legal statements when necessary.
69+
70+
* You might set different confidence thresholds based on the type of field. For instance, a lower threshold for a `"Comments"` field that's less critical and a higher one for `"ContractTerminationDate"` to ensure no mistakes.
71+
72+
## Reduce errors by narrowing language selection for audio and video
73+
74+
When you're working with audio and video content, selecting a narrow set of languages for transcription can potentially reduce errors. The more languages you include, the more the system has to guess which language is being spoken, which cam increase misrecognition.
75+
76+
###    **Example**
77+
78+
* If you're certain that the content only contains English and Spanish, configuring your transcription to these two languages only can improve quality. But if the content accidentally includes other languages, such configuration can actually degrade overall quality.
79+
80+
81+
## Transcript, document text, and speaker data don't require fields
82+
83+
By default, Content Extraction information such as speech transcripts, document text extracted by `OCR`, and video key frames can be accessed directly from the analyzer output for immediate review or custom processing. There's no need to define a field in the schema for these items. Fields can be used when more processing is needed, for example, summarizing transcripts, identifying entities, or extracting specific items from `OCR`. Each field can instruct the system to extract or generate the content you need.
84+
85+

articles/ai-services/content-understanding/toc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ items:
5656
- name: Azure AI Foundry analyzer templates
5757
displayName: analyzer, templates, document, text, images, video, audio, multimodal, visual, structured, content, field, extraction
5858
href: concepts/analyzer-templates.md
59+
- name: Azure AI Content Understanding best Practices
60+
displayName: best practices, analyzers, optimization, fields
61+
href: concepts/best-practices.md
5962
- name: Responsible AI
6063
items:
6164
- name: Transparency note

0 commit comments

Comments
 (0)