frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•11mo 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•11mo 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•11mo ago
give https://pg.llmwhisperer.unstract.com/ a try

I'm Peter Roberts, immigration attorney who does work for YC and startups. AMA

203•proberts•2d ago•246 comments

Ask HN: Those building Swift apps without touching Xcode, what is your workflow?

11•p5v•5h ago•5 comments

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

139•whoishiring•2d ago•348 comments

Ask HN: Who is hiring? (May 2026)

288•whoishiring•2d ago•333 comments

Ask HN: Is the Job Market Actually Bad?

115•idontwantthis•1d ago•183 comments

Ask HN: Why hasn't someone built a decentralized compute network?

6•buffer_overlord•7h ago•5 comments

Tell HN: An update from the new Tindie team

82•altairprime•4d ago•49 comments

Making Postman load 60% Faster

2•vedkribhu•16h ago•1 comments

Tell HN: An app is silently installing itself on my iPhone every day

589•_-x-_•1w ago•188 comments

Tell HN: VS Code v1.117.0 automatically adds GitHub Copilot as your co author

108•adithyassekhar•3d ago•36 comments

Tell HN: Happy May Day

9•chrishill89•2d ago•5 comments

Claude Code dies with ANTHROPIC_API_KEY in cloud environment

14•sroussey•3d ago•2 comments

SlothDB a 5X Faster Alternative to DuckDB, ClickHouse DB

12•souravroy78•2d ago•6 comments

Ask HN: What Happened to the CS153 Videos

5•mapleleaf1921•1d ago•3 comments

Ask HN: Does Claude use 'prior' in a Bayesian sense more than English?

5•slake•2d ago•6 comments

Hyperscalers are buying all the chips to then rent them to us later

7•adelks•1d ago•4 comments

Tell HN: Claude 4.7 is ignoring stop hooks

109•LatencyKills•1w ago•88 comments

Claude Pro expired and my $40 in prepaid Extra Usage credits vanished

14•Aldipower•3d ago•6 comments

You've reached the end!