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: How do I find startups that are looking for a dev? How to approach them?

3•need_a_work23•23m ago•1 comments

Ask HN: Is anyone giving out tokens for benchmarking LLMs?

3•emosenkis•1h ago•1 comments

Tell HN: ChatGPT exports do not contain all conversation messages

2•afpx•1h ago•0 comments

Tell HN: Namecheap gave my account to an unverified third party

462•Thrashed•20h ago•171 comments

Ask HN: How to get in touch with Paddle (MoR)

6•probst•7h ago•1 comments

Ask HN: Why call it "inference" instead of just "model hosting"?

4•bluebic•47m ago•4 comments

Ask HN: How much software do you build for yourself these days?

4•lellow•4h ago•6 comments

Ask HN: Has your typing gotten worse with AI?

2•aizk•4h ago•5 comments

Single-click and remote OpenCode session right in the browser

2•jashandeep31•6h ago•0 comments

A VSCode extension for AI to understand your project

2•bailingyuan•6h ago•2 comments

Ask HN: Any Good Pi.dev Setups?

3•galsapir•7h ago•1 comments

Ask HN: Is there a website that tracks excessive writes to SSDs in OS/app betas?

30•amichail•1d ago•26 comments

Ask HN: If OpenAI hacked HuggingFace, why aren't OpenAI prosecuted?

27•sam_lowry_•1d ago•35 comments

Ask HN: Convince me to not to shelve my app (I've decided to)

2•asdfbank•10h ago•2 comments

Ask: Why does everything Microsoft create lately feel fragile and half-baked?

10•nothrowaways•21h ago•12 comments

Pixel phones getting ad notifications

7•explodes•17h ago•7 comments

Ask HN: Is HN's duplicate url detection broken?

4•khaledh•14h ago•1 comments

Ask HN: What Linux distro do you daily drive?

22•addajones•18h ago•47 comments

How to Resolve Software Deployment Issues with SeaTicket

2•Daniel-Pan•15h ago•0 comments

Ask HN: What changed in your life when you started meditating (and how)?

31•dondraper36•1d ago•26 comments

Doesn't OpenAI have every incentive to destroy HuggingFace?

7•jrm4•20h ago•2 comments

Ask HN: What verb best describes what a developer does in 2026?

4•jdlib•21h ago•6 comments

Where to find inspiration for a (reactive) personal website?

2•mryingster•21h ago•2 comments

Ask HN: Have you noticed an improvement in AI responses with memory disabled?

3•zbikowski•22h ago•1 comments

Naming a pattern in AI-generated code: Modular Mirage

2•ErsanG•10h ago•0 comments

Ask HN: How do people keep track of organizational knowledge?

29•kadhirvelm•2d ago•24 comments

You've reached the end!