Getting 408 : The operation was timeout error while using document intelligence in azure AI services

Billy Zhou 30 Reputation points
2024-01-11T05:09:10.16+00:00

I'm try to using below function to load a PDF file(300 pages for this pdf) from my local env:

loader = AzureAIDocumentIntelligenceLoader(file_path=xxx.pdf, api_key = doc_intelligence_key, api_endpoint = doc_intelligence_endpoint, api_model="prebuilt-layout")
docs = loader.load()

After few minutes, some warning message shown: User's image

Then loader.load() function throw a 408 time out exception: User's image I have try to load a small pdf(20 pages) and it's working fine, So is this because the original pdf(300 pages) too large? Please give us some advice here, thank you very much.

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

Accepted answer
  1. YutongTie-MSFT 53,891 Reputation points
    2024-01-23T17:47:20.0666667+00:00

    Hi @Billy Zhou
    Thanks for reaching out to us again, I hope your issue has been resolved. Please let us know if you have any further concerns, please kindly accept the answer if you feel above answer is helpful. Regards, Yutong

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. dupammi 8,540 Reputation points Microsoft Vendor
    2024-01-11T08:26:17.39+00:00

    Hi @Billy Zhou , Thank you for using the Microsoft Q&A forum. Based on the error message you received, it seems that the request to load the PDF file timed out. This could be due to the size of the PDF file, as larger files may take longer to process. Please try splitting the PDF file into smaller sections and processing them separately, so that it can fit into the buffer size. This can help reduce the processing time and prevent timeouts. You can try using different models that can support large file sizes such as custom document models. I hope this helps! Thank you.

    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.