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

Is it possible to send a message in Morse code by un-following someone on x.com?

6•savhascelik•1h ago•12 comments

Ask HN: Who is hiring? (June 2026)

235•whoishiring•2d ago•381 comments

Ask HN: Why Ask HN has only 14 questions now?

3•throwaw12•15m ago•0 comments

Ask HN: Who wants to be hired? (June 2026)

143•whoishiring•2d ago•468 comments

Anyone seen a CC- serial prefix on legacy networking hardware?

67•Throwaway_sys•3d ago•31 comments

Ask HN: A Brief History of LLMs

8•menomatter•19h ago•4 comments

Ask HN: What is your opinion on index rule changes to accommodate Mega-Cap IPOs?

13•figmert•1d ago•7 comments

Ask HN: What Is the State of App Development in 2026?

100•karakoram•4d ago•70 comments

Please don't spam people looking for employment. It's just cruel

950•IliaLitviak•1d ago•267 comments

I'm Done Using AI

30•nyxtom•1d ago•19 comments

AI Goal: Senior Software Engineer

4•oryocyph•1d ago•5 comments

$100 to a Debian Developer who can get Fresh Editor into Trixie

28•jph•3d ago•14 comments

Ask HN: Why is AI use decried if it has been used without attribution?

5•bookofjoe•1d ago•7 comments

Recruiters, How do you vet resume in 2026?

15•CoffeeSky•3d ago•8 comments

Tell HN: In the old days, computers used to get constantly faster and cheaper

14•wewewedxfgdf•1d ago•19 comments

You've reached the end!