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

Tell HN: Happy Fathers Day

300•consumer451•15h ago•46 comments

Ask HN: Do you have an unusual income source

24•xupybd•3h ago•4 comments

Ask HN: Are you being "529 Overloaded" by Anthropic too?

6•hmokiguess•7h ago•2 comments

My Opinion on RL

2•umjunsik132•6h ago•0 comments

GitHub Banned All CI for Our (OSS) Org Because of Bad Drive-By Contributors

7•BlueMatt•6h ago•1 comments

Ask HN: What would justify writting an OS kernel in 2026?

4•alonsovm44•8h ago•5 comments

Ask HN: Will programmers write more efficient code during the memory shortage?

148•amichail•2d ago•239 comments

Ask HN: How should I convert Microsoft Word documents to Markdown?

4•lkrubner•12h ago•7 comments

Ask HN: Is anyone using the A2A protocol?

94•asim•3d ago•42 comments

Ask HN: Are You a Workaholic?

5•julienreszka•20h ago•2 comments

Ask HN: What tools are you using for AI-assisted code review?

24•agos•3d ago•25 comments

Norrin – Git/ diff control in Claude Code

3•gagewoodard•17h ago•1 comments

Ask HN: After you ship a feature, what happens to what you learned?

10•gaggle_dk•1d ago•12 comments

Ask HN: Favorite aspects of Cocoa/NeXTSTEP for app dev?

5•elcritch•1d ago•0 comments

Ask HN: What are your favourite Hacker News comments?

4•Imustaskforhelp•1d ago•4 comments

Ask HN: How to get ideas for space startups?

5•asxndu•1d ago•5 comments

Ask HN: What technique do you use to make Claude Code deterministic?

6•hbarka•1d ago•10 comments

Ask HN: What do you care about? What is your joy and purpose?

9•bix6•1d ago•20 comments

Ask HN: What is your #1 practical lesson or "aha" moment from coding with AI?

9•johndavid9991•1d ago•15 comments

Ask HN: Do you use Claude Code, Codex, or something else?

8•JohnDSDev•1d ago•23 comments

Forked CozoDB to give agents cognitive primitives

3•shanrizvi•2d ago•0 comments

Ask HN: How to handle kernel struct changes (e.g. iov_iter) in eBPF?

4•morolis•1d ago•2 comments

Ask HN: Do you give AI coding agents their own GitHub account?

5•ahmd•18h ago•4 comments

Ask HN: Need advice on distributing and testing what I build

5•darth-pixit•1d ago•2 comments

Ask HN: Is anyone else leaving AUR?

8•lordkrandel•3d ago•7 comments

Ask HN: What is the coolest tech progress outside AI?

15•vantareed•2d ago•9 comments

Tell HN: Happy Father's Day

10•atestu•20h ago•5 comments

Ask HN: I'm lost. How can I define ICP (Ideal Customer Profile)?

5•snowhy•3d ago•6 comments

Ask HN: Do you find vibe coding / agentic engineering to be fulfilling?

12•uejfiweun•3d ago•13 comments

Ask HN: Is there a way to stop the animated Google Doodles?

12•arnejenssen•3d ago•14 comments