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 is hiring? (December 2026)

151•whoishiring•1d ago•197 comments

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

71•whoishiring•1d ago•439 comments

The New York Times is shutting down their API

32•donohoe•2h ago•1 comments

Ask HN: Do AI companies want an AI pause/slowdown for selfish reasons?

2•amichail•26m ago•0 comments

Ask HN: Should kids today learn programming or jump to directing agents

20•ripvanwinkle•3h ago•27 comments

Ask HN: Could I make a better Minecraft proxy than Velocity?

3•NotSoSerious•2h ago•0 comments

Ask HN: How to make my GrokBot chat to wife's Muse (Instict etc.)?

2•OxfordCommand•4h ago•5 comments

A Breadth-First Search for Industry Problems Worth Solving (Retail Edition)

3•alikafridi•8h ago•0 comments

OpenAI and Claude models can now be run "on prem" using AWS AI Factories

7•albert_e•8h ago•0 comments

Tell HN: It's not just Claude, Codex (6.2-Astra Ultra) is also sabotaging work

14•emilfihlman•23h ago•5 comments

Best way to process a YouTube video/playlist on your website?

6•vivzkestrel•19h ago•6 comments

Ask HN: How do independent engineers make a living from open-source work?

23•imparikalp•1d ago•25 comments

Did social media kill personal spaces on the internet?

12•I-dont-know•1d ago•18 comments

Ask HN: What software and hardware are you sing for self hosted LLM rigs?

38•NegativeLatency•2d ago•20 comments

Ahrefs switched to DR4 today: 183 of 212 startup directories lost rating

3•babacklindo•1d ago•7 comments

Ask HN: What side-projects have helped you land a job?

2•miroljub-petrov•1d ago•0 comments

Ask HN: Android takes 14GB on my phone. Why does it not include a manual?

19•RetroTechie•3d ago•9 comments

Ask HN: Where is all the amazing AI-generated software?

38•8bitbeep•1w ago•80 comments

Ask HN: What long-running tasks do you let your AI machines work on?

11•f646993e074382f•1d ago•3 comments

Ask HN: Is Copilot in Outlook uniquely bad?

5•Schlagbohrer•1d ago•3 comments

Ask HN: Is RSA in Jeopardy?

26•lyfeninja•1w ago•18 comments

You've reached the end!