frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•10mo 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•10mo 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•10mo ago
give https://pg.llmwhisperer.unstract.com/ a try

Ask HN: AI productivity gains – do you fire devs or build better products?

54•Bleiglanz•8h ago•81 comments

Ask HN: Apple terminated our dev account over a rogue employee

9•0x1f•1h ago•0 comments

Tell HN: MS365 upgrade silently to 25 licenses, tried to charge me $1,035

15•davidstarkjava•12h ago•7 comments

Anyone know how long it will take to re-start Qatar's helium plants?

8•megamike•14h ago•3 comments

I got laid off and realized how broken tech hiring is

8•nirvanist•3h ago•15 comments

Tell HN: H&R Block tax software installs a TLS backdoor

137•yifanlu•2d ago•10 comments

Ask HN: How are you securing LLM code agents?

3•woz_•6h ago•2 comments

Spotify playing ads for paid subscribers

147•IncandescentGas•4d ago•127 comments

Ask HN: what’s your favorite line in your Claude/agents.md files?

11•khasan222•1d ago•5 comments

Ask HN: Why isn't the NSA categorized as an APT?

5•TheOpenSourcer•1d ago•8 comments

Anchor: Hardware-based authentication using SanDisk USB devices

4•rewant•3d ago•1 comments

Structural Friction: A metric for human coordination cost

5•davidvartanian•2d ago•0 comments

Ask HN: What do you look for in your first 10 hires?

28•neilk17•3d ago•34 comments

Ask HN: Is operational memory a missing layer in AI agent architecture?

5•varunrrai•1d ago•0 comments

Ask HN: How do you deal with people who trust LLMs?

153•basilikum•3d ago•201 comments

European municipalities leak citizen data to US companies

11•sam_lowry_•2d ago•5 comments

Ask HN: Is vibe coding a new mandatory job requirement?

36•newswangerd•4d ago•74 comments

Ask HN: What features does a chip require to beat Nvidia in the AI race?

6•caloricflow•2d ago•12 comments

Ask HN: Have you cancelled any software subscriptions because AI replaced them?

10•maxim_bg•3d ago•14 comments

Ask HN: The new wave of AI agent sandboxes?

12•ATechGuy•2d ago•5 comments

TTal – CLI that turns Claude Code into a multi-agent software factory

5•neilbb•3d ago•4 comments

Ask HN: How to Find a Job in the UK

9•0x3444ac53•2d ago•9 comments

Ask HN: What are the greatest discoveries in the last few years?

14•chistev•1d ago•5 comments

Ask HN: Are you using a Pivotal Tracker successor? Which one?

2•antfarm•2d ago•3 comments

I built a game where you argue consumer rights against AI bots

7•dragonmann•3d ago•3 comments

Ask HN: Who is still using Windsurf and why?

10•mak8•3d ago•9 comments

Ask HN: Broken "Public Research Articles" Link: Any Support for Google Scholar?

4•yann-gael•2d ago•2 comments

Ask HN: Can we make up/downvotes/flags visible on Hacker News Archives (delayed)

6•gpt5•2d ago•1 comments

How are Iranian drones getting their guidance?

7•dottenad•2d ago•4 comments

You've reached the end!