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)

322•david927•4d ago•1108 comments

Ask HN: Dumping GitHub for Forgejo for a free and open source project

4•th0th•5h ago•3 comments

Ask HN: Why are electronics still so unrecyclable?

69•alexandrehtrb•1d ago•136 comments

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

7•nycdatasci•16h ago•12 comments

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

23•fandorin•1d ago•15 comments

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

4•xinbenlv•19h ago•3 comments

Ask HN: How do you deal with long Covid?

4•manx•14h ago•2 comments

HN needs a context reminder in the URL window

2•newsoftheday•1d ago•1 comments

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

20•gdad•3d ago•22 comments

Mass Resignation from xAI

14•hargup•1d ago•12 comments

Ask HN: What do you want people to build?

7•billsunshine•2d ago•10 comments

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

8•DrMeric•3d ago•9 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•2d 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•5 comments

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

7•rishabhaiover•4d ago•3 comments

Tell HN: Increased 403's on the Cloudflare Dashboard

2•TimCTRL•2d ago•3 comments

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

7•StefanBatory•4d ago•5 comments

You've reached the end!