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

Ask HN: Who is hiring? (October 2026)

174•whoishiring•15h ago•178 comments

Ask HN: Who wants to be hired? (October 2026)

104•whoishiring•15h ago•316 comments

GitHub can f..k you and you are forced to love it. or live with it...

6•anonymous_frust•1h ago•1 comments

Ask HN: Email leaked while traveling abroad?

17•thatonehack•12h ago•8 comments

Ask HN: What are you reading?

453•dan-bailey•2d ago•865 comments

Rpi – a Rust rewrite of the Pi agent, 10× faster startup

8•bigfishhk•18h ago•7 comments

Ask HN: What are you reading to your kids?

14•jopizio•1d ago•22 comments

Muse.ai gets me kicked off fb marketplace

30•zcalvin•1d ago•14 comments

40 years of writing code. I didn't see the end coming

18•temilson•16h ago•14 comments

Ask HN: What landmarks/lighthouses in the era of LLM/AI?

3•throw_away_ai•18h ago•4 comments

OpenAI halved the allowance of the $200 plan to 10x

18•k9294•22h ago•7 comments

Ask HN: What's a good title for a software engineer now?

5•type4•1d ago•16 comments

Tell HN: Thanks for All the Fish

15•neilv•1d ago•5 comments

Factory AI vs. Cognition (Devin) board tussle

3•pranshuchittora•1d ago•1 comments

Ask HN: Freelancer? Seeking freelancer? (October 2026)

5•jon_north•15h ago•13 comments

Ask HN: How do you get your first users for an MVP?

16•amina124•3d ago•13 comments

Ask HN: How will the AI endgame play out?

14•jackgavigan•1d ago•27 comments

Ask HN: What are people doing with their OpenClaw set ups now?

19•will10pa•4d ago•11 comments

Ask HN: OpenSEO inspiration for other tools, asking for opinion

4•yash_salesup•2d ago•0 comments

Stanislaw Lem quote related to LLMs

8•daly•1d ago•2 comments

Google now ships "ads" with their Android system update?

10•y42•2d ago•3 comments

Management is forcing us to use AI

20•aksjfveoq•4d ago•37 comments

You've reached the end!