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: Are iPhone Duo Customers Happy?

4•rogerdickey•51m ago•0 comments

Ask HN: How to bring traffic to new product with out social media presence

3•vadigepalli•3h ago•3 comments

Ask HN: Most compelling early stage fund pitches?

3•bix6•3h ago•2 comments

Tell HN: HN is being scraped for emails to scam

120•eks391•18h ago•41 comments

Ask HN: What does building hardware with AI look like?

8•mjs06•1d ago•3 comments

Ask HN: What are you working on? (November 2026)

303•david927•1w ago•1094 comments

Ask HN: If AI tools are so good, why isn't your bug backlog empty?

36•ex-aws-dude•3h ago•63 comments

Tell HN: Google Search to start locking down search behind a login wall

46•exploraz•2d ago•30 comments

Ask HN: What is the state of self-hosting email in 2026?

47•0o777•3d ago•34 comments

ChatGPT Desktop forwards your SSH agent to remote machines

221•DenGorbachev•1w ago•80 comments

Vercel should fork and maintain Deno

15•gfalcao•2d ago•14 comments

Ask HN: Why don't operating systems provide complete SSD write accountability?

4•amichail•1d ago•3 comments

Ask HN: What do coding interviews look like in the age of AI?

10•frankhorrigan•1d ago•8 comments

Ask HN: Do you still enjoy coding in C++?

67•hasley•1w ago•92 comments

Tell HN: Cloudflare's abuse report form is a blank page

17•basilikum•2d ago•7 comments

Anthropic, can you please make up your mind with your models?

6•xlayn•1d ago•8 comments

Ask HN: What AI agent infrastructure are you using in 2026?

4•aurumagent•1d ago•2 comments

Ask HN: What are the most useful, concrete AI skills to independently learn?

91•shnock•2d ago•53 comments

Ask HN: Dropbox privacy policy, cause for concern?

11•herodoturtle•1d ago•3 comments

Ask HN: How did you convince family and friends to join your XMPP/Matrix server?

103•mtlynch•1w ago•99 comments

You've reached the end!