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: Do you want a router that has DD-WRT pre-installed?

142•Ixander•2d ago•142 comments

Ask HN: CAD for wood working with LLM support?

2•reacharavindh•5h ago•2 comments

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

20•mhloo•19h ago•2 comments

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

579•IvanK_net•6d ago•345 comments

ChatGPT Plugin in Review for Weeks

2•dthedavid•9h ago•2 comments

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

775•lukehandcool•4d ago•245 comments

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

423•mariocesar•6d ago•664 comments

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

6•bigblind•17h ago•2 comments

In-car display of surrounding environment in AVs

2•ajahso4•19h ago•0 comments

Ask HN: What's your favorite children's books?

25•lgregg•2d ago•39 comments

Ask HN: What to Build in the AI Era?

11•le_curious•1d ago•18 comments

Ask HN: Is voice becoming your main input? What happens to open-plan offices?

4•ProblemExplorer•22h ago•10 comments

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

5•unbeholden•1d ago•4 comments

Ask HN: How do swarms of AI agents work?

9•dsrtslnd23•1d ago•6 comments

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

8•Kamabz•2d ago•2 comments

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

35•onemiketwelve•1w ago•18 comments

Tell HN: AIs Do Not Laugh

5•AnimalMuppet•22h ago•13 comments

Ask HN: What is the most obscure book you own?

8•Kovah•1d ago•11 comments

A hub that controls all your coding agents in one place

4•mubashir1osmani•1d ago•0 comments

I don't think image containers supporting both lossless and lossy is good

5•functionmouse•1d ago•1 comments

Chatcasting, an Alternative to Podcasting

7•tsydenzhap•2d ago•3 comments

Vibecoded 3D Game Running on Veda OS

3•vahmoh25•1d ago•2 comments

Ask HN: Would you support a law banning filming people in public?

9•dfps•2d ago•23 comments

Ask HN: Locked out of Google despite knowing password and having email access

9•coherenttemple•2d ago•3 comments

I am so tired of startups doing worse than me

9•sankde•2d ago•14 comments

Ask HN: Are you a subscribed LLM or a locally deployed open-source model?

12•hanstyle•4d ago•19 comments

Ask HN: What if no AIpocalypse, no AI bubble, what if it just keeps advancing?

16•consumer451•3d ago•33 comments

Ask HN: How would you go about domain change and getting a job in the domain?

5•joddystreet•2d ago•5 comments

All startups need is distribution

9•relaxfolio•2d ago•7 comments

Ask HN: Resources for best practices in software development with AI?

7•sergio-gdr•2d ago•3 comments