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

159•proberts•18h ago•215 comments

Ask HN: Who is hiring? (May 2026)

258•whoishiring•18h ago•278 comments

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

127•whoishiring•18h ago•277 comments

Ask HN: What Happened to the CS153 Videos

4•mapleleaf1921•3h ago•1 comments

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

60•evo_9•12h ago•20 comments

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

5•adelks•5h ago•2 comments

Tell HN: Happy May Day

6•chrishill89•17h ago•1 comments

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

73•adithyassekhar•2d ago•33 comments

Ask HN: What book have you given as a gift?

4•chistev•1h ago•9 comments

SlothDB a 5X Faster Alternative to DuckDB, ClickHouse DB

9•souravroy78•1d ago•4 comments

Claude Code dies with ANTHROPIC_API_KEY in cloud environment

12•sroussey•1d ago•2 comments

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

588•_-x-_•6d ago•188 comments

Ask HN: Is there any good open-source alternative to MinIO?

3•embedding-shape•16h ago•2 comments

Ask HN: GitHub flagged my org two weeks ago. No reason given, no appeal response

6•dohyun-ko•17h ago•0 comments

Tell HN: Claude Opus 4.7 quota suddenly changed to 0 TPM in Bedrock

12•sarathyweb•17h ago•5 comments

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

4•slake•1d ago•6 comments

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

12•Aldipower•1d ago•4 comments

What do you think of people buying Mac mini's to run AI?

4•namegulf•1d ago•18 comments

Tell HN: An update from the new Tindie team

80•altairprime•3d ago•49 comments

Ask HN: Anyone feel like they're just opting out of tech these days?

22•moomoo11•2d ago•13 comments

Claude.ai down again?

34•zh_code•2d ago•24 comments

Ask HN: Rant, Am I bad or is this a company with a poor tech culture?

6•apatheticonion•1d ago•25 comments

Tell HN: Claude 4.7 is ignoring stop hooks

109•LatencyKills•1w ago•88 comments

Ask HN: Is AI resulting in net revenue gain for non-tech companies?

10•jusonchan81•1d ago•9 comments

Ask HN: Is it still worth it to try to get a job in IT

8•morpheos137•2d ago•14 comments

What do you want to see in a next-generation GitHub in the age of AI?

4•skeedle•1d ago•7 comments

Ask HN: Is Anybody Using Codex?

4•cl3misch•1d ago•11 comments

Ask HN: Is it just me or is Claude Code getting worse?

32•e-nouri•3d ago•24 comments

You've reached the end!