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: What are some modern technologies that you refuse to adopt?

7•catstor•2h ago•5 comments

Ask HN: Struggling founders, pls share your startup struggle

5•vieews•5h ago•1 comments

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

17•jacobwilliamroy•14h ago•15 comments

Official gRPC Benchmark

2•bijan7•9h ago•0 comments

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

39•ramharts•1d ago•13 comments

Ask HN: Vitalik says that QC might break ECC before 2028. This is crazy, right?

8•jMyles•10h ago•3 comments

Tell HN: Cursor exposes side projects to your employer

24•throwawaybbbbbb•22h ago•16 comments

Ask HN: Have you ever seen a perfect codebase?

5•mcdow•12h ago•7 comments

Why doesn't someone just send the Epstein files to WikiLeaks?

8•aniken•9h ago•8 comments

Ask HN: Does anyone else feel like a 'manager' now, with AI?

9•keepamovin•22h ago•11 comments

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

34•clostao•3d ago•26 comments

Ask HN: What does "legacy code" mean to you?

7•Arperb•1d ago•14 comments

Ask HN: Am I the only one thinking ChatGPT 5.1 Thiking thinks for too long ?

5•davidguetta•1d ago•7 comments

Meta-algorithmic judicial reasoning engine

3•YuriKozlov•1d ago•0 comments

An exposed .git folder let us dox a phishing campaign

64•spirovskib•3d ago•21 comments

Ask HN: Why does Y Combinator seem to be consistently funding AI slop?

22•coldtrait•1d ago•13 comments

Built a Pomodoro timer for ADHD brains: always visible progress bar

17•raoarjun4•3d ago•3 comments

What is the most beautiful / highest quality code you've seen (or written)?

32•gooob•5d ago•16 comments

Semantic Query Engines with Matthew Russo (MIT)

4•CShorten•1d ago•0 comments

Ask HN: Reason for the DDoS attacks on DALnet circa 2002?

8•Meekro•1d ago•0 comments

Cloudflare is working again for my servers (US East)

3•potatowaffle•1d ago•1 comments

Ask HN: How do early-stage teams scale engineering quickly?

3•rayyanabrar76•2d ago•0 comments

Ask HN: How does one stay motivated to grind through LeetCode?

92•blutoot•1w ago•111 comments

Ask HN: Why All the Indonesian Spam?

22•al2o3cr•2d ago•7 comments

Ask HN: Engineers working AI tools. Are you working more or less?

19•taariqlewis•3d ago•21 comments

Ask HN: How to learn concurrency?

45•shivajikobardan•6d ago•20 comments

You've reached the end!