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:Are we locking ourselves in the Google ecosystem?

5•KinetiNode•2h ago•8 comments

Ask HN: I just talked to an AI-obsessed client, and I need a shower afterwards

17•platevoltage•13h ago•15 comments

Understanding Runtime Governance for Enterprise AI Deployment

4•thespotlessmind•10h ago•2 comments

Ask HN: What job boards are good these days?

17•phendrenad2•1d ago•14 comments

Ask HN: Is it impossible to disable Siri on macOS 27?

152•semidror•3d ago•85 comments

AI startups with hyper ARR growth – what's happening inside these companies?

4•d675•15h ago•3 comments

Anyone using a Wispr Flow alternative that is non-cloud?

21•itsjeremiahs•1d ago•17 comments

I Built a Wine Atlas

4•keremiis•19h ago•3 comments

Tell HN: Substack obfuscating text to break reading mode

13•xnx•1d ago•3 comments

Ask HN: Do you offload your coding to AI, or keep your skills sharp?

12•Hex08•22h ago•16 comments

Ask HN: Why so many dead comments lately?

9•mattm•22h ago•6 comments

Ask HN: Which harness do you use with Qwen3.8 27B? And why?

3•grigio•1d ago•10 comments

LinkedIn is a terrible quality website

20•skyfantom•1d ago•10 comments

Ask HN: Declarative vs. Imperative

2•KenPainter•1d ago•4 comments

Ask HN: When is fine-tuning a small LLM worth it?

9•kooldeep7•1d ago•13 comments

Ask HN: How do GitHub Copilot and Anthropic Claude compare in cost?

3•erwindegroot•1d ago•5 comments

When Claude CLI asks for feedback, responding authorizes conversation capture

23•mmaunder•3d ago•2 comments

Ask HN: Can you suggest an interesting skill?

4•skwasimin•20h ago•11 comments

Ask HN: Which is cheaper: ChatGPT tokens or a 2nd Pro 20x subscription?

3•yesitcan•1d ago•4 comments

Ask HN: How do your teams share and distribute agent skills?

3•juanviera23•1d ago•3 comments

Tell HN: Firefox's default browser check dark pattern triggers Windows BSOD

5•xeonmc•2d ago•1 comments

Ask HN: Dead Internet

16•basilikum•2d ago•12 comments

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

10•amichail•2d ago•27 comments

Porting a clearing-house money market to a smart contract

3•citizensinan•1d ago•0 comments

You've reached the end!