frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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: What Is the State of App Development in 2026?

45•karakoram•3h ago•38 comments

NPM Packages Attacks

3•carlostkd•12h ago•1 comments

Ask HN: Any advice on how to learn good software architecture practices?

13•jimsojim•1d ago•8 comments

Ask HN: If I cancel Codex today whats the next best local inference agent?

9•Bulbasaur2015•1d ago•6 comments

Ask HN: How is your org managing PR review load as AI multiplies code output?

8•meteor333•22h ago•9 comments

Ask HN: What Is an "AI Engineer"?

17•seattle_spring•2d ago•29 comments

Ask HN: Does Claude Code remove the need for so many front-end frameworks?

10•ex-aws-dude•1d ago•12 comments

FYI: Dreamina is shady; do not use

4•ronyeh•1d ago•0 comments

Ask HK: How are you building AI apps today?

7•Mnexium•1d ago•6 comments

Ask HN: What Are You Thankful For?

7•chistev•9h ago•6 comments

Ask HN: What's the hardest problem you've ever solved?

10•chistev•10h ago•5 comments

Ask HN: Is anyone working at least 4 hours daily on an Apple Vision Pro?

152•widenrun•4d ago•110 comments

C++ CLI for folder encryption with AES-256-GCM and USB-based key loading

2•nextma•2d ago•0 comments

Ask HN: I found out that I'm about to be laid off. How do people find jobs?

22•wwwthrowaway256•2d ago•18 comments

Garnix, the Nix CI, is shutting down

12•cinericius•2d ago•4 comments

Ask HN: How do you feel about posts about GenAI taking over the HN front page?

12•blenderob•2d ago•17 comments

Train 1T parameter LLM with 8 GPUs?

3•kendy1992•2d ago•1 comments

A disk-first C++ vector engine

4•saeedq•1d ago•0 comments

Ask HN: Why not have an EU browser?

7•osigurdson•2d ago•20 comments

Do not use Cloudflare DNS regsitrar

11•talkingtab•1d ago•1 comments

Ask HN: Thoughts on the current state of tech meetups in the SF Bay Area?

4•Austin_Conlon•22h ago•1 comments

Sqlit – A lazygit-style TUI for SQL databases

20•MaxTeabag•4d ago•5 comments

Ask HN: How do you model temporarily invalid data structures

5•escot•3d ago•1 comments

Did the Linux memory management maintainer "just quit"?

17•hliyan•5d ago•3 comments

You've reached the end!