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

Ask HN: Since when does Craigslist's front page have emojis?

19•argee•1d ago•22 comments

WhatsApp to roll out username system, allowing users to hide phone numbers

2•PetaTech-News•14m ago•1 comments

Ask HN: Why are so many "AI evangelists" posting such insufferable content?

14•seattle_spring•2h ago•13 comments

Ask HN: Who is hiring? (July 2026)

233•whoishiring•1d ago•264 comments

Stopping token burn because of agents sticking in a loop

2•driftguard•2h ago•0 comments

Ask HN: Who wants to be hired? (July 2026)

144•whoishiring•1d ago•380 comments

Ask HN: Will AI force CS to focus on what to build instead of how to build it?

2•amichail•2h ago•0 comments

Should I go open-source or give free trial and then charge the users?

2•akarshhegde18•2h ago•2 comments

Rust sort_unstable_by with more complex closure unexpectedly shrunk binary

5•tracyspacy•7h ago•2 comments

Tell HN: Old Reddit now requires login

80•jay_kyburz•1d ago•16 comments

Ask HN: What books did you enjoy reading recently?

3•JeanMeche•1h ago•2 comments

Seattle Just Had an Earthquake

11•tobinfekkes•14h ago•6 comments

Ask HN: First day using Fable – how was it?

3•akashwadhwani35•2h ago•1 comments

Ask HN: Why aren't companies hoarding AI talent?

3•playorizaya•8h ago•17 comments

I'm opening VSCode less and less every day

18•othmanosx•22h ago•15 comments

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

245•zkldi•2d ago•34 comments

Ask HN: What's the simplest way for me to get my AMEX data agentically?

2•artur_makly•4h ago•0 comments

Are Claude models broken with the Fable 5 update?

7•jackjd•22h ago•2 comments

Ask HN: What things might help me to become inference engineer?

4•chalshik•17h ago•3 comments

Ask HN: Secure wrapper for coding agents?

19•rjzzleep•2d ago•19 comments

Ask HN: Line by Line Agentic Coding

6•notshore•22h ago•4 comments

Tell HN: I'm not excited for Fable and am disappointed in Karpathy

6•behnamoh•1d ago•10 comments

Ask HN: What do you use computer mode for?

4•aryamaan•18h ago•0 comments

Ask HN: Where is the programming profession going?

165•syntaxbush•1w ago•183 comments

Ask HN: Is anyone running local LLMs in their organization?

5•harry8•19h ago•0 comments

Fable 5 Is Downgraded

7•RIshabh235•10h ago•7 comments

What Can't Fable Do?

3•alimhaq•23h ago•3 comments

Ask HN: Who is quitting? (July 2026)

165•ethanwillis•9h ago•134 comments

Ask HN: Who is this Steve T.?

3•jacobreddy•1d ago•4 comments

0/6 major aerospace documentation portals are AI Agent-ready

2•priyanshu-j•1d ago•0 comments