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: Is it impossible to disable Siri on macOS 27?

148•semidror•1d ago•80 comments

Is Claude 20x actually 20x?

4•ko3us•4h ago•2 comments

When Claude CLI asks for feedback, responding authorizes conversation capture

21•mmaunder•1d ago•2 comments

Ask HN: What do you expect from the next 5 years of AI?

4•msuniverse2026•5h ago•6 comments

Ask HN: Dead Internet

12•basilikum•17h ago•8 comments

Ask HN: Why does it matter if no one reads your novel as long as the AIs do?

9•amichail•17h ago•23 comments

How people are testing AI agents?

4•sanathbhat•7h ago•2 comments

Ask HN: How to recover Google auth after phone stolen?

120•keymasta•4d ago•130 comments

Ask HN: How do you interview devs in a post-AI world?

44•mdwelsh•2d ago•38 comments

Ask HN: My recent show HN post got flagged need guidance

6•theguysudo•1d ago•15 comments

Ask HN: Remember N8n? Anyone?

13•sankalpdomore•3d ago•10 comments

I'm addicted to buying domains for my vibe-coded apps that get 0 visitors

6•arpanghoshal•16h ago•6 comments

Neovim have a ~$800k Bitcoin donation sitting untouched since 2023

316•jakemanger•5d ago•275 comments

Ask HN: Diablo 4 on Ubuntu?

3•herodoturtle•1d ago•7 comments

Ask HN: What is the most interesting project you are working on?

10•skwasimin•23h ago•11 comments

Ask HN: Losing motivation to work in the IT field, need advice

22•trowa159•3d ago•28 comments

Some Thoughts on the Economics of UPI and MDR

6•pyeri•2d ago•0 comments

My Thoughts on AI and LLMs

14•leonardovb•3d ago•24 comments

Ask HN: What happens when Claude Code goes away?

10•HoldOnAMinute•3d ago•21 comments

Ask HN: Anyone using DeepSeek Harness (dsh) as part of a customer-facing agent?

5•mmartindevelope•2d ago•0 comments

ESP32 p4 pico and IMX477 camera

5•time-q•3d ago•1 comments

You've reached the end!