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

OpenAI $500 ProMax plan listed in API

12•GustavHartz•8h ago•10 comments

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

29•platevoltage•1d ago•38 comments

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

153•semidror•4d ago•86 comments

Any nerds out there who've read a lot of research papers?

6•shriy-singh•20h ago•11 comments

Ask HN: Are .shop domains down?

4•esher•23h ago•7 comments

Ask HN: What job boards are good these days?

21•phendrenad2•2d ago•16 comments

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

21•itsjeremiahs•2d ago•17 comments

Tell HN: Substack obfuscating text to break reading mode

16•xnx•2d ago•4 comments

Understanding Runtime Governance for Enterprise AI Deployment

4•thespotlessmind•1d ago•5 comments

When Claude CLI asks for feedback, responding authorizes conversation capture

25•mmaunder•4d ago•2 comments

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

5•d675•1d ago•9 comments

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

10•kooldeep7•2d ago•13 comments

I Built a Wine Atlas

5•keremiis•1d ago•5 comments

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

13•Hex08•1d ago•19 comments

Ask HN: Why so many dead comments lately?

10•mattm•1d ago•10 comments

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

4•grigio•2d ago•10 comments

Ask HN: Declarative vs. Imperative

2•KenPainter•2d ago•5 comments

LinkedIn is a terrible quality website

23•skyfantom•2d ago•15 comments

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

11•amichail•3d ago•28 comments

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

4•erwindegroot•2d ago•7 comments

ask HN:Are we locking ourselves in the Google ecosystem?

6•KinetiNode•1d ago•9 comments

You've reached the end!