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•10mo ago
give https://pg.llmwhisperer.unstract.com/ a try

Tell HN: Fiverr left customer files public and searchable

49•morpheuskafka•2h ago•5 comments

Ask HN: Are Web Agencies Cooked?

7•mijustin•1h ago•3 comments

Ask HN: What's your favorite security cam system?

3•SunshineTheCat•3h ago•2 comments

Ask HN: What standards or protocols exist for AI Agent permissions

2•lyfeninja•4h ago•1 comments

Tell HN: GitHub might have been leaking your webhook secrets. Check your emails.

20•ssiddharth•4h ago•4 comments

Ask HN: Who needs contributors? (April 2026)

16•Kathan2651•7h ago•6 comments

Ask HN: What Are You Working On? (April 2026)

334•david927•2d ago•1132 comments

PersMEM: Persistent Semantic Memory and Multi-Instance Communication for AI

3•asixicle•5h ago•0 comments

Tell HN: Docker pull fails in Spain due to football Cloudflare block

1130•littlecranky67•2d ago•416 comments

Ask HN: I quit my job over weaponized robots to start my own venture

107•barratia•9h ago•72 comments

If what you're doing seems impossible: in 1903 NYT said planes are impossible

3•adinhitlore•6h ago•3 comments

Tell HN: OpenAI silently removed Study Mode from ChatGPT

182•smokel•2d ago•77 comments

Claude Code OAuth down for >12 hours

7•pixel_popping•13h ago•7 comments

Technical SEO vs. content optimization: which one moves rankings?

3•zensorsolutions•13h ago•2 comments

Ask HN: LeetCode, anyone still doing it?

7•kwar13•15h ago•7 comments

Ask HN: What are you building that's not AI related?

151•meander_water•5d ago•220 comments

Why most AI projects feel useless

7•vaishcodescape•1d ago•5 comments

Ask HN: What makes it so hard to keep LLMs online?

3•realberkeaslan•1d ago•8 comments

Tell HN: Another Monday, Another Claude Outage

6•ericol•1d ago•1 comments

Ask HN: What's the best AI model for system design nowadays?

5•jcremona•1d ago•8 comments

Ask HN: Hiring in the age of AI-assisted coding: what works?

28•nitramm•4d ago•18 comments

Ask HN: What should I do with my app? 130 downloads 3 real subscribers

6•oyaa52•2d ago•15 comments

How do you validate your GTM Efforts?

3•pranaywankhede•1d ago•4 comments

Ask HN: Are you negatively affected by the recent economic stagnation?

5•adinhitlore•1d ago•14 comments

Ask HN: Is Codex really on Par with Claude Code?

12•shivang2607•1d ago•16 comments

Ask HN: Do you trust AI agents with API keys / private keys?

17•devendra116•2d ago•29 comments

Ask HN: What are you using OpenClaw or agents for?

8•bmau5•23h ago•5 comments

Ask HN: Anyone using Nostr as a lightweight back end/DB for rapid prototyping?

6•wasimsk•2d ago•2 comments

Ask HN: Best books on building a programming language

18•ezzato•3d ago•9 comments

Tell HN: Reddit now demands to know why you won't use their app

20•josephcsible•1d ago•28 comments