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: Who is still worried about copyright issues with AI generated code?

2•sonjaqql•36m ago•0 comments

Tell HN: 0 Purchases This Thanks Giving

4•prakashn27•1h ago•2 comments

Which city do you live in?

3•Eyyup•1h ago•3 comments

Ask HN: Is anyone using Gemini Live (3.8) in scaled production

2•aenis•2h ago•0 comments

iPhone users are getting hacked

5•s_u_d_o•3h ago•0 comments

Tell HN: Happy Thanksgiving

721•ericmay•2d ago•157 comments

Ask HN: Anthropic is accusing my company of distilling. How can I prove I'm not?

477•weli•3d ago•362 comments

The Riemann Hypothesis proof written out as readable papers

12•dtrejopizzo•10h ago•1 comments

Tell HN: Lots of Ask HNs again

411•dang•2d ago•155 comments

Ask HN: Has AI started impacting hiring in your org?

3•ChaitanyaSai•7h ago•0 comments

Ask HN: Any courses/products by indie makers worth getting today?

82•akudha•1d ago•39 comments

I was hired by an AI agent

10•dev_chad•15h ago•12 comments

Ask HN: YC startup not paying for a take-home. What to do?

11•unpaidtakehome•13h ago•7 comments

Ask HN: Where is all the amazing AI-generated software?

26•8bitbeep•2d ago•60 comments

DietPi released a new version v10.9

21•stephanstsdietp•1d ago•2 comments

Ask HN: Is RSA in Jeopardy?

20•lyfeninja•2d ago•13 comments

Ask HN: Users asking to remove their commits under GDPR

8•punkpeye•17h ago•5 comments

Ask HN: Coworker rejects PR (a month in) because it does not meet his standards

23•LandOfMightDev•4d ago•46 comments

Ask HN: How do you find meaning of life at 41?

71•BTA_DoIt•1d ago•120 comments

Ask HN: How well do you understand what's going on inside RL?

9•natsu529•1d ago•5 comments

Ask HN: Will GPTs Get Stupider?

2•dfps•1d ago•2 comments

Ask HN: How do you handle corporate life?

6•busssard•2d ago•7 comments

Ask HN: Am I the only one whose AI hype is cooling down a lot?

38•redleathercouch•3d ago•28 comments

Ask HN: What's Going on with the Minecraft Rust Rewrite? (Horizon)

6•goodmythical•1d ago•7 comments

Ask HN: Would you care for more than 2FA for any of your accounts?

2•sandeepkd•1d ago•6 comments

Ask HN: Why can AI prove Riemann but not solve cust svc problems?

2•louiereederson•1d ago•8 comments

Ask HN: Security for the Small Developer

10•dvduval•2d ago•9 comments

What are your holiday decorating plans this year?

3•skyberrys•23h ago•0 comments

Ask HN: Its 2026 and there is still not good Email client for macOS. Why?

13•orbanlevi•3d ago•23 comments

Ask HN: If you had no limitations what would you build in AI?

11•NarcisMirandes•3d ago•33 comments