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

Ask HN: How do solo devs protect their work in the age of vibe coding?

7•langs•4h ago•4 comments

GPT-5.5 – No ARC-AGI-3 scores

8•AG25•9h ago•3 comments

Tell HN: YouTube RSS feeds no longer work

29•019•1d ago•13 comments

Ask HN: Dear astronomers, what are the most interesting things in space lately?

10•simonebrunozzi•7h ago•3 comments

Can non-developer build commercial products with AI

2•rkorlimarla•11h ago•5 comments

Ask HN: How to solve the cold start problem for a two-sided marketplace?

147•alegd•3d ago•163 comments

Hey, it's Earth Day today

19•burnt-resistor•1d ago•13 comments

Ask HN: Would you take a job programming VMS?

10•smackeyacky•21h ago•19 comments

Ask HN: How are you handling data retention across your stack?

2•preston-kwei•1d ago•3 comments

Need advice: Back end engineer → infrastructure: how do you make the transition?

6•gokuljs•1d ago•4 comments

Ask HN: What's your favorite Emacs package?

5•blenderob•17h ago•5 comments

Tell HN: My open-source project hit 5k registered users

17•darkhorse13•2d ago•7 comments

Ask HN: Are cloud coding agents useful in real workflows yet?

3•Rperry2174•1d ago•3 comments

Anthropic bans orgs without warning

32•alpinisme•2d ago•16 comments

Ask HN: What skills are future proof in an AI driven job market?

34•sunny678•3d ago•75 comments

Opus 4.7 vs. 4.6 after 3 days of real coding side by side from my actual session

14•agentseal•4d ago•6 comments

OpenClaw stats don't add up

10•iliaov•2d ago•8 comments

Ask HN: What Would Make Stack Overflow Great Again?

10•nnurmanov•2d ago•25 comments

Ask HN: Are there any engineering orgs that use incentives?

3•jppope•2d ago•7 comments

Ask Anthropic: Requesting clarity on Claude -p situation

5•andai•2d ago•0 comments

My file access workaround for cron in Tahoe

4•noduerme•2d ago•2 comments

GPT 5.5 Released in Codex

16•zuzululu•2d ago•3 comments

Getting back into photography, ditching the phone camera in 2026?

7•eigenhombre•3d ago•6 comments

Ask HN: What makes a good Product Manager

11•chairhairair•4d ago•10 comments

Ask HN: Is GitHub's #1 repo fake? build-your-own-x 491K stars

11•throwawaysoso•3d ago•3 comments

You've reached the end!