Share via

How can I use query feature with specific key and Country in Prebuilt model

Alan Kuo 20 Reputation points
2024-12-19T02:06:48.79+00:00

Hi, I am seeking for how to prompt query wording for reduce the false-postive while extracting the key and country by query feature. currently is using per-built invoice model

while I try to query is there PortOfLoading are China, it keep gain the false-postive seems like it only consider the PortOfLoading, not justify is value are China

here is my the example:
User's image
User's image

Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform


1 answer

Sort by: Most helpful
  1. Rohit Mungi 49,131 Reputation points Microsoft Employee Moderator
    2024-12-19T08:28:25.3433333+00:00

    @Alan Kuo Query fields is to fetch only certain fields of a document that are of interest. For example, There are many supported fields in pre built invoice model. See the link below:

    https://github.com/Azure-Samples/document-intelligence-code-samples/blob/main/schema/2024-11-30-ga/invoice.md

    A user might only require few fields from a document, so this query fields feature will give only the one required in the output response. It will not distinguish if the value is of certain text. So, if you want only text related to certain text, you will have to use the output response and perform a client side check of text. Does that help?

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    Was this answer helpful?

    0 comments No comments

Your answer

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