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

Tell HN: Google Search to start locking down search behind a login wall

34•exploraz•14h ago•19 comments

Ask HN: What is the state of self-hosting email in 2026?

35•0o777•18h ago•30 comments

Ask HN: What are the most useful, concrete AI skills to independently learn?

56•shnock•6h ago•40 comments

Tell HN: Cloudflare's abuse report form is a blank page

16•basilikum•14h ago•6 comments

Ask HN: What use are the non-major cryptocurrencies?

3•otohp•9h ago•1 comments

Ask HN: What are you working on? (November 2026)

301•david927•5d ago•1081 comments

ChatGPT Desktop forwards your SSH agent to remote machines

220•DenGorbachev•5d ago•79 comments

U.S. October PPI Rises 6.5% YoY, Highest in Nearly Four Years

168•moonypto•22h ago•216 comments

Ask HN: Do you see a human written book more valuable than an AI written one?

8•znano•1d ago•19 comments

Ask HN: Do you still enjoy coding in C++?

65•hasley•5d ago•90 comments

Ask HN: Advice for those who want to build stuff but don't know where to start

6•mjs06•19h ago•8 comments

Tell HN: Major Microsoft Outlook/Exchange Online/Teams Outage in the Americas

13•wmchen•1d ago•2 comments

Google search hides Nvidia stock graph

14•nedx•1d ago•3 comments

Ask HN: Why use Jev/decision models at all?

10•niceguy1827•1d ago•8 comments

Ask HN: Claude – OAuth request failed Temporarily unable to authenticate

4•franze•1d ago•2 comments

Claude OAuth Failures

28•tankenmate•1d ago•24 comments

Ask HN: How did you convince family and friends to join your XMPP/Matrix server?

102•mtlynch•6d ago•97 comments

Ask HN: What % of HN is now AI-generated?

8•simonebrunozzi•1d ago•6 comments

Outlook still down for anyone else?

7•rsoto2•1d ago•6 comments

Tell HN: Cast('abc' AS INTEGER) returns 0 in SQLite

3•prmph•1d ago•7 comments

Claude AI Is Down

28•cheptsov•1d ago•7 comments

Ask HN: What is holding back robots from being deployed everywhere?

7•mjs06•2d ago•20 comments

What are your favorite tools?

15•d675•3d ago•9 comments

Why Is Nvidia Valuable?

3•fraserphysics•1d ago•3 comments

Ask HN: How do you evaluate the skills your AI agents use?

25•enesalatas•4d ago•6 comments

Any good ways on how to get into kernel dev?

8•ihms•2d ago•8 comments

Ask HN: Is lack of human imagination now the bottleneck instead of intelligence?

8•amichail•2d ago•14 comments

I'm genuinely disappointed in our most visible tech leadership

8•AnneTrotter•1d ago•4 comments

Ask HN: How do you market your consumer product

9•mv4•1d ago•10 comments

Inception's Diffusion LLM API Is Shutting Down

14•_matthew_•1d ago•9 comments