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
Getting 408 : The operation was timeout error while using document intelligence in azure AI services
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:
Then loader.load() function throw a 408 time out exception:
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.
-
YutongTie-MSFT 53,891 Reputation points
2024-01-23T17:47:20.0666667+00:00
1 additional answer
Sort by: Most helpful
-
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.