Events
17 Mar, 9 pm - 21 Mar, 10 am
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Document Intelligence now supports query field to extend the schema of any prebuilt model to extract the specific fields you need. Query fields can also be added to layout to extract fields in addition to structure from forms or documents.
Note
Document Intelligence Studio query field extraction is currently available with layout and prebuilt models, excluding the UX.Tax prebuilt models.
Query fields and key value pairs perform similar functions, there are a few distinctions to be aware of when deciding which feature to choose.
Key value pairs are only available with layout and invoice models. If you're looking to extend the schema for a prebuilt model, use query fields.
You don't know the specific fields to be extracted, or the number of fields is large (greater than 20), key value pairs might be a better solution.
Key-value pairs extract the keys and values as they exist in the form or document, you need to plan for any key variations. For example, keys First Name
or Given Name
. With query fields, you define the key and the model only extracts the corresponding value.
Use query fields when the value you require can't be described as a key value pair in the document. For example, the agreement date of a contract.
For query field extraction, specify the fields you want to extract and Document Intelligence analyzes the document accordingly. Here's an example:
If you're processing a contract in the Document Intelligence Studio, use the 2024-11-30 (GA), API version:
You can pass a list of field labels like Party1
, Party2
, TermsOfUse
, PaymentTerms
, PaymentDate
, and TermEndDate
" as part of the AnalyzeDocument
request.
In addition to the query fields, the response includes the model output. For a list of features or schema extracted by each model, see model analysis features.
Use the query fields feature with the prebuilt layout model, and add fields to the extraction process without having to train a custom model:
POST https://{endpoint}/documentintelligence/documentModels/prebuilt-layout:analyze?api-version=2024-11-30&features=queryFields&queryFields=OurReference,BookingDate HTTP/1.1
Host: *.cognitiveservices.azure.com
Content-Type: application/json
Ocp-Apim-Subscription-Key:
{
"urlSource": "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/layout.png"
}
Events
17 Mar, 9 pm - 21 Mar, 10 am
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Module
Extract data from forms with Azure Document intelligence - Training
Azure Document intelligence extracts data at scale to enable the submission of documents in real time, at scale, with accuracy. This module gives users the tools to use the Azure Document intelligence vision API.
Certification
Microsoft Certified: Azure Cosmos DB Developer Specialty - Certifications
Write efficient queries, create indexing policies, manage, and provision resources in the SQL API and SDK with Microsoft Azure Cosmos DB.
Documentation
Add-on capabilities - Document Intelligence - Azure AI services
How to increase service limit capacity with add-on capabilities.
Quickstart: Document Intelligence client libraries - Azure AI services
Use a Document Intelligence SDK or the REST API to create a forms processing app that extracts key data and structure elements from your documents.
Document layout analysis - Document Intelligence - Azure AI services
Extract text, tables, selections, titles, section headings, page headers, page footers, and more with layout analysis model from Document Intelligence.