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

Robotics development made dead simple (open source)

18•Ekami•2d ago•5 comments

Protecting My Server and Knowing What It Does with Tailscale and Beszel

4•SyedFazil•5h ago•1 comments

Ask HN: Crooked Timber showed showed me a virus captcha, What now?

43•Jgoauh•18h ago•45 comments

Ask HN: What agentic AI ad optimization tool do you use?

3•smb06•6h ago•1 comments

Ask HN: How many AI agents do you actively use?

3•rjpruitt16•7h ago•13 comments

Tell HN: Our paid Claude AI subscription unavailable >1 week and no support

44•KellyCriterion•1d ago•21 comments

Ask HN: Is there a "mouse" for parallel work?

3•ckmar•9h ago•1 comments

Ask HN: Semi lucrative careers after tech?

13•hnthrow10282910•13h ago•6 comments

Ask HN: Sectors that are inherently resistant to AI-ification?

4•player_piano•13h ago•5 comments

Why I prefer Opus 5 to Fable 5

21•novlrdotcom•22h ago•11 comments

Ask HN: Can't we think out of the box to kill the tumor?

6•kinj28•15h ago•6 comments

Apple please cache my music

2•zirkuswurstikus•10h ago•0 comments

AI the Singularity and where we are

2•nathanyz•11h ago•0 comments

Point AI at a "Proven" Microkernel?

4•RantyDave•11h ago•1 comments

BMWs shows in-car ads for Spiderman

38•bigmattystyles•1d ago•17 comments

Repurpose Video Content in Text

2•cristyg0101•13h ago•1 comments

Ask HN: How do you use Copilot in the CLI, App, and IDE?

4•EspressoGPT•19h ago•1 comments

Competitors have more analysts. They should not know more than you

2•Shmungus•14h ago•0 comments

Ask HN: I lost any interest in technology. What do I do?

10•fnoef•14h ago•14 comments

Ask HN: How to rewrite `Claude.md` and install the skill for Opus5 and Fable5

5•hyhmrright•1d ago•6 comments

SOTA on the hardest AI memory benchmark (BEAM, 10M tokens), with a smaller model

2•johnnymakes•17h ago•3 comments

Ask HN: How do you audit your app for compliance?

3•Luxter•18h ago•0 comments

Internet is no longer accessible?

44•cute_boi•1d ago•25 comments

Ask HN: What are the most promising RL fields for a new master student?

35•zecice•2d ago•14 comments

Ask HN: How to deal with security implications of running/installing projects?

12•johng•1d ago•11 comments

Goodbye POSIX, Hello Tea Room: Inside MinervaOS Architecture

10•xentnex•1d ago•7 comments

Can anti-fraud make large-scale attacks unprofitable?

3•jezzwar•22h ago•1 comments

Ask HN: Thoughts on AMD Ryzen AI MAX+ 395 for Local AI?

3•mempirate•23h ago•4 comments

Ask HN: Is there legal risk in AI memory?

2•sarjann•23h ago•1 comments

You've reached the end!