frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•8mo ago
I've got very used to using the "big" LLMs for analysing PDFs

Now llama.cpp has vision support; I tried out PDFs with it locally (via LM Studio) but the results weren't as good as I hoped for. One time it insisted it couldn't do "OCR", but gave me an example of what the data _could_ look like - which was the data.

The other major problem is sometimes PDFs are actually made up of images; and it got super confused on those as well.

Given this is so new I'm struggling to find any tools which make this easier.

Comments

raymond_goo•8mo ago
Try something like this

  !pip install pytesseract pdf2image pillow
  !apt install poppler-utils
  #!apt install tesseract-ocr
  from pdf2image import convert_from_path
  import pytesseract

  pages = convert_from_path('k.pdf', dpi=300)

  all_text = ""
  for page_num, img in enumerate(pages, start=1):
      text = pytesseract.image_to_string(img)
      all_text += f"\n--- Page {page_num} ---\n{text}"

  print(all_text)
constantinum•8mo ago
give https://pg.llmwhisperer.unstract.com/ a try

Ask HN: What are you working on? (February 2026)

320•david927•3d ago•1099 comments

Ask HN: Why are electronics still so unrecyclable?

68•alexandrehtrb•21h ago•132 comments

Ask HN: What are you working on this Thursday?

2•Sayyidalijufri•6h ago•4 comments

Ask HN: Has anyone achieved recursive self-improvement with agentic tools?

5•nycdatasci•9h ago•9 comments

Ask HN: Does OpenClaw need a re-architecture to be usable?

4•xinbenlv•12h ago•2 comments

Ask HN: How do you deal with long Covid?

4•manx•7h ago•2 comments

Ask HN: Why is everyone here so AI-hyped?

21•fandorin•1d ago•15 comments

Mass Resignation from xAI

14•hargup•1d ago•11 comments

Ask HN: Do provisional patents matter for early-stage startups?

20•gdad•2d ago•21 comments

Ask HN: What do you want people to build?

7•billsunshine•2d ago•7 comments

OrthoRay – A native, lightweight DICOM viewer written in Rust/wgpu by a surgeon

8•DrMeric•2d ago•7 comments

Cursor switches pay-per-token when your plan limit end. Calls "On-Demand usage"

11•hardwellvibe•1d ago•6 comments

AI Isn't Dangerous. Evaluation Structures Are.

4•clover-s•1d ago•6 comments

Ask HN: Am I holding it wrong?

6•notpachet•2d ago•7 comments

Ask HN: Are past LLM models getting dumber?

4•hmate9•2d ago•4 comments

Tell HN: Increased 403's on the Cloudflare Dashboard

2•TimCTRL•2d ago•3 comments

Ask HN: What made VLIW a good fit for DSPs compared to GPUs?

7•rishabhaiover•3d ago•3 comments

Ask HN: How to get started with robotics as a hobbyist?

7•StefanBatory•3d ago•4 comments

A Deep Dive into Nova – A Web Framework for Erlang on Beam

3•taure•2d ago•0 comments

I Built a Browser Flight Simulator Using Three.js and CesiumJS

12•dimartarmizi•2d ago•4 comments

The $5.5T Paradox: Structural displacement in the GPU/AI infra labor demand?

4•y2236li•3d ago•2 comments

You've reached the end!