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

200•proberts•1d ago•241 comments

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

136•whoishiring•1d ago•330 comments

Ask HN: Is the Job Market Actually Bad?

103•idontwantthis•16h ago•154 comments

Ask HN: Who is hiring? (May 2026)

284•whoishiring•1d ago•316 comments

Tell HN: An update from the new Tindie team

81•altairprime•4d ago•49 comments

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

106•adithyassekhar•3d ago•36 comments

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

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

SlothDB a 5X Faster Alternative to DuckDB, ClickHouse DB

11•souravroy78•2d ago•5 comments

Claude Code dies with ANTHROPIC_API_KEY in cloud environment

13•sroussey•2d ago•2 comments

Ask HN: What Happened to the CS153 Videos

5•mapleleaf1921•1d ago•3 comments

Tell HN: Happy May Day

8•chrishill89•1d ago•3 comments

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

6•adelks•1d ago•3 comments

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

4•slake•2d ago•6 comments

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

3•embedding-shape•1d ago•4 comments

Tell HN: Claude 4.7 is ignoring stop hooks

109•LatencyKills•1w ago•88 comments

Tell HN: Claude account suspension after flagging duplicate billing

8•areoform•1d ago•0 comments

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

13•Aldipower•2d ago•5 comments

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

7•dohyun-ko•1d ago•0 comments

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

12•sarathyweb•1d ago•6 comments

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

22•moomoo11•3d ago•15 comments

Claude.ai down again?

34•zh_code•3d ago•24 comments

You've reached the end!