frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

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

Ask HN: Running legacy IE/ActiveX clients without local admin rights?

9•Servant-of-Inos•3d ago•8 comments

GitHub now requiring 2FA for all contributors,what authenticator apps you using?

6•nickcageinacage•6h ago•13 comments

Rses – cross-resume between Claude Code, Codex, and OpenCode

7•plawlost•9h ago•4 comments

Ask HN: AI productivity gains – do you fire devs or build better products?

110•Bleiglanz•4d ago•206 comments

Ask HN: At what point you decided to pursue your startup fulltime?

7•kathir05•9h ago•12 comments

Ask HN: How did you figure out what you wanted to do with your life?

10•icwtyjj•16h ago•22 comments

LLMs learn what programmers create, not how programmers work

38•noemit•2d ago•15 comments

Ask HN: Founders of estonian e-businesses – is it worth it?

13•udl•2d ago•5 comments

Ask HN: Is Antigravity code search dropping results recently?

5•sankalpnarula•1d ago•0 comments

Lazy Tmux – Lazy-loading tmux sessions with a tree view

3•Alchemmist•1d ago•0 comments

Ask HN: Is anyone here also developing "perpetual AI psychosis" like Karpathy?

30•jawerty•3d ago•26 comments

Ask HN: How do you feel when your coding assistant loses context?

4•noduerme•1d ago•16 comments

Tell HN: Slow Down

13•jacquesm•1d ago•7 comments

Ask HN: Is using AI tooling for a PhD literature review dishonest?

9•latand6•2d ago•28 comments

Ask HN: Does the World need more software?

5•Vektorceraptor•1d ago•14 comments

Tell HN: Russians may soon lose access to the global internet

41•taminka•2d ago•19 comments

Tell HN: H&R Block tax software installs a TLS backdoor

154•yifanlu•6d ago•15 comments

Ask HN: Any recommended engineering/dev related Slack channels?

4•Kuraptka•1d ago•2 comments

Ask HN: How do you offload all coding to AI?

12•makingstuffs•1d ago•13 comments

Ask HN: Do you feel less happy when coding with agent?

5•zane__chen•1d ago•14 comments

Does nobody care about not being able to copy from Slack anymore?

6•neal_caffrey•1d ago•4 comments

Is Trusttunnel easy for people to use?

2•AnonyMD•1d ago•0 comments

Tell HN: MS365 upgrade silently to 25 licenses, tried to charge me $1,035

24•davidstarkjava•4d ago•8 comments

Does it make sense to ask Blackberry to re-license ancient QNX sources?

4•ymz5•2d ago•3 comments

Ask HN: Analog Model of Transformers

7•JPLeRouzic•2d ago•2 comments

Ask HN: $50 monthly budget, which coding models would you recommend now?

13•klueinc•2d ago•22 comments

You've reached the end!