frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•6mo 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•6mo 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•6mo ago
give https://pg.llmwhisperer.unstract.com/ a try

Ask HN: How are Markov chains so different from tiny LLMs?

201•JPLeRouzic•5d ago•185 comments

Ask HN: Is America in Recession?

7•register•11h ago•9 comments

Ask HN: How do you balance creativity, love for the craft, and money?

7•introvertmac•18h ago•8 comments

Ask HN: Is it time to measure Inflation and CPI without the government?

12•cyrusradfar•15h ago•4 comments

Ask HN: Where can you find old NetBSD packages?

11•GaryBluto•1d ago•4 comments

Ask HN: Working in a language that isn't your native one. How hard was it?

4•william-cooke•19h ago•13 comments

Warp Terminal Doing a Pricing Shock for Canadian Users – 10× Increase on Credits

3•osmosismartini•21h ago•3 comments

Ask HN: Can you share what you built using Cursor/Agentic IDEs?

4•ludamn•10h ago•2 comments

Ask HN: Current state of Android USB tethering?

8•namesarehard•1d ago•0 comments

Amex Architecture

3•nemsj•1d ago•0 comments

Ask HN: Are you still working with a website that requires Internet Explorer?

11•urnicus•1d ago•9 comments

Ask HN: How would you architect a RAG system for 10M+ documents today?

20•Ftrea•2d ago•4 comments

Facebook has made it impossible to delete Pages – dark patterns everywhere

46•ramharts•4d ago•16 comments

Ask HN: What is the current state of the art in BIG (>5TB) cloud backups?

21•jacobwilliamroy•3d ago•18 comments

Fun weekend task – Calculate your crypto relief or regret

3•shouldabought•1d ago•0 comments

Tell HN: Cursor exposes side projects to your employer

33•throwawaybbbbbb•4d ago•22 comments

Ask HN: Cloud providers are losing in favor of bare-metal?

35•clostao•6d ago•29 comments

You've reached the end!