How to use 'query field' in Azure document intelligence for fields comprising more than one word

Logeshwaran S 0 Reputation points
2024-09-29T05:34:54.6666667+00:00

Hi, I recently using Azure Document Intelligence to extract details from documents. There's a feature called 'query fields', which I can use to get details about any particular field in the document. Unfortunately seems I couldn't pass on any field which is not a single word into it to get the corresponding details. For example, I'm able to use 'owner' as query field but not 'due date', Is there a way to overcome this issue ?

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,663 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 10,416 Reputation points
    2024-09-29T19:43:10.34+00:00

    Hello Logeshwaran S,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    Regarding your question:

    How to use 'query field' in Azure document intelligence for fields comprising more than one word.

    Whenever you would like to specify multi-word fields in Azure Document Intelligence, use camelCase or PascalCase, instead of 'due date', use 'dueDate' or 'DueDate' read more here: https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/concept-add-on-capabilities?view=doc-intel-4.0.0

    Also, regarding your explanations and the question:

    Is there a way to overcome this issue?

    The best way as a practice to overcome the issue is to:

    Make sure the field names are consistent with the document's structure and format and the fields are correctly defined in the model you are using. But should there be any issues you can consider using custom extraction models to better handle specific document layouts and field names, check this out here: https://techcommunity.microsoft.com/t5/ai-azure-ai-services-blog/document-intelligence-preview-adds-query-fields-new-prebuilt/ba-p/3984295

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.


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.