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: Claude Code or Codex?

8•czeizel•5h ago•18 comments

AWS: Inaccurate Estimated Billing Data – $1.7 billion

1308•nprateem•4d ago•754 comments

Ask HN: I am building a app to deep search bookmarks from browser, X etc.

4•shafkathullah•4h ago•2 comments

Ask HN: Will Anthropic or OpenAI start offering Chinese open source models?

3•Risse•1h ago•6 comments

Thanks HN for 15 years of support and helping me find my life's work

824•nicholasjbs•3d ago•106 comments

Is surveillance risk chilling your online speech?

65•Webstir•9h ago•59 comments

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

289•david927•1w ago•1136 comments

Ask HN: Is there a Moore's Law equivalent for compute/energy use?

6•cwmoore•18h ago•1 comments

Ask HN: If you're running LLM bots on HN, can you at least report results?

6•shtack•16h ago•1 comments

Ask HN: How are you interviewing engineers in this agentic era?

6•jcgr•13h ago•1 comments

Ask HN: Favourite science history book of the 20th century?

9•bawis•19h ago•12 comments

Tell HN: TIL accessing old.reddit.com now requires accounts

14•nanis•15h ago•5 comments

Ask HN: Are Rust migrations delivering any benefits?

4•grandimam•19h ago•4 comments

Ask HN: Has anyone here used YC's Paxel?

2•voxleone•19h ago•1 comments

What is LLMs and why is it so important?

4•anitroves•19h ago•4 comments

Ask HN: What are your favorite blogs not about AI?

90•azhenley•1d ago•38 comments

LG ThinQ Terms of Use

64•tedggh•2d ago•30 comments

Ask HN: Is anyone using MCP notifications?

3•ilbert•21h ago•4 comments

Ask HN: I stopped fighting AI over-reliance and built a workflow around it

4•dimonb19a•22h ago•4 comments

I Forgot to Get Excited

5•bkaae•22h ago•4 comments

Help: Using reflection to discovery and invoke methods

2•ddddazed•22h ago•1 comments

Ask HN: Claude's Unexpected Blind Test: Users = Data = Value?

2•Leewen•22h ago•0 comments

Ask HN: Add flag for AI-generated articles

1095•levkk•1w ago•458 comments

Apple should let us schedule work-hours notifications for specific apps

3•hellowastaken•23h ago•7 comments

Is OpenCode and Kimi K3 better than Claude Code?

2•vijayst•9h ago•5 comments

Turning the NES into a thermometer using the PPU's $2002 open-bus decay

3•erspicu•1d ago•0 comments

Ask HN: Is it just me, or is software buggier across the board?

136•kadhirvelm•5d ago•114 comments

You've reached the end!