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: Anthropic is accusing my company of distilling. How can I prove I'm not?

478•weli•4d ago•363 comments

Tell HN: Happy Thanksgiving

723•ericmay•2d ago•158 comments

Tell HN: Lots of Ask HNs again

414•dang•3d ago•155 comments

Ask HN: Why bother with new programming languages?

6•avilay•10h ago•11 comments

Ask HN: Is ChatGPT output format for chats purposely nerfed?

2•MrCoffee7•13h ago•9 comments

Ask HN: Who is still worried about copyright issues with AI generated code?

5•sonjaqql•23h ago•4 comments

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

27•8bitbeep•3d ago•65 comments

Ask HN: Why haven't LLMs made any CS breakthroughs?

7•elcritch•19h ago•5 comments

Ask HN: Is RSA in Jeopardy?

21•lyfeninja•3d ago•17 comments

DietPi released a new version v10.9

21•stephanstsdietp•2d ago•3 comments

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

82•akudha•2d ago•41 comments

I was hired by an AI agent

15•dev_chad•1d ago•20 comments

Tell HN: 0 Purchases This Thanks Giving

4•prakashn27•1d ago•4 comments

Which city do you live in?

5•Eyyup•1d ago•5 comments

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

4•aenis•1d ago•0 comments

If you're doing Monte Carlo try Knuth LGC

7•logicallee•1d ago•1 comments

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

23•LandOfMightDev•5d ago•46 comments

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

6•ChaitanyaSai•1d ago•0 comments

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

73•BTA_DoIt•2d ago•126 comments

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

12•unpaidtakehome•1d ago•11 comments

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

38•redleathercouch•4d ago•28 comments

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

4•sandeepkd•2d ago•9 comments

Ask HN: How do you handle corporate life?

6•busssard•3d ago•8 comments

Ask HN: Users asking to remove their commits under GDPR

8•punkpeye•1d ago•6 comments

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

9•natsu529•2d ago•5 comments

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

6•goodmythical•2d ago•7 comments

Ask HN: Will GPTs Get Stupider?

2•dfps•1d ago•2 comments

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

2•louiereederson•2d ago•8 comments

Ask HN: Security for the Small Developer

12•dvduval•3d ago•9 comments

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

13•orbanlevi•4d ago•23 comments