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

Selzix – Turn an Instagram handle into a functional online store in minutes

2•mahikmc•1h ago•0 comments

Ask HN: US Equivalent of Anabin?

13•xqb64•1w ago•4 comments

IMDB now automatically creating user accounts when you are signed into Amazon

5•terminalbraid•2h ago•9 comments

Ask HN: How to you optimize output while not burning out?

2•gszr•3h ago•3 comments

Ask HN: Alternative Careers in the Age of AI

8•helpfulmandrill•4h ago•10 comments

AWS: Inaccurate Estimated Billing Data – $1.7 billion

1312•nprateem•5d ago•754 comments

Ask HN: How do people keep track of organizational knowledge?

26•kadhirvelm•22h ago•22 comments

Thanks HN for 15 years of support and helping me find my life's work

832•nicholasjbs•5d ago•107 comments

Ask HN: Can I come to your Chinese office?

4•weli•5h ago•0 comments

Ask HN: Old Reddit no longer working without log in?

4•6stringronin•4h ago•2 comments

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

292•david927•1w ago•1141 comments

Ask HN: What's your experience with GPT-Live been like?

7•caveman23•1d ago•8 comments

Ask HN: GitHub CVE Delays?

4•ioseph•18h ago•0 comments

Ask HN: Claude Code or Codex?

13•czeizel•1d ago•33 comments

You've reached the end!