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: Are cross-platform UI frameworks suitable for camera apps?

2•Austin_Conlon•1h ago•1 comments

Ask HN: When has a "dumb" solution beaten a sophisticated one for you?

50•amadeuswoo•1w ago•64 comments

Ask HN: Share your personal website

926•susam•4d ago•2363 comments

Tell HN: Poshmark instantly leaked my email to scammers

5•hardenedmetapod•2h ago•5 comments

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

174•newbebee•1d ago•210 comments

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

6•shivajikobardan•4h ago•1 comments

Ask HN: How to bullet proof yourself from AI?

6•max_•3h ago•3 comments

Ask HN: How are you doing RAG locally?

406•tmaly•4d ago•156 comments

Ask HN: How can we solve the loneliness epidemic?

779•publicdebates•3d ago•1214 comments

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

216•blahaj•4d ago•408 comments

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

6•chandmk•14h ago•7 comments

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

38•scaredreally•2d ago•36 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

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

5•dvh•12h ago•1 comments

Why are websites trying to talk at me?

2•LeratoAustini•12h ago•4 comments

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

12•AndreyK1984•2d ago•8 comments

Ask HN: What are you working on? (January 2026)

256•david927•1w ago•877 comments

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

10•bwestergard•2d ago•8 comments

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

114•us321•5d ago•99 comments

Tell HN: Google Trust and Safety is a joke

4•tokyobreakfast•14h ago•2 comments

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

5•livrasand•1d ago•5 comments

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

82•nico•4d ago•106 comments

Ask HN: Who's using DuckDB in production?

7•yakkomajuri•1d ago•4 comments

The $LANG Programming Language

264•dang•4d ago•70 comments

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

82•krishadi•2d ago•231 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•3d ago•20 comments

Tell HN: DigitalOcean's managed services broke each other after update

76•neilfrndes•5d ago•50 comments

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

120•chriswright1664•4d ago•148 comments