frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

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

Tell HN: Installing Cursor on iOS irreversibly changes your privacy settings

237•zkldi•17h ago•34 comments

Ask HN: Secure wrapper for coding agents?

19•rjzzleep•22h ago•12 comments

Ask HN: Where is the programming profession going?

165•syntaxbush•6d ago•181 comments

From Slop to Determinism – Shifting the Narrative Space

2•pyeri•7h ago•1 comments

Ask HN: Should I buy mac studio M4 max or macbook M5 pro?

4•akarshhegde18•18h ago•9 comments

Ask HN: Is Codex with GPT 5.5 Extra High being dumbed down?

5•setnone•20h ago•5 comments

The open source DOCX editor submitted to HN a few weeks ago has been deleted

106•gcanyon•4d ago•44 comments

Ask HN: Is "no source code was copied" still a sufficient copyright defense?

66•oscgam1•4d ago•81 comments

Is aerc better than neomutt now?

5•hardikxk•1d ago•1 comments

Ask HN: Homeless, Former Software Developer, What Now?

15•current_robot•1d ago•17 comments

Ask HN: How much coding should beginners learn in the AI era?

41•JohnDSDev•6d ago•57 comments

Ask HN: What do SRE do at your company?

9•petemc_•2d ago•10 comments

Ask HN: MacBook vs. Dedicated GPU for LLM

37•mzubairtahir•4d ago•71 comments

Ask HN: How do you handle QA at a startup with no QA team? Genuinely curious

4•ovi_firstqa•1d ago•14 comments

Ask HN: Mullvad Alternatives?

18•rpastuszak•1d ago•12 comments

Ask HN: Books about Genetic Algorithms

14•andyjohnson0•2d ago•9 comments

Everyone feared AI taking over; the real danger is AI serving just the few

113•PhilipDaineko•3d ago•79 comments

Ask HN: What do you predict the world will look like in 5-10 years?

12•justanything•3d ago•22 comments

Ask HN: What GUI/desktop app do you use to keep track of different AI sessions?

6•howToTestFE•4d ago•6 comments

I patched llama.cpp to gain 20% prompt processing TPS. Help me make a PR

6•i_am_rocoe•3d ago•2 comments

Ask HN: Smallest amount of working ML weights that can be tattooed on a body?

8•thoughtpeddler•3d ago•8 comments

Ask HN: Norway bans AI in elementary schools

19•mellosty•5d ago•21 comments

You've reached the end!