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

Why I prefer Opus 5 to Fable 5

4•novlrdotcom•1h ago•1 comments

Tell HN: Our paid Claude AI subscription unavailable >1 week and no support

24•KellyCriterion•3h ago•9 comments

Ask HN: How to rewrite `Claude.md` and install the skill for Opus5 and Fable5

5•hyhmrright•5h ago•5 comments

BMWs shows in-car ads for Spiderman

31•bigmattystyles•17h ago•14 comments

Internet is no longer accessible?

35•cute_boi•9h ago•16 comments

Ask HN: How to deal with security implications of running/installing projects?

11•johng•15h ago•10 comments

Claude's code comments – too much or just enough?

8•lalaleslieeeee•9h ago•5 comments

Ask HN: What apps are you building?

12•totaldude87•9h ago•14 comments

Goodbye POSIX, Hello Tea Room: Inside MinervaOS Architecture

10•xentnex•20h ago•6 comments

Ask HN: Why is every company encorporating AI everywhere?

24•vanessa1211•1d ago•38 comments

Messaging platform I can self-host for my agents to communicate

2•giribisthebest•13h ago•3 comments

Ask HN: What are the most promising RL fields for a new master student?

34•zecice•1d ago•14 comments

Claude Code getting "API Error: 529 Overloaded"

5•croemer•1d ago•2 comments

Ask HN: Any New Computer Ideas?

8•robalni•1d ago•13 comments

Ask HN: How do you figure out what you're passionate about?

10•charliebwrites•1d ago•20 comments

Ask HN: What livestream do you keep open in a tab?

53•missmoss•2d ago•18 comments

Tell HN: Namecheap gave my account to an unverified third party

495•Thrashed•4d ago•177 comments

Opus Cost = Minimum Wage in South Africa

4•bridgettegraham•1d ago•2 comments

Ask HN: Where do those LLM-generated outreach emails come from?

4•nicbou•1d ago•2 comments

Ask HN: Does the tech industry require deterministic ML training?

4•Swapnopam•1d ago•0 comments

CstWeave – On-device, privacy-first Chrome extension for tab region GIFs

2•fujidevv•1d ago•0 comments

Ask HN: Protecting your Sites/Services from Unwanted Traffic?

12•prologic•2d ago•10 comments

Robotic Adaptation Suffers from Data Collection Bottleneck

3•aunmesh•1d ago•0 comments

Ask HN: Which Jabber clients support SCRAM+ and XEP-0474

12•Bender•2d ago•0 comments

Ask HN: HotPin – lossless 120B MoE inference on 24GB RAM (CPU, 50 loc)

13•LozzKappa•2d ago•0 comments

Ask HN: Are you using Rust on embedded devices yet? If not, why?

9•mempirate•1d ago•4 comments

Timed YouTube video transcripts in .txt and .pdf

7•cristyg0101•2d ago•4 comments

Ask HN: Is Zig worth it over Rust in 2026?

6•soywod•1d ago•6 comments

What happens behind the scenes when we change effort for same LLM models?

13•tbharath•2d ago•8 comments

You've reached the end!