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:Why do websites today refuse to work on EDGE/2G?

2•DenisDolya•1h ago•1 comments

Ask HN: Responsible/trustable background check companies?

4•levinb•2h ago•0 comments

Ask HN: In your experience, what are sound conventions for e-ink UI development?

211•BoxOfRain•5d ago•72 comments

Ask HN: What do you think of this novel slider puzzle? [video, full rules, beta]

2•amichail•3h ago•2 comments

Ask HN: How's Everyone Feeling Today?

6•arm32•3h ago•6 comments

Remind HN: Perseid meteor shower peaks tonight

7•cjbarber•3h ago•0 comments

DeepSeek-V4-Pro-0813

5•uneven9434•3h ago•0 comments

Ask HN: GitHub project that showed all edits (somewhat proving human authorship)

3•4d66ba06•7h ago•1 comments

Bitbucket CLI

3•scr2em•7h ago•0 comments

Ed Zitron on CNBC Squawk Box Talking Nvidia, Unprofitable AI Labs

7•johnbarron•5h ago•0 comments

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

315•david927•3d ago•1152 comments

Ask HN: What are GitHub's push-farm botnets for?

4•ghspamwatch•8h ago•0 comments

Ask HN: Could DNA be represented as "an embedding" in an AI model?

3•greenmoonx•16h ago•1 comments

How do you keep PM tools in sync with what happens in WhatsApp/Slack?

2•Harish_0089•6h ago•0 comments

SETI@Home was the coolest thing

27•b112•2d ago•7 comments

Ask HN: How did you teach analog electronics to your kids?

7•felooboolooomba•1d ago•9 comments

You've reached the end!