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

If you don't opt out by Apr 24 GitHub will train on your private repos

550•vmg12•2h ago•248 comments

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

80•udl•3d ago•45 comments

Tell HN: Pangram is easily-defeatable with Claude

2•nunez•5h ago•1 comments

Claude API Error: 529

22•anujbans•12h ago•10 comments

I built a $15k Mac app for a random Reddit user

3•fujilovesapps33•2h ago•0 comments

Repsy – A lightweight, open-source alternative to Nexus/Artifactory

3•nuricanozturk•11h ago•0 comments

Ask HN: What do you use for normative specs to drive AI agents?

3•midnight_eclair•8h ago•0 comments

Ask HN: TCP/IP Illustrated e2 of v2 & v3?

3•mayureshkathe•4h ago•1 comments

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

12•nickcageinacage•1d ago•31 comments

Ask HN: How do you deal with obvious AI assistant usage in interviews

5•stackdestroyer•1d ago•18 comments

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

16•icwtyjj•1d ago•32 comments

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

10•plawlost•1d ago•5 comments

LLMs learn what programmers create, not how programmers work

40•noemit•4d ago•20 comments

Ask HN: Personalized mRNA cancer vaccines, how real is the pipeline today?

6•imnotlost•1d ago•4 comments

Ask HN: Is Antigravity code search dropping results recently?

6•sankalpnarula•2d ago•0 comments

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

5•Alchemmist•2d ago•0 comments

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

31•jawerty•4d ago•29 comments

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

9•latand6•4d ago•29 comments

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

44•taminka•3d ago•21 comments

Ask HN: Does the World need more software?

6•Vektorceraptor•3d ago•17 comments

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

8•kathir05•1d ago•15 comments

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

4•noduerme•2d ago•16 comments

Tell HN: Slow Down

14•jacquesm•2d ago•7 comments

You've reached the end!