Can I Compare Data from Two PDFs Like a Purchase Order and an Invoice?

June 21, 2025 5 answers
Asked by _archive_key
I'm looking to confirm whether it's feasible to compare two unstructured documents, specifically a Purchase Order and an Invoice. I know that text extraction can be done on both documents, but I'm curious if there's a way to compare their data and spot any discrepancies between them.

Answers

almost_ready_to_vote
The short answer is no, not without some programming. You'd need a custom solution to understand the content properly. Even then, it wouldn't guarantee 100% accuracy. But don't get discouraged, there are tools like SearchAI Assist that can help!
Reply to this answer
frost_early6
You should be able to tackle this with Document Intelligence along with the Azure OpenAI service. First, extract the document data using Document Intelligence, and then use GPT-4o for the comparison through Azure. If you prefer a no-code approach, you can use Logic Apps to orchestrate everything! Check out the Microsoft tutorials for help on setting it up.
Reply to this answer
+~compare the dates
There's a cool solution accelerator on GitHub that combines Document Intelligence with Azure OpenAI. It might be worth checking out for your needs!
Reply to this answer
syntax_samovar
Have you checked out Egnyte's document comparison features? They let you compare a file with its previous versions or different files, highlighting the differences. It could be exactly what you need for tracking changes accurately.
Reply to this answer
kettle-lid
There's also a new agent orchestration feature in Foundry. You could set it up with two agents to extract the data, one for each document type, and then a third one to handle the comparison.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions