Parallelize Azure Document Intelligence API call

Mohamed Yasser 20 Reputation points
2025-02-24T09:17:32.9933333+00:00

I am wondering if i can speed up my document intelligence function, as i searched alot but in vain. I tried to cut my pdf to chunks and parallelize the running of the function but it didn't go faster. Do Azure provide a way of multi-processing or parallelization of the Azure AI Document Intelligence.

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

Accepted answer
  1. SriLakshmi C 6,010 Reputation points Microsoft External Staff Moderator
    2025-02-25T11:56:02.74+00:00

    Hello Mohamed Yasser,

    Greetings and Welcome to Microsoft Q&A!

    Azure Functions can help with multi-parallel processing of Document Intelligence PDFs. You can use Azure Functions to create a serverless architecture that can scale automatically to handle large volumes of PDFs.

    Here's how you can use Azure Functions to process PDFs in parallel:

    1. Split the PDF into chunks of 30 pages each, as you have already done.
    2. Upload the PDF chunks to Azure Blob Storage.
    3. Create an Azure Function that listens to the Blob Storage container for new PDF chunks.
    4. When a new PDF chunk is uploaded, trigger the Azure Function to process the chunk using the Document Intelligence API.
    5. Use Azure Functions' ability to scale automatically to process multiple PDF chunks in parallel.
    6. Once all the PDF chunks have been processed, reassemble them into the original PDF.

    I hope this helps. Thank you.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.