azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

Document Intelligence analysis is taking forever

Open galvangoh opened this issue 2 years ago • 7 comments

  • Package Name: azure-ai-documentintelligence==1.0.0b2
  • Operating System: Windows
  • Python Version: 3.10.9

Describe the bug Running the following code which uses a custom classifier and it takes forever to complete. Same goes for the studio.

To Reproduce Steps to reproduce the behavior:

from azure.core.credentials import AzureKeyCredential
from azure.ai.documentintelligence import DocumentIntelligenceClient
from azure.ai.documentintelligence.models import ClassifyDocumentRequest

document_intelligence_client = DocumentIntelligenceClient(
    endpoint='my-document-intelligence-endpoint',
    credential=AzureKeyCredential(doc_intel_key)
)

result = document_intelligence_client.begin_classify_document(
            classifier_id='my-classifier-id',
            classify_request=ClassifyDocumentRequest(
                url_source='the-blob-sas-url'
            ),
            split='auto'
).result()

Expected behavior Classification should take at most 7 to 8 seconds.

galvangoh avatar Oct 01 '24 02:10 galvangoh

Thank you for your feedback. Tagging and routing to the team member best able to assist.

github-actions[bot] avatar Oct 01 '24 02:10 github-actions[bot]

I'm having issues as well with dotnet sdk using blob url with sas token. taking the generated url pulls down the image from my browser, but no response when processing from the SDK. get an error when trying the document intelligence studio with the same url saying it can't access the url.

jricke avatar Oct 01 '24 21:10 jricke

@jricke Thanks for your contact, we'll investigate asap! You attached the timeout issue in sovereign clouds, I'm wondering is this issue also happened in sovereign clouds? We have a similar test on public cloud, but don't see the issue.

@bojunehsu It's hanging when classifying document using SDK and studio. it looks like an issue in service. Can you help to take a look?

YalinLi0312 avatar Oct 02 '24 23:10 YalinLi0312

Hi @galvangoh. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

github-actions[bot] avatar Oct 02 '24 23:10 github-actions[bot]

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @bojunehsu @vkurpad.

github-actions[bot] avatar Oct 04 '24 18:10 github-actions[bot]

Hi @YalinLi0312 , the service seems to be working as intended now. For a couple of days earlier this week, the service was not coming back with a response. I just processed a document and it came back right away.

jricke avatar Oct 04 '24 19:10 jricke

@jricke Glad to hear the issue is resolved, thank you!

YalinLi0312 avatar Oct 04 '24 21:10 YalinLi0312