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

935•susam•4d ago•2371 comments

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

182•newbebee•2d ago•221 comments

Ask HN: How are you doing RAG locally?

409•tmaly•4d ago•156 comments

Ask HN: How many local logins do you have on your computer?

6•bahmboo•11h ago•9 comments

Ask HN: How can we solve the loneliness epidemic?

787•publicdebates•3d ago•1221 comments

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

217•blahaj•4d ago•427 comments

Ask HN: 1 year from today what will have been the worst behavior from AI corps?

3•keepamovin•9h ago•4 comments

Ask HN: How to bullet proof yourself from AI?

15•max_•20h ago•15 comments

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

38•scaredreally•2d ago•36 comments

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

10•shivajikobardan•22h ago•2 comments

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

38•faebi•3d ago•9 comments

Tell HN: Poshmark instantly leaked my email to scammers

7•hardenedmetapod•20h ago•8 comments

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

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

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

115•us321•5d ago•100 comments

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

12•AndreyK1984•3d ago•8 comments

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

10•bwestergard•2d ago•9 comments

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

7•chandmk•1d ago•6 comments

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

6•livrasand•2d ago•5 comments

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

83•nico•4d ago•106 comments

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

2•Austin_Conlon•19h ago•3 comments

The $LANG Programming Language

265•dang•5d ago•70 comments

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

84•krishadi•3d ago•234 comments

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

12•zx8080•4d ago•8 comments

Ask HN: Distributed SQL engine for ultra-wide tables

23•synsqlbythesea•4d ago•20 comments

Ask HN: Who's using DuckDB in production?

7•yakkomajuri•2d ago•4 comments

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

122•chriswright1664•5d ago•148 comments

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

6•dvh•1d ago•1 comments

Why are websites trying to talk at me?

2•LeratoAustini•1d ago•4 comments

Ask HN: Vxlan over WireGuard or WireGuard over Vxlan?

46•mlhpdx•5d ago•83 comments

Ask HN: Do you think college is/was worth it?

8•hallole•2d ago•12 comments