What this thread does
The problem
You have a pile of PDFs, some scanned, you cannot or do not want to upload to a cloud chat service, and you need to find specific clauses.
What the source says
An r/LocalLLaMA post (21 October 2025) by a user with a four-GPU home machine describes proving a homeowners association was responsible for a leak by reading its governing documents: 20 PDFs, over 1,000 pages. The pipeline: PDF to images, a vision model (qwen2.5vl:32b on Ollama) to produce markdown, then keyword search across everything. It took about 3 to 4 hours locally and surfaced six relevant sections, including the decisive one on page 287. The author's point was that sensitive documents are a good fit for local processing. The outcome with the association was still pending when posted. For Ollama REST vision requests, send the rendered page as base64-encoded data in the message's images array. The post is one person's account; the hardware is much larger than a typical laptop.
A related open-weight option shows up in another r/LocalLLaMA post (NuExtract3, a 4B vision model for markdown, OCR and structured extraction; posted by the model's maker, who recommends going page by page for the best results; the model card itself shows a PDF example that sends all rendered pages in one request and does not state that advice). I did not test either model. In the Ollama Python client, pass the local page-image path through the message field 'images': [path].
How to put it to your agent
I have a folder of PDFs, some scanned. Write a script that checks each page for a text layer; for pages without one, render the page to an image and ask a local vision model (via Ollama) to return markdown. Save one markdown file per PDF with page markers, then build a keyword search (ripgrep is enough) that returns the page number and a few lines of context. Process pages in parallel but resumable, and log pages that failed. Never upload the files anywhere.
Mistakes to check
- Trusting vision-model text without opening the original page; quote only what you verified on the page.
- Skipping the text-layer check and running every page through the slow model.
- Losing page numbers, which makes results hard to cite.
- Sending sensitive files to a cloud model while believing the run is local.
Limits
One user's report; the speed depends on hardware; accuracy on tables and handwriting was not measured in the post. Nothing run by me.
Sources
Checked 2026-11-24: the main Reddit post was readable and confirms the author’s quad-3090 machine, 20 PDFs and over 1,000 pages, the 3 to 4 hour run, six relevant sections, page 287 and the pending outcome with the association when posted. The NuExtract3 maker’s post was also readable and recommends page-by-page Markdown processing.
What I read: the Ollama library page for qwen2.5vl (a 32b tag exists, 21 GB, text and image input; the page describes analysing text and layouts in images and structured output from scans of invoices and forms for the model family, and does not say OCR for the 32b tag specifically) and the NuExtract3 model card on Hugging Face (4B vision-language model, Apache-2.0, image-to-markdown, OCR and JSON extraction; its PDF example renders pages to images and sends them together, and for memory problems it suggests lowering the image count per prompt). I tested neither model.
Changes made: one correction on where the page-by-page advice comes from.
Started from a post by @LocalLLaMA post author, packaged by the editor. Original post