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: AI productivity gains – do you fire devs or build better products?

107•Bleiglanz•3d ago•203 comments

Ask HN: Is Antigravity code search dropping results recently?

3•sankalpnarula•14h ago•0 comments

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

12•udl•1d ago•4 comments

LLMs learn what programmers create, not how programmers work

37•noemit•2d ago•14 comments

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

4•noduerme•17h ago•16 comments

Tell HN: Slow Down

11•jacquesm•18h ago•5 comments

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

2•Alchemmist•19h ago•0 comments

Ask HN: Does the World need more software?

5•Vektorceraptor•1d ago•11 comments

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

36•taminka•1d ago•17 comments

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

29•jawerty•2d ago•26 comments

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

3•Kuraptka•1d ago•2 comments

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

9•latand6•2d ago•27 comments

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

11•makingstuffs•1d ago•13 comments

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

4•zane__chen•1d ago•12 comments

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

5•neal_caffrey•1d ago•4 comments

Is Trusttunnel easy for people to use?

2•AnonyMD•1d ago•0 comments

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

153•yifanlu•5d ago•13 comments

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

4•ymz5•1d ago•3 comments

Ask HN: Analog Model of Transformers

7•JPLeRouzic•1d ago•2 comments

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

11•klueinc•1d ago•20 comments

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

2•Servant-of-Inos•2d ago•3 comments

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

24•davidstarkjava•4d ago•8 comments

Anonymize / de-identify LLM chat history export, post-processing

2•msiraj1•2d ago•1 comments

Veevo Health – book a CT angiogram to see plaque buildup in your arteries

5•arvindsr33•2d ago•3 comments

Anyone know how long it will take to re-start Qatar's helium plants?

10•megamike•4d ago•6 comments

SparkVSR: Video Super-Resolution You Can Control with Keyframes

4•steveharing1•3d ago•0 comments

Ask HN: If there has been no prompt injection, is it safe?

7•sayYayToLife•2d ago•8 comments

You've reached the end!