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: Where has creativity in software gone?

17•piratesAndSons•6h ago•14 comments

Ask HN: Do you want a router that has DD-WRT pre-installed?

154•Ixander•3d ago•146 comments

Domain Health

7•anjalibery•8h ago•1 comments

Ask HN: What do you think will be hot in 2027 with on-device AI

4•mrburton•5h ago•0 comments

Ask HN: CAD for wood working with LLM support?

3•reacharavindh•1d ago•3 comments

Tell HN: GitHub refuses to remove cracked copies of my software after a month

583•IvanK_net•1w ago•347 comments

Tell HN: ChatGPT on macOS grants local computer access to cloud account

6•lxgr•10h ago•1 comments

Tell HN: I've been paying for a rural Tanzanian's education for 10 years

778•lukehandcool•5d ago•245 comments

Ask HN: How do you review code nowadays?

8•waylandsmithers•12h ago•6 comments

Ask HN: What do you run on a $5 VPS that's worth keeping online 24/7?

424•mariocesar•1w ago•669 comments

Free and Open-Source Facebook Scraper – Lightweight, No Headless Browser

21•mhloo•1d ago•2 comments

JNISleuth-MCP – Recover Stripped JNI Bindings and Ollvm Branches for Ghidra/Ida

2•akdapunk•16h ago•0 comments

Ask HN: Anyone using Jev / other decision models? What for?

4•simonw•16h ago•6 comments

Ask HN: Could you find funding if you didn't want to build a $1-10B business?

8•FrenchDevRemote•6h ago•3 comments

ChatGPT Plugin in Review for Weeks

4•dthedavid•1d ago•4 comments

Ask HN: What to Build in the AI Era?

16•le_curious•2d ago•25 comments

Ask HN: How does your organization make build vs. buy decisions now?

8•bigblind•1d ago•2 comments

Ask HN: Are there AI models for generating sounds based on a text and reference?

35•onemiketwelve•1w ago•18 comments

In-car display of surrounding environment in AVs

3•ajahso4•1d ago•0 comments

Ask HN: How do swarms of AI agents work?

12•dsrtslnd23•2d ago•8 comments

Ask HN: Fake abuse reports keep auto-blocking my site on Cloudflare

8•Kamabz•3d ago•2 comments

Ask HN: How do you build a reputation without social media?

7•unbeholden•1d ago•5 comments

You've reached the end!