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: Best Podcasts of 2026 [So Far]

8•AbstractH24•2h ago•5 comments

Ask HN: Is GitHub preparing to go behind a login wall?

44•reconnecting•10h ago•32 comments

Ask HN: Where are the good search engines for mathematical formulas?

52•lo0dot0•3d ago•15 comments

What if users start cloning SaaS using AI

2•mzubairtahir•2h ago•2 comments

Tell HN: Who wants to be hired" posts outpace "Who's hiring" 2 to 1

52•santiagobasulto•16h ago•30 comments

Ask HN: Please give us an option to hide our username in the upper right corner

3•swingandamiss•5h ago•13 comments

Ask HN: How do you keep documentation up to date with AI generated code?

3•ghosts_•5h ago•4 comments

I coded a shoot 'em up alone at 18 after learning Lua in a single week

4•DamixLord•7h ago•2 comments

Ask HN: Do you have more or less than 1Mb text of your own writing?

3•cwmoore•7h ago•20 comments

Ask HN: Is anyone experimenting with different ways of using LLMs for coding?

202•yehiaabdelm•4d ago•202 comments

Ask HN: How do I setup SSO and SLO on my two WP websites with separate databases

2•anitroves•10h ago•0 comments

Tell HN: Fable is now credits only

9•teruakohatu•21h ago•7 comments

Ask HN: What is your AI harness that lets you switch LLM models easily?

3•hbarka•10h ago•3 comments

Tell HN: I managed to unsubscribe from Adobe CC without being charged

24•frereubu•1d ago•2 comments

Tell HN: Fable 5 promotion extended through July 12, 2026 at 11:59:59 PM PT

15•theanonymousone•11h ago•5 comments

Ask HN: Are LLMs slowly making companies dysfunctional?

6•haute_cuisine•12h ago•3 comments

Ask HN: Make good open-source products, but how to get user?

3•Loerei•12h ago•4 comments

Ask HN: Who is hiring? (July 2026)

245•whoishiring•6d ago•369 comments

Ask HN: What are alternative to Upwork for side gig?

5•user7878•16h ago•2 comments

Ask HN: Are systems ready for the first negative leap second?

10•Asmod4n•1d ago•11 comments

Claude has the worst pricing – but people want it

10•amukbils•1d ago•21 comments

Ask HN: Fable 5 promo ends today – is anyone keeping it once it's usage-billed?

10•franze•16h ago•15 comments

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

151•whoishiring•6d ago•504 comments

Ask HN: What cool stuff have you all been using Fable 5 for?

12•Tsarp•1d ago•14 comments

Ask HN: Is anyone using Jujutsu version control (JJ) exclusively?

7•cabyambo•1d ago•1 comments

Ask HN: Since when does Craigslist's front page have emojis?

39•argee•1w ago•33 comments

Ask HN: Are there good security benchmarks for LLMs?

7•melvinroest•1d ago•0 comments

You've reached the end!