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

204•proberts•2d ago•247 comments

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

141•whoishiring•2d ago•370 comments

Ask HN: Who is hiring? (May 2026)

292•whoishiring•2d ago•358 comments

Ask HN: Is the Job Market Actually Bad?

117•idontwantthis•1d ago•188 comments

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

14•p5v•18h ago•6 comments

Building a Web Framework from Scratch

4•NewSmoke38•13h ago•1 comments

Tell HN: An update from the new Tindie team

83•altairprime•5d ago•49 comments

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

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

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

110•adithyassekhar•4d ago•38 comments

Making Postman load 60% Faster

2•vedkribhu•1d ago•1 comments

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

7•buffer_overlord•20h ago•7 comments

Claude Code dies with ANTHROPIC_API_KEY in cloud environment

14•sroussey•3d ago•2 comments

Tell HN: Happy May Day

10•chrishill89•2d ago•5 comments

SlothDB a 5X Faster Alternative to DuckDB, ClickHouse DB

12•souravroy78•3d ago•7 comments

Tell HN: Claude 4.7 is ignoring stop hooks

109•LatencyKills•1w ago•89 comments

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

5•slake•3d ago•6 comments

Ask HN: What Happened to the CS153 Videos

5•mapleleaf1921•2d ago•3 comments

You've reached the end!