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: I built it and nobody came. What got you your first users?

3•deadcatfound•2h ago•4 comments

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

8•silentmafia•4h ago•4 comments

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

282•david927•4d ago•1095 comments

X permanently banned my 15-year-old account for sharing my own open-source lib

13•rifmj•7h ago•8 comments

How do you guys keep up with AI news?

7•anirudhc2005•6h ago•5 comments

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

125•kadhirvelm•1d ago•105 comments

Ask HN: How do you manage too many open tabs?

7•NarcisMirandes•12h ago•24 comments

Why people chasing after useless token saving plugins and ignoring real solution

2•yohji1984•8h ago•0 comments

Ask HN: As LLMs progress, how do you stay sharp and productive?

7•spiresofagartha•13h ago•7 comments

Ask HN: Add flag for AI-generated articles

1086•levkk•4d ago•457 comments

Ask HN: Are we there yet? Can I create a human analogue using AI?

2•JoeAltmaier•10h ago•3 comments

Ask HN: Best meeting transcription daemon for macOS?

4•tomelliot•11h ago•3 comments

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

10•Gold-Ask-lx•1d ago•16 comments

Ask HN: Assistive Tech Ideas for Dementia

4•thanksd•12h ago•1 comments

Thinking: Alternate Distribution for Filmmakers

3•phaedrus044•18h ago•0 comments

Help me be accountable with my time

4•atomiomi•15h ago•10 comments

Ask HN: How about a "Merge Stories" feature?

2•RetroTechie•15h ago•2 comments

Ask HN: What are you using for authn/authz and payments?

3•jftuga•15h ago•4 comments

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

28•sspehr•3d ago•93 comments

Ask HN: Are there any startups looking for a developer on contract base?

2•need_a_work23•16h ago•1 comments

OTPme Testers Wanted

4•otpme•16h ago•0 comments

On-device AI that respects your privacy

2•fujidevv•16h ago•0 comments

Ask HN: How do you handle OSS project with private artifacts?

2•mrsalty•17h ago•1 comments

The Missed Reality: Code Review Wasn't Built for the AI Era

2•axsdrizz•18h ago•1 comments

Ask HN: Best way to buy second hand compute (in a future AI crash)

4•lifeisstillgood•18h ago•1 comments

I built a tool to get comments in CSV format from YouTube videos

2•cristyg0101•20h ago•2 comments

You've reached the end!