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 tools like customer.io abandon self-serve after their Series A?

13•alessandroetc•11h ago•3 comments

Taalas API Anyone?

2•revanthmatha•7h ago•2 comments

Encoding Myself into the System

3•nharziro•8h ago•2 comments

Ask HN: Where else do you spend time on the internet other than HN?

8•Gecko4072•16h ago•11 comments

I keep getting flagged for AI, but I suck at writing. How can I solve this?

5•quesobob•11h ago•8 comments

Ask HN: How about delayed MIT/GPL?

2•afiori•13h ago•1 comments

Tell HN: Even HN is getting heavy traffic by AI crawlers

8•ksec•14h ago•3 comments

Ask HN: How do you use artifacts, and how do they help in your projects?

2•AmirMakirr•15h ago•0 comments

Ask HN: Why are Claude models so verbose?

5•JacobWolf•1d ago•9 comments

Ask HN: Phished Microsoft account, recovery useless

3•tgmatt•16h ago•0 comments

Ask HN: Good large format (>20 inches) touchscreen E-Paper display options?

30•foota•2d ago•8 comments

Requests for Startups: Energy

2•NarcisMirandes•16h ago•3 comments

Ask HN: What are you using to access x.com at the moment?

5•throwaw12•1d ago•7 comments

Ask HN: Those making $500/month on side projects in 2026 – Show and tell

73•kaladan•2d ago•88 comments

Ask HN: How do you code review?

5•idose•1d ago•5 comments

Looking for people to follow designing systems to ship code with AI agents

7•mutahn•1d ago•1 comments

Ask HN: Are you still using AI code autocomplete?

4•jawuilp•17h ago•14 comments

Tell HN: Google Search to begin using opaque redirect URLs on search results

6•exploraz•19h ago•4 comments

One MCP directory for all docs.domain.tld (No auth needed)

3•respectattentio•19h ago•0 comments

Open source in-browser log sanitizer, feedback required

2•andriimb•23h ago•2 comments

Ask HN: Is what Open Commonplace legal?

3•VishnuShayeq01•23h ago•1 comments

Ask HN: Opus 5 is unusable for writing, even internal use. Alternatives/fix?

8•m3h•22h ago•3 comments

Ask HN: Why do you use Ubuntu?

4•flanked-evergl•23h ago•6 comments

Ask HN: Will RAM / NVMe / Platter Drives ever come back down in price?

4•krautburglar•18h ago•4 comments

You've reached the end!