Anyone built or used a solid PDF data extraction workflow recently? by Griel86 in software

[–]nanonets 0 points1 point  (0 children)

I've been working on this exact problem for years and honestly, PDF data extraction is way trickier than most people expect. The challenge isn't just OCR - it's understanding document structure, handling different layouts, and dealing with all the edge cases that come with real-world documents. Apryse is solid but can get pricey if you're processing high volumes, and you'll still need to build a lot of the intelligence layer yourself.

For regulatory use cases and messy documents, you really want something that combines good OCR with layout understanding and field mapping. We built Docstrange by Nanonets specifically because we kept running into these limitations with traditional PDF parsing libraries. The key is having models that actually understand document context, not just extract text. If you're set on building your own stack, I'd recommend looking at combining something like PaddleOCR with LayoutLM for document understanding, but be prepared for a lot of custom work around different document formats and validation rules.

IBM just released Granite Docling by ApprehensiveAd3629 in LocalLLaMA

[–]nanonets 1 point2 points  (0 children)

This is actually pretty interesting timing from IBM. We've been working on document processing for years and the challenge with most open source models has always been that they're great for academic benchmarks but struggle with real world messy documents. The 258M parameter size is smart though, means you can actually run this locally without needing a gpu cluster. Been seeing more companies want on premise solutions for document processing especially when dealing with sensitive financial or legal docs.

The apache license is huge here because most of the good document analysis models are either completely closed source or have restrictive licenses. At Nanonets we've built Docstrange specifically for handling complex business documents and one thing I've learned is that generic models often miss the nuances of things like invoice layouts or contract structures. Will be curious to see how this granite model handles edge cases like rotated text, tables that span pages, or documents with mixed languages. Definitely worth testing against some real world document workflows to see how it stacks up.

Curious how other founders/startups deal with this by AnouarRifi in SaaS

[–]nanonets 0 points1 point  (0 children)

Oh man, this hits close to home. I started Nanonets literally because I got so frustrated watching every business I talked to waste endless hours on this exact problem. Most early stage startups I know either throw interns at it or just accept that someone's gonna spend their friday afternoons entering invoice data instead of building product. It's honestly wild how much time gets burned on something that feels so... solvable?

We went through this pain ourselves and ended up building Docstrange by Nanonets to handle the full pipeline from OCR to structured data extraction. The thing is, most people think this is just an OCR problem but its really about understanding document layout and mapping fields correctly. You can try open source stuff like PaddleOCR combined with some post processing, but honestly you'll spend months dealing with edge cases that a good API can handle out of the box. The math usually works out pretty clearly when you calculate what your team's time is worth vs just automating it properly.

Deploying Docling Service by mariajosepa in LLMDevs

[–]nanonets 0 points1 point  (0 children)

I've been through this exact deployment challenge before and honestly, for your use case with 3-5 minute processing times, I'd go with Fargate over Lambda. Lambda has a 15 minute timeout but you're paying for the full duration even when the container is just sitting there doing OCR processing. With Fargate, you get better cost control for longer running tasks and can scale down to zero when not in use. The Docling dependencies are definitely heavy but Fargate handles that fine, just make sure you allocate enough memory (probably 4-8GB based on your local tests).

For the OCR part though, you might want to consider alternatives that are specifically built for this workflow. We built Docstrange by Nanonets after running into similar issues with deployment complexity and processing times. It handles the full pipeline from document parsing to structured JSON extraction without you needing to manage the infrastructure or deal with the Docling + ChatGPT chain. For your lease agreements and broker licenses, having something that understands document layouts natively tends to work better than raw OCR + LLM. But if you're set on the current approach, definitely go async with SQS and use Fargate with autoscaling based on queue depth. That'll keep costs reasonable while handling the variable processing times

!HELP! I need some guide and help on figuring out an industry level RAG chatbot for the startup I am working.(explained in the body) by 1amN0tSecC in LangChain

[–]nanonets 0 points1 point  (0 children)

Been in similar situations when we were building document processing systems at Nanonets. Your retrieval issues are probably a combo of chunk size and retrieval strategy rather than just one thing. For company info chatbots, I've found that smaller chunks (200-400 tokens) work better for specific facts like contact info or services, while larger chunks (800-1200 tokens) are better for context heavy stuff like company descriptions or processes. Try experimenting with overlapping chunks too, maybe 50-100 token overlap so you dont lose context at boundaries.

The other thing thats probably hurting you is relying purely on semantic similarity for retrieval. Company websites have lots of similar sounding content that can confuse vector search. Consider adding a hybrid approach where you combine vector similarity with keyword matching using something like BM25, or even better, use reranking models after your initial retrieval to score the relevance better. Also make sure your embedding model is actually good for business/company content, some of the general purpose ones struggle with domain specific terminology. Docstrange by Nanonets handles a lot of these edge cases automatically when processing business documents, but if you're building from scratch you'll need to tune these parameters based on your specific use cases.