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

We handed our lives to closed software. AI is about to show us the cost

3•earlythesis•36m ago•0 comments

Ask HN: What does building hardware with AI look like?

2•mjs06•2h ago•0 comments

Ask HN: Which open source LLM works best locally, and on what hardware?

3•donkan168•2h ago•14 comments

Ask HN: Dropbox privacy policy, cause for concern?

10•herodoturtle•12h ago•2 comments

Vercel should fork and maintain Deno

15•gfalcao•1d ago•11 comments

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

303•david927•6d ago•1088 comments

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

44•exploraz•1d ago•29 comments

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

44•0o777•1d ago•33 comments

Anthropic, can you please make up your mind with your models?

5•xlayn•14h ago•7 comments

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

17•basilikum•1d ago•6 comments

Ask HN: What AI agent infrastructure are you using in 2026?

3•aurumagent•17h ago•2 comments

ChatGPT Desktop forwards your SSH agent to remote machines

221•DenGorbachev•6d ago•80 comments

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

87•shnock•1d ago•51 comments

Ask HN: Best books you read in 2026?

12•013•19h ago•5 comments

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

66•hasley•6d ago•90 comments

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

102•mtlynch•1w ago•98 comments

Using LLMs outside of reflection is an anti-pattern

4•jcarmackdaddy•1d ago•0 comments

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

14•wmchen•2d ago•2 comments

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

4•otohp•1d ago•5 comments

Ask HN: OpenAI Astra post-launch slump?

4•iJohnDoe•1d ago•6 comments

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

10•znano•2d ago•23 comments

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

10•niceguy1827•3d ago•9 comments

You've reached the end!