Skip to content

Commit 533a4fe

Browse files
Merge pull request #2939 from laujan/patch-2
Update query-fields.md
2 parents 87bef5e + db6957b commit 533a4fe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/ai-services/document-intelligence/concept/query-fields.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: laujan
66
manager: nitinme
77
ms.service: azure-ai-document-intelligence
88
ms.topic: conceptual
9-
ms.date: 11/19/2024
9+
ms.date: 02/12/2025
1010
ms.author: nitinme
1111
monikerRange: 'doc-intel-4.0.0'
1212
---
@@ -15,7 +15,7 @@ monikerRange: 'doc-intel-4.0.0'
1515

1616
# Document Intelligence query field extraction
1717

18-
**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.
18+
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.
1919
> [!NOTE]
2020
>
2121
> Document Intelligence Studio query field extraction is currently available with layout and prebuilt models, excluding the UX.Tax prebuilt models.
@@ -45,18 +45,18 @@ For query field extraction, specify the fields you want to extract and Document
4545
* 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](../model-overview.md#model-analysis-features).
4646

4747

48-
## Query fields REST API request**
48+
## Query fields REST API request
4949

50-
Use the query fields feature with the [general document model](../prebuilt/general-document.md), and add fields to the extraction process without having to train a custom model:
50+
Use the query fields feature with the [prebuilt layout](../prebuilt/layout.md) model, and add fields to the extraction process without having to train a custom model:
5151

5252
```http
53-
POST https://{endpoint}/documentintelligence/documentModels/prebuilt-layout:analyze?api-version=2024-02-29-preview&features=queryFields&queryFields=Terms,PaymentDate HTTP/1.1
53+
POST https://{endpoint}/documentintelligence/documentModels/prebuilt-layout:analyze?api-version=2024-11-30&features=queryFields&queryFields=OurReference,BookingDate HTTP/1.1
5454
Host: *.cognitiveservices.azure.com
5555
Content-Type: application/json
5656
Ocp-Apim-Subscription-Key:
5757
5858
{
59-
"urlSource": "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-layout.pdf"
59+
"urlSource": "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/layout.png"
6060
}
6161
``````
6262

0 commit comments

Comments
 (0)