AnalyzeDocument - Query fields on Items

Marco 5 Reputation points
2024-02-20T08:10:59.9566667+00:00

Hello, I'm using 'AnalyzeDocument' operation of DocumentAI, using the 'prebuilt-invoice' model.
Can I use "Query fields" for invoice lines (items)? (https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/concept-query-fields?view=doc-intel-4.0.0)

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
2,111 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. Pete 20 Reputation points
    2024-08-22T12:35:13.65+00:00

    I am not having success with this answer. We want to capture the item revision letter (REV) for each invoice line. When I add Rev as a Query value it only returns the first one. The term REV is provided on every line. It would be nice if I could specify Item.Rev or Rev[] to infer that it's in the item array.

    2 people found this answer helpful.

  2. Azar 29,520 Reputation points MVP Volunteer Moderator
    2024-02-20T10:43:49.7466667+00:00

    Hi there Marco

    Thats a great question and thanks for using QandA platform

    Yes, you can use the "Query fields" feature for invoice lines (items) when using the 'prebuilt-invoice' model with the 'AnalyzeDocument' operation of Azure AI Document Intelligence.

    This allows you to extract specific fields or information from your documents with ease. By defining queries tailored to the invoice items, you can retrieve relevant data such as item names, quantities, prices, and more. it can also enhances the accuracy and efficiency of extracting structured information from your invoices, streamlining your document processing workflows.

    If this helps kindly accept the answer thanks much.


  3. VasaviLankipalle-MSFT 18,676 Reputation points Moderator
    2024-02-20T15:58:15.3966667+00:00

    Hello @Marco , Thanks for using Microsoft Q&A Platform.

    Document Intelligence Studio query field extraction is currently available with layout and prebuilt models, excluding the UX.Tax prebuilt models.

    Yes, you can use Query fields feature with pre-built Invoice model. This Query Fields feature is currently available with layout and all prebuilt models, excluding the UX.Tax prebuilt models.!

    User's image

    I hope this helps.

    Regards,

    Vasavi

    -Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.