Robotic Process Automation

How to integrate LLMs into RPA workflows for unstructured data?

B Asked by Brian Collins · 12-11-2023
0 upvotes 15,803 views 0 comments
The question

We are trying to automate invoice processing where the layouts are completely unstructured and change daily. Standard OCR isn't cutting it. Has anyone successfully integrated an LLM like GPT-4 into their RPA pipeline for data extraction, and how are you handling the API costs and data privacy concerns?

3 answers

0
CY
Answered on 18-11-2023

We recently launched a pilot using "Intelligent Document Processing" (IDP) combined with an Azure OpenAI instance. To solve the privacy issue, we used an enterprise-tier API where our data is not used for model training. The trick to managing costs is not sending the whole document. We use a standard OCR to extract text first, and then send only the "ambiguous" segments to the LLM for classification. This reduced our token usage by 70%. It has brought our accuracy for handwritten notes from 40% to nearly 95%. It’s definitely the future of "Hyperautomation," but you must have a human-in-the-loop for final validation.

0
G
Answered on 25-11-2023

Are you finding that the LLM's response time creates a bottleneck in your real-time processing bots, or do you run these as batch jobs?

PA 30-11-2023

Gregory, we definitely run them as batch jobs. The latency of an LLM call can be 5-10 seconds, which is a lifetime for a synchronous bot. By offloading the extraction to a background queue, our main bots can keep moving. We then have a separate "Review Bot" that aggregates the LLM results for the human auditors. This asynchronous pattern is essential if you want to scale AI-integrated RPA without killing your server performance.

0
DE
Answered on 05-12-2023

We use a local Llama-2 model on our own servers to avoid any data leaving our network. The accuracy is slightly lower than GPT-4, but the privacy is 100%. 

BR 08-12-2023

I agree with Deborah. For highly sensitive data, local models are the way to go. Even if they are 5% less accurate, the lack of compliance risk is a huge win for the legal department.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

Book Free Session