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 wants to be hired? (September 2026)

98•whoishiring•1d ago•356 comments

Ask HN: Who is hiring? (September 2026)

233•whoishiring•1d ago•271 comments

Kimi K3 and GLM-5.3 are better than Gemini 3.8 Flash

7•theHocineSaad•2h ago•2 comments

ChatGPT Linux GUI version updates redownload all files, require 1.4GB download

7•juujian•7h ago•0 comments

Ask HN: How to ask questions in Ask HN

3•samikama•4h ago•8 comments

Ask HN: Would you be interested in using a VoIP system that has an operator?

2•left-struck•4h ago•4 comments

Ask HN: Where do you get your AI (technology) news?

4•BtM909•7h ago•0 comments

Resources to Get Good at Soldering?

4•tosmatos•10h ago•1 comments

Knowledge Graph Engine for Codebases

2•Shourya_55•6h ago•8 comments

Noviz AI Agent for ERPNext – A Reasoning Layer for ERPNext

2•tajdink•8h ago•0 comments

Whose interview process has caught up to the new way of working?

2•verygoodenginee•9h ago•5 comments

Ask HN: Anyone homeschooling their kids?

12•wbnns•20h ago•18 comments

Ask HN: What would happen if your company stopped using all AI tomorrow?

38•jc_811•2d ago•84 comments

Were Claude's Weekly Limits Cut in Half? (and obscured by another 50% "deal"?)

2•benwills•17h ago•3 comments

My local model setup on an M4 Pro Mac Mini

4•RanjithKumarRag•7h ago•1 comments

Dropbox Data Breach

46•hmate9•1d ago•7 comments

Ask HN: Does HN block mobile browsers?

4•pbohun•22h ago•7 comments

Is it just me, or has Claude Opus gotten worse recently?

12•de6u99er•1d ago•20 comments

Why did Microsoft acquire LinkedIn?

6•ninju•1d ago•4 comments

Claude Code now appends a link to a Claude session in every commit

10•codexon•1d ago•2 comments

Ask HN: Alternative to Proton Mail?

7•OhMeadhbh•1d ago•7 comments

Old.reddit.com no longer works for logged out users

31•kradeelav•1d ago•15 comments

Ask HN: What do your job interviews look like?

29•Hixon10•2d ago•10 comments

Ask HN: How do you survive a job you hate which is slowly making you sick?

43•_override•12h ago•68 comments

Asked Reddit support to give me API key so I can delete my data. They refused

15•leoriq•1d ago•18 comments

You've reached the end!