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

What would you do if you have AI software that may be transformers alternative?

2•adinhitlore•27m ago•0 comments

Ask HN: How much are you spending on AI coding at work?

3•habosa•37m ago•1 comments

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

84•Bleiglanz•16h ago•151 comments

Ask HN: How to get free/cheap Claude and AWS credits

3•jacAtSea•3h ago•2 comments

Ask HN: How do you handle peer-to-peer discovery on iOS without a server?

5•redgridtactical•5h ago•5 comments

SparkVSR: Video Super-Resolution You Can Control with Keyframes

2•steveharing1•6h ago•0 comments

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

18•davidstarkjava•19h ago•7 comments

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

8•megamike•21h ago•4 comments

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

139•yifanlu•2d ago•10 comments

Spotify playing ads for paid subscribers

147•IncandescentGas•4d ago•127 comments

I got laid off and realized how broken tech hiring is

9•nirvanist•10h ago•27 comments

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

13•khasan222•1d ago•7 comments

Ask HN: How are you securing LLM code agents?

3•woz_•13h ago•3 comments

Anchor: Hardware-based authentication using SanDisk USB devices

4•rewant•3d ago•1 comments

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

5•TheOpenSourcer•1d ago•8 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: How do you deal with people who trust LLMs?

153•basilikum•4d ago•201 comments

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

37•newswangerd•4d ago•75 comments

European municipalities leak citizen data to US companies

11•sam_lowry_•3d ago•5 comments

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

5•varunrrai•2d ago•0 comments

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

8•dragonmann•3d ago•3 comments

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

10•maxim_bg•3d ago•14 comments

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

6•neilbb•3d ago•4 comments

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

6•caloricflow•2d ago•13 comments

Ask HN: The new wave of AI agent sandboxes?

12•ATechGuy•3d ago•5 comments

Ask HN: How to Find a Job in the UK

9•0x3444ac53•3d ago•10 comments

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

14•chistev•2d ago•6 comments

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

2•antfarm•2d ago•3 comments

Ask HN: Who is still using Windsurf and why?

10•mak8•3d ago•9 comments