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: What did you learn last month? (July 2026)

8•bhu1st•6h ago•6 comments

Tell HN: HackerOne Announces Mandatory identity verification

16•0xmattf•13h ago•1 comments

Upgraded melly, our agent on sleek

2•silisleek•5h ago•0 comments

What's Happening with IT Hiring?

2•hannibalevit•5h ago•3 comments

Tell HN: System76 has critical firmware issues unresolved for over 3 years

4•jaime-ez•5h ago•1 comments

Everything that happens in a US airport is under duress

16•dfps•15h ago•17 comments

Random Thoughts of Lineage and Death

2•kooi•6h ago•0 comments

MiniMax H3: Open weights Omni-modal model

3•ignoramous•3h ago•0 comments

Ask HN: When a post of yours does well, do you know why?

5•john_builds•15h ago•4 comments

Ask HN: Anyone got DeepSeek-v4-flash-0731 running using antirez/ds4?

2•freakynit•3h ago•0 comments

Ask HN: What's the Point of Your Startup?

8•sawyers•15h ago•14 comments

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

18•megamike•1d ago•18 comments

Ask HN: What's your monthly personal AI budget?

3•thatgloomyguy•11h ago•2 comments

DeepSeek API service will soon adopt a peak-valley pricing strategy

2•sschueller•13h ago•0 comments

Ask HN: Has Claude Code been (mostly) usable for you?

3•mark_l_watson•13h ago•5 comments

Ask HN: What E-Reader to Buy?

6•conor_f•17h ago•8 comments

Ask HN: Can Apple Ever Be Disrputed?

6•Taikhoom2010•1d ago•21 comments

Ask HN: What are you using for LLM inference in production?

8•chrislim•21h ago•4 comments

Ask HN: What former "must-have" AI agent skills have you deprecated?

5•lpjstack•1d ago•2 comments

Time for OpenAI and Anthropic to take a leaf from Microsoft's book?

2•chrisjj•10h ago•1 comments

Ask HN: Navigating Source Code (especially on large projects)

6•thekey•1d ago•3 comments

Stripe's opt-out Radar price increase dressed up as a free trial

9•rapind•1d ago•1 comments

I built an independent peptide testing lab that accepts mailed samples

6•peptidelabs•1d ago•1 comments

Ask HN: Do older programmers/CS academics view AI safety as a form of arrogance?

6•amichail•1d ago•14 comments

Ask HN: Crooked Timber showed showed me a virus captcha, What now?

44•Jgoauh•3d ago•47 comments

Ask HN: After 8 Years of Failed Apps, Should I Give Up?

6•asoomi07•1d ago•22 comments

Ask HN: Should authors disclose if they are paid to write a blog post?

6•wseqyrku•2d ago•5 comments

You've reached the end!