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? (August 2026)

171•whoishiring•17h ago•151 comments

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

110•whoishiring•17h ago•260 comments

Ask HN: In post AI world, who is responsible if the code break?

3•pranshuchittora•53m ago•5 comments

Show CVBoosta:Resume Optimizer that tailors your resume to every job

2•cvboosta•7h ago•0 comments

Ask HN: Does AI research need "world models" more than bigger LLMs?

2•unjuno•8h ago•2 comments

Base Power raises another $1B

2•daveorzach•11h ago•1 comments

Ask HN: Who is firing? (August 2026)

16•ethanwillis•10h ago•5 comments

Ask HN: Who is quitting? (August 2026)

20•ethanwillis•10h ago•0 comments

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

8•puremetrics•1d ago•3 comments

Ask HN: Have LLMs Plateaued?

9•leandrobon•1d ago•26 comments

Ask HN: ReAct vs. Planning Pattern

7•hairymouse•15h ago•1 comments

Ask HN: Anyone still do work on Intel Macs?

21•senor_digimon•2d ago•28 comments

Tips for Landing a YC Internship?

6•cnnadozi•1d ago•10 comments

New open sourced eval tool for building agents

2•Thomeras•1d ago•3 comments

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

20•pera•2d ago•21 comments

Best way to avoid bloat and AI – selfcontaining OS

11•bialamusic•1d ago•4 comments

Ask HN: What's Next for LLMs?

5•apatheticonion•1d ago•5 comments

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

6•ikut3hva•1d ago•1 comments

Tell HN: Pretending not to use AI has made me a better developer

13•throwaway260803•16h ago•4 comments

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

16•skeptic_ai•2d ago•15 comments

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

23•megamike•4d ago•23 comments

Tell HN: HackerOne Announces Mandatory identity verification

17•0xmattf•3d ago•1 comments

Ask HN: How are you using AI to learn?

9•mfalcon•2d ago•23 comments

Ask HN: Early Feedback on Dez?

3•alexander2002•16h ago•3 comments

You've reached the end!