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: Users asking to remove their commits under GDPR

3•punkpeye•32m ago•1 comments

Ask HN: Isn't it time we promote conversation rather than d*wnr*nking it?

4•bbor•42m ago•2 comments

Tell HN: Happy Thanksgiving

718•ericmay•1d ago•157 comments

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

472•weli•3d ago•361 comments

Tell HN: Lots of Ask HNs again

410•dang•1d ago•155 comments

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

80•akudha•1d ago•39 comments

DietPi released a new version v10.9

18•stephanstsdietp•1d ago•2 comments

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

24•8bitbeep•2d ago•57 comments

Ask HN: Are the trades a safe career transition?

89•Rd6n6•5d ago•126 comments

Ask HN: Is RSA in Jeopardy?

18•lyfeninja•2d ago•10 comments

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

65•BTA_DoIt•1d ago•117 comments

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

2•sandeepkd•15h ago•4 comments

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

8•natsu529•16h ago•5 comments

Ask HN: How do you handle corporate life?

5•busssard•1d ago•5 comments

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

2•louiereederson•19h ago•7 comments

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

22•LandOfMightDev•3d ago•46 comments

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

5•goodmythical•23h ago•7 comments

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

37•redleathercouch•3d ago•27 comments

Ask HN: Security for the Small Developer

9•dvduval•1d ago•9 comments

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

11•NarcisMirandes•2d ago•32 comments

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

12•orbanlevi•3d ago•23 comments

Ask HN: Everything will get breached. How do you limit the blast radius?

20•humbleferret•3d ago•16 comments

Why are so many services using email magic links for login?

20•bfbf•3d ago•18 comments

Shirudo doesn't work, this does

3•ok_major_9889•1d ago•0 comments

Ask HN: For professional Mathematicians –- about your career in the future

6•markus_zhang•2d ago•4 comments

Ask HN: If I broke prime factorization, who should I tell?

8•fercircularbuf•1d ago•14 comments

Ask HN: How to manage "crown jewel" files?

5•DLA•2d ago•3 comments

Ask HN: Is a college degree still necessary for a programmer?

10•vmuhammadsaid20•4d ago•23 comments

Does anyone gets hired with himalaya, well found or other remote hiring sites?

4•rohansrma•3d ago•5 comments

Ask HN: Best VPS Hosting in 2026?

9•CM30•2d ago•13 comments