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

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

142•whoishiring•1d ago•401 comments

Ask HN: Did GitHub remove the stargazers list?

4•reconnecting•2h ago•0 comments

Ask HN: Who is hiring? (August 2026)

220•whoishiring•1d ago•238 comments

Ask HN: Dear Anthropic, can we please have thought traces back?

6•exabrial•13h ago•6 comments

Ask HN: What is a good format for a tool to report data to a LLM?

5•michaelmure•11h ago•6 comments

ArXiv

4•fred123123•17h ago•0 comments

Ask HN: What was your big failure? How did you get around it?

6•jspann•14h ago•4 comments

How to Pivot?

5•noreplydev•16h ago•5 comments

Ask HN: Can we direct AI on our personal projects during work hours?

3•rpnx•17h ago•6 comments

Why remote roles are region specific and not 100% remote?

3•moizrocky1•18h ago•9 comments

An agent built for Mobile

2•technicalbot•18h ago•0 comments

Tell HN: Seedance 2.5 API Pricing

4•JimsonYang•19h ago•1 comments

The LLMs Problems

2•noreplydev•20h ago•3 comments

Ask HN: What if there was an 8th day of the week?

9•cyanregiment•13h ago•6 comments

How did Wikipedia layout become so bloated?

22•countWSS•22h ago•29 comments

Ask HN: Does AI research need "world models" more than bigger LLMs?

3•unjuno•1d ago•2 comments

You've reached the end!