Azure Document Intelligence : custom classification model training issue

Namohar Munichandrappa 0 Reputation points
2025-01-24T00:13:41.4433333+00:00

Hi Team, @

Subject: Issue Training Azure Custom Classification Model via code

We are facing an issue while training a custom classification model programmatically. Below is the detailed context of the setup and the issue we are encountering:

  1. Setup Details:
    • We have created a Blob Storage-enabled network configured as public with SAS URL access.
    • The labeled data has been stored in the Blob Storage for training purposes.
    • A service has been implemented to trigger the training process by accessing the data in the Blob Storage.
  2. Issue Description: When we hit the Blob Storage endpoint to initiate the training for the custom classification model, we encounter the following error: error : "Service request succeeded. Response content and headers are not included to avoid logging sensitive data."

code :

           var adminClient = new DocumentIntelligenceAdministrationClient(new Uri(Endpoint), credential);

            string classifierId = "test_classifier_113-"+ Guid.NewGuid();
            Uri blobContainerUri = new Uri("");
            
            var sourceA = new BlobContentSource(blobContainerUri) { Prefix = "invoice" };
             var sourceB = new BlobContentSource(blobContainerUri) { Prefix = "receipt" };
            var docTypeA = new ClassifierDocumentTypeDetails(sourceA);
            var docTypeB = new ClassifierDocumentTypeDetails(sourceB);
            {
                { "invoice", docTypeA },
                { "receipt", docTypeB }
            };

            var options = new BuildClassifierOptions(classifierId, docTypes);
                // Building the classifier
                Operation<DocumentClassifierDetails> operation = await adminClient.BuildClassifierAsync(WaitUntil.Completed, options);

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

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.