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

Ask HN: What are you working on (non-AI)?

18•BrunoBernardino•4h ago•24 comments

Ask HN: Why Reddit blocks all automated access but has .json for all URLs?

3•ksajadi•2h ago•3 comments

Ask HN: What are you working on? (May 2026)

279•david927•3d ago•1066 comments

Ask HN: We just had an actual UUID v4 collision...

470•mittermayr•5d ago•335 comments

agent-dash: TUI for managing Claude Code and OpenCode in tmux

3•fdarian•13h ago•0 comments

Rumors of my death are slightly exaggerated

1664•CliffStoll•1w ago•256 comments

Ask HN: If HTML supersedes Markdown fr AI, Will it be versatile enough for devs?

6•zameermfm•14h ago•19 comments

Ask HN: Is Spam getting worse or is Gmail getting worse?

7•adamtaylor_13•22h ago•7 comments

Ask HN: How to get started in electronic music

16•A_Random_Nerd•1d ago•16 comments

Ask HN: How are you preparing for interviews nowadays?

11•holden_nelson•1d ago•30 comments

Ask HN: Will low quality AI customer support be the new normal?

24•0-bad-sectors•2d ago•28 comments

Ask HN: Best static site generator for a docs site in 2026?

15•agenttestjekuqz•2d ago•12 comments

Ask HN: What happens when eventually all E2E mess. apps removed from app stores?

6•kingleopold•1d ago•3 comments

Our keyboards are tracking us

15•tukunjil•2d ago•7 comments

Ask HN: How often do you investigate issues in production vs. looking at logs?

4•aspectrr•2d ago•8 comments

Ask HN: How do you choose a model for a task?

10•bix6•2d ago•14 comments

Ask HN: Can a tinnitus be triggered by high frequency noises?

9•tinnitus_crazy•3d ago•17 comments

Remind HN: Today is Mother's Day, call your moms

377•rationalist•3d ago•164 comments

Ask HN: What Wintel/AMD (Laptop) Harware are you liking?

6•aagha•2d ago•0 comments

Ask HN: Do you know the ethics of Developers?

8•eropatori•2d ago•23 comments

You've reached the end!