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: Is AI code verification becoming your main bottleneck?

4•ochidaniel4•4h ago•2 comments

Ask HN: How are you finding the job market in 2026?

4•dzonga•3h ago•2 comments

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

212•BoxOfRain•5d ago•72 comments

Ask HN: Why Connected Home Appliances?

3•ripe•5h ago•5 comments

Ask HN:Why do websites today refuse to work on EDGE/2G?

5•DenisDolya•8h ago•2 comments

Ask HN: Are there any production LLM pipeline setups to learn from?

4•atif089•11h ago•0 comments

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

315•david927•3d ago•1155 comments

Ask HN: Responsible/trustable background check companies?

5•levinb•10h ago•0 comments

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

3•amichail•11h ago•3 comments

Ask HN: How's Everyone Feeling Today?

11•arm32•11h ago•10 comments

Ask HN: How do you envision the AI Software Factory?

2•DavidHaerer•11h ago•0 comments

Human task board for my agents

2•jbdamask•11h ago•0 comments

We built a job board where the employers aren't human. Here's what broke

4•Taskpoolai•12h ago•4 comments

Remind HN: Perseid meteor shower peaks tonight

10•cjbarber•10h ago•0 comments

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

3•4d66ba06•15h ago•1 comments

Bitbucket CLI

4•scr2em•15h ago•0 comments

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

4•ghspamwatch•16h ago•1 comments

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

7•johnbarron•12h ago•0 comments

DeepSeek-V4-Pro-0813

5•uneven9434•10h ago•0 comments

SETI@Home was the coolest thing

27•b112•2d ago•7 comments

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

3•greenmoonx•1d ago•1 comments

You've reached the end!