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

New open sourced eval tool for building agents

2•Thomeras•5h ago•1 comments

Local, Open source AI meeting recorder that sees and hears everything

3•puremetrics•9h ago•1 comments

Tips for Landing a YC Internship?

6•cnnadozi•14h ago•6 comments

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

16•sarreph•14h ago•29 comments

Ask HN: Have LLMs Plateaued?

4•leandrobon•10h ago•11 comments

Ask HN: Anyone still do work on Intel Macs?

20•senor_digimon•1d ago•28 comments

Ask HN: What's Next for LLMs?

4•apatheticonion•12h ago•4 comments

Tell HN: Amazonbot aggressively scraping my website and ignoring robots.txt

20•pera•1d ago•18 comments

Best way to avoid bloat and AI – selfcontaining OS

11•bialamusic•1d ago•2 comments

What is the downside of coaching that I may not be seeing yet?

5•ikut3hva•1d ago•0 comments

Ask HN: I still don't understand why AI agents need "skills"

14•skeptic_ai•1d ago•15 comments

Ask HN: How are you using AI to learn?

9•mfalcon•1d ago•23 comments

Ask HN: What's Your BHAG?

7•sudo_cowsay•1d ago•12 comments

Tell HN: HackerOne Announces Mandatory identity verification

17•0xmattf•2d ago•1 comments

Ask HN: When will ChatGPT Voice be able to control my phone?

2•spapas82•1d ago•6 comments

Strategic Oil Reserves Down to a Record Low Two-Week Supply

22•megamike•3d ago•20 comments

What if we learned languages like we acquired our first?

7•Salim_wariz•1d ago•9 comments

ask HN: How do I run Android 15 on a system with Andr 12 vendors?

3•KinetiNode•1d ago•2 comments

Ask HN: What did you learn last month? (July 2026)

15•bhu1st•2d ago•14 comments

Ask HN: Do you ever think about the environmental impacts of the AI datacenters?

3•roschdal•5h ago•3 comments

AI will always find a difference

3•ghassenfaidi•1d ago•1 comments

You've reached the end!