frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•18h 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•17h 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)

What interesting things low spending people do, that others know nothing about?

9•evolve2k•1h ago•9 comments

Big Beautiful Bill R&D Tax: Will tech go on a hiring spree again?

6•jbverschoor•5h ago•7 comments

I'm Peter Roberts, immigration attorney, who does work for YC and startups. AMA

251•proberts•3d ago•449 comments

Ask HN: What's your go-to message queue in 2025?

56•enether•4d ago•94 comments

Ask HN: Do people actually pay for small web tools?

16•scratchyone•1d ago•15 comments

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•18h ago•1 comments

Ask HN: Moving to London from California

8•siamese_puff•13h ago•9 comments

Ask HN: How are you acquiring your first hundred users?

566•amanchanda•6d ago•350 comments

Ask HN: Conversational AI to Learn a Language

13•edweis•2d ago•5 comments

Ask HN: Anyone working in traditional ML/stats research instead of LLMs?

20•itsmekali321•2d ago•10 comments

Is current state of querying on observability data broken?

12•pranay01•1d ago•0 comments

Ask HN: Email Provider for Main Account?

23•agent008t•4d ago•25 comments

Xray: A full-behavior-chain anti-malware system built in Go by a student

6•tangtian•2d ago•0 comments

Ask HN: How do you store private keys?

7•max_•2d ago•15 comments

Best AI editor for local models?

6•rocketbro•2d ago•0 comments

Ask HN: How do you store the knowledge gained in a day?

67•dennisy•5d ago•95 comments

SwipeJobs App – Tinder for Job Seekers

3•fidla•1d ago•10 comments

Ask HN: Our only salesperson was working for a competitor. Advice?

12•betrayawayed555•2d ago•8 comments

Ask HN: Is Slack Down?

69•abatilo•6d ago•29 comments

Ask HN: Why is no one making FILE_ID.DIZ anymore?

11•reconnecting•4d ago•5 comments

Symbolic Logic Based LLM

5•sandeeptshelvan•3d ago•1 comments

FlyLoop – AI Agent for Scheduling Meetings and Managing Your Calendar

19•localbuilder•6d ago•4 comments

Ask HN: Did anyone else see an avalanche of old email appear in Gmail?

4•DamnInteresting•2d ago•2 comments

Ask HN: How would you fund a tech cooperative owned by workers and users?

8•prrada•3d ago•7 comments

What do people use for on-call these days?

8•skullum•2d ago•10 comments

Ask HN: Any good tools to pgdump multi tenant database?

3•polishdude20•2d ago•4 comments