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: Is it just me, or is software buggier across the board?

109•kadhirvelm•15h ago•94 comments

Ask HN: Is consciousness fundamentally a process of preserving identity?

4•diarrheaasmr•2h ago•0 comments

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

279•david927•3d ago•1079 comments

Ask HN: Are AWS Certs worth getting for experienced Devs?

9•Gold-Ask-lx•10h ago•5 comments

Back Up

2•bhusanbh•5h ago•0 comments

Ask HN: Is page 2 HN better?

6•Towaway69•6h ago•2 comments

Tell HN: Fable Credits Are 150x More Expensive

8•yesitcan•10h ago•5 comments

Ask HN: Add flag for AI-generated articles

1083•levkk•3d ago•456 comments

Ask HN: Who build production apps with out seeing code?

2•amukbils•8h ago•4 comments

Revised Polish Alphabet

3•poloniaco•8h ago•0 comments

Ask HN: Are the heaviest AI users of your team blowing past everyone else?

6•ex-aws-dude•10h ago•3 comments

Ask HN: Should I do a CS masters at Cambridge or start as a new grad at Amazon?

27•sspehr•2d ago•92 comments

Do YC companies get preference on the homepage?

2•e_i_pi_2•12h ago•2 comments

ChatGPT now defaults to Codex instead of chat:(

4•amukbils•12h ago•3 comments

Ask HN: Anyone Else Burnt Out?

12•lmpdev•22h ago•3 comments

Making something on your own(without any LLM) feels so good

3•RajX_dev•13h ago•0 comments

Ask HN: What company could create an iOS/Android competitor worth adopting?

4•pwython•15h ago•6 comments

GitHub is starting to lockdown some of the previously public data

9•punkpeye•16h ago•5 comments

Ask HN: Does language complexity affect reasoning?

4•zecice•16h ago•6 comments

I reverse-engineered the three biggest agent-memory tools

2•pauliusztin•17h ago•4 comments

Ask HN: Question regarding personal knowledge management

3•diarrheaasmr•19h ago•3 comments

Ask HN: How are you productive with GPT 5.6 Sol?

3•hk__2•20h ago•1 comments

You've reached the end!