For all the test use cases mentioned in this thread, I’d suggest trying LLMwhisperer. A general purpose text Pre-processor/OCR built for LLM consumption. https://pg.llmwhisperer.unstract.com
Llama-OCR: Document to Markdown
71–80 of 104 posts
Re: Llama-OCR: Document to Markdown
#72Is it possible to do this locally with open source software? I have a lot of accounting PDFs to convert but due to privacy concerns it should not run in the cloud.
A cheap hack is to push the documents through pdftotext from Poppler and if nothing or very little comes out, push them through OCRMyPDF and pipe it to pdftotext. If it's scanned you probably want some flags for deskewing and so on.
To make a bulk load of PDF mostly greppable it's a decent technique, to get every 0 as a 0 you're probably going to proofread every conversion.
Re: Llama-OCR: Document to Markdown
#73One can combine apache tika OCR and feed it together with the image into LLM to fix typos.
Re: Llama-OCR: Document to Markdown
#74I've been doing a lot of OCR recently, mostly digitising text from family photos. Normal OCR models are terrible at it, LLMs do far better. Gemini Flash came out on top from the models I tested and it wasn't even close. It still had enough failures and hallucinations to make it faster to write it in by hand. Annoying considering how close it feels to working. This seems worse. Sometimes it replies with just the text,…
Re: Llama-OCR: Document to Markdown
#75Reading the Llama community license agreement, section "Redistribution and Use" I expected to find 'Built with Llama'. Is this not required? https://huggingface.co/meta-llama/Llama-3.2-11B-Vision-Instr... links to the community license.
Re: Llama-OCR: Document to Markdown
#76https://xenodium.com/images/chatgpt-shell-repo-splits-up/jap...
Other unrelated examples https://lmno.lol/alvaro/chatgpt-shell-repo-splits-up
Re: Llama-OCR: Document to Markdown
#77FUNCTION_INVOCATION_TIMEOUT """
Re: Llama-OCR: Document to Markdown
#78Re: Llama-OCR: Document to Markdown
#79Is it possible to do this locally with open source software? I have a lot of accounting PDFs to convert but due to privacy concerns it should not run in the cloud.
Re: Llama-OCR: Document to Markdown
#80I've been doing a lot of OCR recently, mostly digitising text from family photos. Normal OCR models are terrible at it, LLMs do far better. Gemini Flash came out on top from the models I tested and it wasn't even close. It still had enough failures and hallucinations to make it faster to write it in by hand. Annoying considering how close it feels to working. This seems worse. Sometimes it replies with just the text,…
I also found that giving GPT at most a few paragraphs at a time worked better than giving it whole pages. Shorter text = less chance to hallucinate.