frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

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

Tell HN: An app is silently installing itself on my iPhone every day

540•_-x-_•1d ago•182 comments

Ask HN: Anyone want to collaborate on a local-first AI-based research assistant

4•venkatram-s•8h ago•1 comments

Tell HN: Claude 4.7 is ignoring stop hooks

94•LatencyKills•2d ago•86 comments

Ask HN: How I find a job where what is needed is solid code, not firefighting?

18•speeder•15h ago•7 comments

Ask HN: Do you read differently now that anything could be AI generated?

16•dwa3592•1d ago•21 comments

Tell HN: Medvi (telehealth) hardcodes 999 patient emails in public JavaScript

14•g48ywsJk6w48•1d ago•16 comments

Ask HN: Which is Better–Android or iOS?

9•wasimsk•12h ago•7 comments

Batteries Included CLI Framework

9•maxalbarello•1d ago•7 comments

Ask HN: Is anyone working on Gov Digital IDs or have implementation docs / FOSS

6•lifeisstillgood•1d ago•2 comments

Ask HN: What file sharing apps do you guys use?

9•samarthv•1d ago•10 comments

Ask HN: Anyone managed to get Google trends API?

12•visox•1d ago•1 comments

Ask HN: Oh, What Places to Go (Seriously Tho)

11•thx•1d ago•7 comments

Ask HN: Is Zuckerberg just a „one-hit-wonder"?

22•fandorin•1d ago•26 comments

Ask HN: How did the industry settle on weekly limits?

9•saratogacx•1d ago•8 comments

Ask HN: How do solo devs protect their work in the age of vibe coding?

32•langs•3d ago•15 comments

Ask HN: MicroVM setup for VS Code Dev Container-like experience?

10•Erndob•2d ago•2 comments

Tell HN: Anthropic won't reset usage limits for those who downgraded

16•vintagedave•2d ago•0 comments

Ask HN: Do you waste AI assisted time looking for answers?

7•Haeuserschlucht•1d ago•2 comments

Tell HN: YouTube RSS feeds no longer work

48•019•3d ago•14 comments

Ask HN: Scaling a targeted web crawler beyond 500M pages/day

27•honungsburk•2d ago•10 comments

Ask HN: What to Expect in 2030s?

13•alexander2002•17h ago•10 comments

GPT-5.5 – No ARC-AGI-3 scores

25•AG25•3d ago•3 comments

Ask HN: Chrome, Brave, Firefox or Something Else?

22•wasimsk•2d ago•20 comments

Ask HN: Cyberdecks are cool but do they serve a purpose?

9•hamiecod•1d ago•2 comments

Hey, it's Earth Day today

30•burnt-resistor•4d ago•18 comments

Tell HN: Codex macOS app switches to Fast speed after update without asking

22•mfi•2d ago•1 comments

Anthropic bans orgs without warning

45•alpinisme•5d ago•20 comments

Ask HN: Any recommendataions for exporting data from Amazon?

13•coreyp_1•2d ago•2 comments

Ask HN: Why are companies so distrustful of remote employees?

28•lyfeninja•3d ago•24 comments

How to Attend the Altman vs. Musk Trial

17•major4x•1d ago•2 comments