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

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

4•gooob•1h ago•1 comments

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

455•david927•5d ago•1334 comments

Why isn't everyone using Cerebras?

3•tghack•4h ago•1 comments

Ask HN: Is Computer Science still a good choice?

16•speedylight•12h ago•22 comments

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

3•akudha•5h ago•0 comments

Ask HN: Are Agents Just Hype?

4•spacemnstr42069•6h ago•5 comments

Ask HN: How to learn concurrency?

34•shivajikobardan•22h ago•18 comments

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

2•calepayson•9h ago•1 comments

Ask HN: How common is banning Docker?

9•martypitt•15h ago•11 comments

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

4•asim•12h ago•9 comments

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

5•rabarbers•17h ago•0 comments

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

84•blutoot•2d ago•103 comments

Ask HN: Could Microsoft replace its CEO with ChatGPT?

23•nothrowaways•1d ago•36 comments

Ask HN: What metrics do you track in a Conversational Agent?

4•shubhamintech•17h ago•0 comments

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

220•evolve2k•5d ago•296 comments

The Lotus program analysis framework

2•cutelimination•1d ago•0 comments

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

80•Seb-C•3d 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: My family business runs on a 1993-era text-based-UI (TUI). Anybody else?

316•urnicus•1w ago•308 comments

Ask HN: Who is hiring? (November 2025)

400•whoishiring•1w ago•580 comments

Ask HN: What do you do while LLM is writing code

8•me551ah•1d ago•13 comments

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

74•sodokuwizard•5d ago•90 comments

Ask HN: Effective way to deal with mosquitoes?

19•simonebrunozzi•3d ago•34 comments

Ask HN: What open source LLM agent do you guys use and why?

6•_345•1d ago•2 comments

You've reached the end!