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: US Equivalent of Anabin?

13•xqb64•1w ago•4 comments

Ask HN: How do people keep track of organizational knowledge?

20•kadhirvelm•16h ago•22 comments

AWS: Inaccurate Estimated Billing Data – $1.7 billion

1311•nprateem•5d ago•754 comments

Thanks HN for 15 years of support and helping me find my life's work

828•nicholasjbs•4d ago•107 comments

Ask HN: What's your experience with GPT-Live been like?

7•caveman23•17h ago•7 comments

Ask HN: What Are You Working On? (July 2026)

290•david927•1w ago•1138 comments

Ask HN: GitHub CVE Delays?

4•ioseph•11h ago•0 comments

Ask HN: Apple Is Broken?

5•dogomatic•13h ago•3 comments

Ask HN: Post active but comments got flagged

2•spirosoik•13h ago•1 comments

Ask HN: Personal Goal Setting Method (Jim Rohn)

2•urnicus•15h ago•0 comments

Ask HN: Claude Code or Codex?

13•czeizel•1d ago•28 comments

We're (Skyfall AI) acquiring SaaS startups and running them with AI as CEO

3•anousha_606•16h ago•0 comments

Ask HN: SOFTWARE IS PROVIDED WITHOUT WARRANTY – does this do anything?

3•fkdk•16h ago•5 comments

Halo v2.7: Unified MCP Tool Engine for AI Security

2•automajicly•16h ago•0 comments

If HF was breached, should we expect OpenAI to face criminal charges?

5•arm32•9h ago•1 comments

Ask HN: Why 1Password extension pushing debug logs in the browser console?

2•pixelpanic360•19h ago•2 comments

Ask HN: I am building a app to deep search bookmarks from browser, X etc.

5•shafkathullah•1d ago•4 comments

Ask HN: Why AI labs publish different benchmarks?

2•mzubairtahir•7h ago•0 comments

Ask HN: Claude Blind Test Results: Bug or Feature?

2•Leewen•19h ago•0 comments

Ask HN: Are LLMs replacing open-source ecosystems for personal project codes?

2•malteg•20h ago•0 comments

Ask HN: Which model do you use with Pi coding agent?

5•theaniketmaurya•21h ago•3 comments

You've reached the end!