frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

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

Ask HN: Share your personal website

932•susam•4d ago•2366 comments

Ask HN: Is it still worth pursuing a software startup?

177•newbebee•1d ago•213 comments

Tell HN: Poshmark instantly leaked my email to scammers

6•hardenedmetapod•7h ago•7 comments

Ask HN: How are you doing RAG locally?

408•tmaly•4d ago•156 comments

Ask HN: How to bullet proof yourself from AI?

10•max_•8h ago•6 comments

Ask HN: Are cross-platform UI frameworks suitable for camera apps?

2•Austin_Conlon•6h ago•2 comments

Ask HN: How can we solve the loneliness epidemic?

781•publicdebates•3d ago•1218 comments

Ask HN: How to get a job after a career break?

8•shivajikobardan•9h ago•2 comments

Ask HN: What did you find out or explore today?

216•blahaj•4d ago•425 comments

Ask HN: Claude Opus performance affected by time of day?

38•scaredreally•2d ago•36 comments

Ask HN: Is replacing an enterprise product with LLMs a realistic strategy?

6•chandmk•18h ago•6 comments

Ask HN: What is the best voice input mechanism on Linux (2026)?

2•orsenthil•4h ago•0 comments

Tell HN: YouTube gave my username switzerland to a half government organization

36•faebi•2d ago•9 comments

Ask HN: One IP, multiple unrealistic locations worldwide hitting my website

42•nacho-daddy•3d ago•25 comments

Tell HN: The way I do simple data management for new prototypes

12•AndreyK1984•2d ago•8 comments

Ask HN: Iran's 120h internet shutdown, phones back. How to stay resilient?

114•us321•5d ago•100 comments

Ask HN: How have you or your firm made money with LLMs?

10•bwestergard•2d ago•8 comments

Ask HN: Browser extension vs. native app for structured form filling?

5•livrasand•2d ago•5 comments

Ask HN: How do you safely give LLMs SSH/DB access?

82•nico•4d ago•106 comments

Ask HN: Why is Google tolerating impersonation of Gmail from it's own domain?

6•dvh•17h ago•1 comments

Why are websites trying to talk at me?

2•LeratoAustini•17h ago•4 comments

Tell HN: Google Trust and Safety is a joke

4•tokyobreakfast•19h ago•2 comments

Ask HN: Who's using DuckDB in production?

7•yakkomajuri•2d ago•4 comments

The $LANG Programming Language

264•dang•4d ago•70 comments

Ask HN: What are your best purchases under $100?

82•krishadi•3d ago•233 comments

Tell HN: YouTube disabled advanced subtitling, and is stripping it from old vids

7•mister_mort•22h ago•0 comments

Ask HN: How to make spamming us uncomfortable for LinkedIn and friends?

12•zx8080•3d ago•7 comments

Ask HN: Distributed SQL engine for ultra-wide tables

23•synsqlbythesea•4d ago•20 comments

I built visual search for tattoo artists

3•rbaten•1d ago•1 comments

Ask HN: ADHD – How do you manage the constant stream of thoughts and ideas?

120•chriswright1664•5d ago•148 comments