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: If OpenAI hacked HuggingFace, why aren't OpenAI prosecuted?

15•sam_lowry_•3h ago•23 comments

Ask HN: What changed in your life when you started meditating (and how)?

29•dondraper36•18h ago•23 comments

AWS: Inaccurate Estimated Billing Data – $1.7 billion

1314•nprateem•6d ago•755 comments

Ask HN: US Equivalent of Anabin?

14•xqb64•1w ago•5 comments

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

832•nicholasjbs•5d ago•107 comments

New Inference Server for DGX Spark: large model C4:55-90 tok/s no spec decode

4•medicis123•16h ago•0 comments

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

292•david927•1w ago•1143 comments

Ask HN: Will AI assistants become photorealistic video?

3•general_reveal•13h ago•2 comments

Ask HN: How to make AI better at writing prose?

3•remywang•13h ago•4 comments

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

27•kadhirvelm•1d ago•24 comments

Ask HN: Why can't Google create monopolies anymore?

5•BeForce•17h ago•4 comments

Build a website for AI pics for dating apps in 20 hours, launched ads, failed

3•MaximTsyg•17h ago•3 comments

Ask HN: Alternative Careers in the Age of AI

10•helpfulmandrill•1d ago•11 comments

Ask HN: How to get started with a sustainable bootstrapped business of your own?

3•romanovtexas•21h ago•4 comments

Ask HN: Anyone working on practical robotics (cobots) for the home?

3•bredren•21h ago•0 comments

Grok is a surprisingly good automated theorem prover

3•henryrobbins00•21h ago•1 comments

Building an AI-orchestrated publishing workflow for a long-form writing project

2•tmuhlestein•22h ago•0 comments

IMDB now automatically creating user accounts when you are signed into Amazon

6•terminalbraid•23h ago•9 comments

Ask HN: What websites do you visit every day?

9•b8•14h ago•9 comments

You've reached the end!