frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•1y 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•1y 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•1y ago
give https://pg.llmwhisperer.unstract.com/ a try

AWS: Inaccurate Estimated Billing Data – $1.7 billion

1183•nprateem•1d ago•706 comments

Thanks HN for 15 years of support and helping me find my life's work

592•nicholasjbs•16h ago•59 comments

Ask HN: I've told everyone about my startup and its been harder than I thought

3•bunnybomb2•2h ago•6 comments

Ask HN: Did Fable disappear from your Claude usage and requires credits now?

88•cromka•15h ago•86 comments

Ask HN: What Are You Working On? (July 2026)

287•david927•5d ago•1114 comments

Ask HN: Is it just me, or is software buggier across the board?

132•kadhirvelm•2d ago•110 comments

Ask HN: Add flag for AI-generated articles

1091•levkk•5d ago•456 comments

Ask HN: Is AI sycophancy a way to reduce compute rather than make users happier?

2•amichail•14h ago•1 comments

Tell HN: Codex may have reached 10M active users; usage limits reset again

4•linzhangrun•6h ago•1 comments

Fable 5 dropped from subscriptions before the promised July 19 date

21•Ryan_Li•15h ago•12 comments

Is GPT-5.6 Sol Max Worth It?

2•yohji1984•19h ago•4 comments

Ask HN: I built it and nobody came. What got you your first users?

9•deadcatfound•1d ago•16 comments

Ask HN: How do you handle the actual situation with so much AI noises

4•ThierryRkt•19h ago•9 comments

Ask HN: Who gets credits on big math questions solved by LLMs?

9•silentmafia•1d ago•7 comments

How do you guys keep up with AI news?

12•anirudhc2005•1d ago•12 comments

Ask HN: Should I do a CS masters at Cambridge or start as a new grad at Amazon?

28•sspehr•4d ago•93 comments

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

4•adithyaharish•23h ago•18 comments

Ask HN: Are AWS Certs worth getting for experienced Devs?

12•Gold-Ask-lx•2d ago•17 comments

Ask HN: I feel like I've lost my identity due to AI

12•im-not-enjoying•1d ago•9 comments

Router ARP/NAT contradict after reload. Client ghost or firmware bug?

2•asdem•1d ago•0 comments

You've reached the end!