Set a default model for custom composed model like prebuilt

Eliza Jeyakumar 0 Reputation points
2023-10-12T22:44:14.7666667+00:00

Is it possible to set a default model for a custom composed model, similar to the prebuilt-idDocument model? If you pass in a document that doesn't fall under one of the supported classifications (passport, drivers license, etc.) it will set the docType as prebuilt-idDocument. I want to do something similar for a custom composed model.

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

1 answer

Sort by: Most helpful
  1. romungi-MSFT 45,961 Reputation points Microsoft Employee
    2023-10-13T11:02:21.95+00:00

    @Eliza Jeyakumar For a custom composed model which uses a set of extraction models under a single composed model, we cannot set a default model or model id under the composed model. It can only identify the best model under the composed model id and identifies it in the response under docType property.

    However, you can use classification model to identify the type of document in input and then call its corresponding extraction model to extract content from the document. For example, the classification model identifies a document of a particular type, say type3. You can now use this information to call the trained custom extraction model of type3 to extract the content of the document.

    To summarize, With the introduction of custom classification models, you can choose to use a composed model or classification model as an explicit step before analysis.

    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.

    0 comments No comments

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.