frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

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

Ask HN: What Are You Working On? (Nov 2025)

457•david927•6d ago•1343 comments

What is the most beautiful / highest quality code you've seen (or written)?

27•gooob•1d ago•13 comments

Why is Apache still popular even as Nginx has proven its mettle on performance?

6•pyeri•16h ago•10 comments

Ask HN: How to learn concurrency?

39•shivajikobardan•1d ago•18 comments

Ask HN: Anyone else hate the GitHub Android app

3•raffraffraff•18h ago•4 comments

Ask HN: Is Computer Science still a good choice?

19•speedylight•1d ago•30 comments

Ask HN: How does one stay motivated to grind through LeetCode?

85•blutoot•3d ago•104 comments

Ask HN: Are Agents Just Hype?

6•spacemnstr42069•1d ago•8 comments

Ask HN: How would you set up a child’s first Linux computer?

226•evolve2k•6d ago•298 comments

Ask HN: Could Microsoft replace its CEO with ChatGPT?

24•nothrowaways•3d ago•38 comments

Ask HN: How common is banning Docker?

9•martypitt•1d ago•12 comments

Why isn't everyone using Cerebras?

3•tghack•1d ago•1 comments

Ask HN: Interviewing currently (or recently)? how have interviews changed?

4•akudha•1d ago•1 comments

Ask HN: Looking for a good course to learn proof assistant Lean 4

5•rabarbers•1d ago•3 comments

Ask HN: Senior people, how did your career evolve?

83•Seb-C•4d ago•51 comments

Tell HN: X is opening any tweet link in a webview whether you press it or not

647•stillatit•1w ago•519 comments

Ask HN: Who is hiring? (November 2025)

400•whoishiring•1w ago•580 comments

Ask HN: My family business runs on a 1993-era text-based-UI (TUI). Anybody else?

316•urnicus•1w ago•308 comments

Ask HN: How do you handle logging and evaluation when training ML models?

3•calepayson•1d ago•2 comments

Ask HN: How Do Developers Stay Up to Date Without Being on Twitter All Day?

4•jerawaj740•6h ago•9 comments

The Lotus program analysis framework

2•cutelimination•2d ago•0 comments

Ask HN: What's your solution to tech addiction?

5•asim•1d ago•9 comments

Ask HN: How do you get over the fear of sharing code?

75•sodokuwizard•6d ago•91 comments

You've reached the end!