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: How to deal with shipping AI-written code you don't understand?

441•rzk•22h ago•586 comments

CPU-native. Deterministic. O(1) processes. – the Old New Coolness

2•KathiaGatterer•1h ago•1 comments

Triplet of 'Ghostly' Galaxies Hints at What Dark Matter Is – and Isn't

22•gumby•2d ago•4 comments

Revolut down – Global ATM withdrawals and bank transfers failing

11•TomAnthony•2h ago•7 comments

Ask HN: How to get the most intelligence out of your agents?

6•thechairman12•4h ago•11 comments

Ask HN: Dark mode for HN please? (2026)

14•Stitch4223•8h ago•8 comments

Ask HN: What have you built privately with AI that you'd like to share?

4•erelong•8h ago•12 comments

Ask HN: What's your SSH terminal workflow like?

2•otherayden•5h ago•3 comments

Anyone migrate off Google Voice?

8•thomas536•8h ago•4 comments

Ask HN: What happened to open weights models?

4•sparse-Matrix•11h ago•2 comments

Ask HN: Do you know Bitbucket are chaning their SSH endpoints?

3•mcrmonkey•22h ago•0 comments

Ask HN: Bring-your-own-AI hardware

2•flying_sheep•9h ago•0 comments

Ask HN: Why HN dosen't have bot problem?

7•solarpunk_enthu•18h ago•7 comments

Ask HN: Any good technical podcasts to listen to while driving?

4•0-bad-sectors•12h ago•2 comments

Ask HN: How do you deal with AI output of your boss?

17•okr•2d ago•15 comments

Ask HN: Why can't Ukraine use LoRA instead of Starshield?

4•xrd•14h ago•4 comments

Ask HN: How do you cap what your coding agents can spend?

2•Twirled•1d ago•0 comments

Tell HN: I picked up knitting while waiting for my AI agent to complete

8•amelius•1d ago•0 comments

Tell HN: Getting spam after commenting on monthly Who's Hiring posts. Who else?

6•yosito•18h ago•1 comments

Ask HN: Beyond traces, how do you know your agent did the job?

3•rstagi•18h ago•1 comments

Ask HN: Do you also feel that it's impossible to keep up with AI?

4•simonebrunozzi•1d ago•2 comments

Ask HN: What are you working on?

7•tha_infra_guy•1d ago•12 comments

Ask HN: New Outlook` sends everything through Microsoft Servers

4•NicoJuicy•1d ago•4 comments

Talk like Paul Dirac – fewer words is better

10•asen•2d ago•16 comments

Ask HN: Is anyone still running Token Ring or FDDI networks?

12•robotnikman•3d ago•3 comments

Ask HN: How can we stop UX people from changing UIs to get promotions?

7•ex-aws-dude•2d ago•5 comments

Tell HN: Massive amount of spam from "Who Wants to be hired"

10•0xmattf•1d ago•5 comments

Ask HN: System One models for autonomous agents

3•manlymuppet•1d ago•2 comments

Ask HN: What Got You into Rust?

4•cloaky233•2d ago•4 comments

Why do computers/phones have a restart option along with the power off option?

7•saonnet•2d ago•12 comments