News for hackers. Stuff that matters.
Re:Show HN: PDF to MD by LLMs – Extract Text/Tables/Image De... by pierre on Sunday September 22, 2024 @05:54AM (#41615964)
Parsing docs using LVM is the way forward (also see OCR2 paper released last week, people are having ablot of success parsing with fine tunned Qwen2).

The hard part is to prevent the model ignoring some part of the page and halucinations (see some of the gpt4o sample here like the xanax notice:https://www.llamaindex.ai/blog/introducing-llamaparse-premiu...)

However this model will get better and we may soon have a good pdf to md model.

Re:Show HN: PDF to MD by LLMs – Extract Text/Tables/Image De... by authorfly on Sunday September 22, 2024 @07:34AM (#41616351)
What about combining old school OCR with GPT visual OCR?

If your old school OCR output has output that is not present in the visual one, but is coherent (e.g. english sentences), you could get it back and slot it into the missing place from the visual output.

Re:Show HN: PDF to MD by LLMs – Extract Text/Tables/Image De... by yigitkonur35 on Sunday September 22, 2024 @03:34PM (#41619373)
You're absolutely right. I use PDFTron (through CloudCovert) for full document OCR, but for pages with fewer than 100 characters, I switch to this API. It's a great combo – I get the solid OCR performance of SolidDocument for most content, but I can also handle tricky stuff like stats, old-fashioned text, or handwriting that regular OCR struggles with. That's why I added page numbers upfront.
Re:Show HN: PDF to MD by LLMs – Extract Text/Tables/Image De... by fkilaiwi on Sunday September 22, 2024 @11:56AM (#41617916)
what paper are you referring to?
Re:Show HN: PDF to MD by LLMs – Extract Text/Tables/Image De... by perrywky on Monday September 23, 2024 @04:33AM (#41623771)
Re:Show HN: PDF to MD by LLMs – Extract Text/Tables/Image De... by fzysingularity on Sunday September 22, 2024 @02:21PM (#41618872)
We’ve been doing exactly this by doubling-down on VLMs (https://vlm.run)

- VLMs are way better at handling layout and context where OCR systems fail miserably

- VLMs read documents like humans do, which makes dealing with special layouts like bullets, tables, charts, footnotes much more tractable with a singular approach rather than have to special case a whole bunch of OCR + post-processing

- VLMs are definitely more expensive, but can be specialized and distilled for accurate and cost effective inference

In general, I think vision + LLMs can be trained to explicitly to “extract” information and avoid reasoning/hallucinating about the text. The reasoning can be another module altogether.

Re:Show HN: PDF to MD by LLMs – Extract Text/Tables/Image De... by yigitkonur35 on Sunday September 22, 2024 @03:04PM (#41619157)
I did a ton of Googling before writing this code, but I couldn't find you guys anywhere. If I had, I'd have definitely used your stuff. You might want to think about running some small-scale Google Ads campaigns. They could be especially effective if you target people searching for both LLM and OCR together. Great product, congratz!
Re:Show HN: PDF to MD by LLMs – Extract Text/Tables/Image De... by fzysingularity on Sunday September 22, 2024 @05:26PM (#41620217)
Hey, thanks! DM me if you want to test it out ([email protected]).

Agreed on SEO - we’re redoing our landing page and searchability. We recently rebranded, hence the lack of direct search hits for LLM / OCR.