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: Hearing aid wearers, what's hot?

175•pugworthy•7h ago•89 comments

Ask HN: Good resources to learn financial systems engineering?

118•_1tan•17h ago•23 comments

Don't obsess with security and privacy unless they are your core business

4•amano-kenji•3h ago•2 comments

Malware in PostHog NPM packages

6•roskoalexey•1h ago•5 comments

Ask HN: What tools do you pay for today that feel overpriced or frustrating?

5•psicombinator•6h ago•2 comments

Why isn't There a open-source (project) game?

3•triilman•9h ago•6 comments

Tell HN: Wanted to Give Dang Appreciation

28•razodactyl•10h ago•2 comments

Ask HN: Looking for a donated PC or laptop for freelance work

18•PikoBeam•22h ago•9 comments

ZetaShare Building private file transfer with WebRTC

3•masterdegrees•12h ago•0 comments

Ask HN: Is America in Recession?

17•register•1d ago•24 comments

Ask HN: Advice for feeling like a failure in PhD?

5•phdthrowaway1•18h ago•1 comments

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

12•introvertmac•1d ago•9 comments

Boring Laser Eyes Simulator: Add laser beams to your eyes with your webcam

3•frankhsu•2d ago•0 comments

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

8•william-cooke•1d ago•15 comments

Ask HN: Where could I find early adopters?

4•nonmaskable•13h ago•1 comments

Ask HN: Where can you find old NetBSD packages?

12•GaryBluto•2d ago•5 comments

Ask HN: First Steps with a Patent Troll?

10•throwawaynvmbr•1d ago•11 comments

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

16•cyrusradfar•1d ago•6 comments

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

46•ramharts•5d ago•16 comments

Ask HN: Current state of Android USB tethering?

8•namesarehard•2d ago•0 comments

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

4•osmosismartini•1d ago•3 comments

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

22•jacobwilliamroy•4d ago•21 comments

Fun weekend task – Calculate your crypto relief or regret

6•shouldabought•2d ago•1 comments

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

11•urnicus•2d ago•10 comments

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

21•Ftrea•3d ago•8 comments

Amex Architecture

4•nemsj•2d ago•0 comments

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

7•ludamn•1d ago•5 comments

Tell HN: Cursor exposes side projects to your employer

34•throwawaybbbbbb•5d ago•22 comments

Ask HN: Struggling founders, pls share your startup struggle

16•vieews•4d ago•19 comments

Restaurant Shift Scheduling via Linear Optimization and Staff Constraints

2•emmahexa•3d ago•10 comments