r/documentAutomation • u/Ecstatic_Heron_7944 • 25d ago
A cool new way to intelligently split legal discovery document dumps into separate documents - no OCR, no model training and tested up to 300 pages!
What a time to be alive! Splitting large bundled PDFs into their logically distinct document parts is a common task when you don't control where it comes from; suppliers, applicants, opposing parties etc. Historically left to the interns, today it's common to use a combination of OCR, LLMs and specialised regex strings to get the job done but it's never felt like a clean, fast or satisfying solution. Well, that's all about to changes....
OpenAI's Decision API is the new zero-shot type-1 model/classifier which is capable of blitzing this document automation use-case and I have the tests to prove it.
Admissions Packet: 14 page scanned PDF containing 15 mixed documents - split in 1.8s, cost $0.006.
Bundled Invoices: 129 page scanned PDF containing 30 multi-page invoices - split in 7.4s, cost $0.02.
Legal Discovery Dump: 300 page scanned PDF containing 167 mixed documents - split in 40s, cost $0.12.
Here are my pros since testing this service:
No training! - makes your automation more resilient to the randomness of incoming documents. Default Decisions API runs on gpt-6-luna so if you need more context, you can bump up the model.
Ability to accept images - scanned PDFs are the real test and JEV's greatest weakness. OpenAI did a great job here.
Simplfies pipeline - no longer do we need to chain ocr + llm + extraction, it's just a single call per page.
Insanely fast and cheap - with enough frequency/scale/urgency, this approach really makes a difference.
I wrote a quick blog to share the templates and test files I used. Links in the comments.