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: Is anyone using the A2A protocol?

20•asim•11h ago•7 comments

Ask HN: What is the job market like?

46•gardnr•1h ago•39 comments

Ask HN: What tools are you using for AI-assisted code review?

6•agos•3h ago•2 comments

Ask HN: I'm lost. How can I define ICP (Ideal Customer Profile)?

3•snowhy•2h ago•1 comments

Ask HN: How do you effectively communicate or present?

6•hnthrow10282910•1h ago•3 comments

Ask HN: Conflicted about founding engineer role

3•gondolin1683•2h ago•8 comments

Ask HN: Is there a way to stop the animated Google Doodles?

8•arnejenssen•4h ago•8 comments

Anthropic confident of re-enabling Mythos, Fable 5 access 'in coming days'

3•getbowtied•2h ago•0 comments

Ask HN: Do you find vibe coding / agentic engineering to be fulfilling?

4•uejfiweun•2h ago•4 comments

Ask HN: Opus and regression with patterns not included in trainng data

2•dleech•3h ago•4 comments

Ask HN: Has anyone replaced Claude/GPT with a local model for daily coding?

1294•cloudking•3d ago•550 comments

Ask HN: Do we even need code anymore?

2•lasky•3h ago•5 comments

Ask HN: Best resources for learning how to build a forum back end?

3•jupr•6h ago•2 comments

Ask HN: Whats the best and small open source model?

3•hairymouse•6h ago•1 comments

Ask HN: What's a prompt you've written that you're genuinely proud of?

10•akashwadhwani35•15h ago•5 comments

Ask HN: How are thinking efforts implemented?

103•simianwords•1w ago•31 comments

I indexed 669 GB of my GoPro videos using my M1 Max computer and local ML models

435•iliashad•4d ago•114 comments

Ask HN: Looking for a CI/CD project for my local lab

4•q8zd3•9h ago•9 comments

AI Tokenmaxxing and Hypomania

6•karthikeyankc•10h ago•5 comments

Ask HN: Has anyone had success with SBIR grants and what is the process like?

10•lyfeninja•19h ago•8 comments

Ask HN: What are you working on? (June 2026)

310•david927•4d ago•1128 comments

Ask HN: Are other people seeing a spike in IT problems with businesses?

14•PaulHoule•1d ago•11 comments

Ask HN: Why hasn't there been a real competitor to Ticketmaster yet?

264•mdni007•1w ago•240 comments

Ask HN: Favorite text heavy blogs that are a joy to read?

119•joshmarinacci•1w ago•30 comments

AWS Bedrock to require sharing data with Anthropic for Mythos and future models

427•TomAnthony•1w ago•255 comments

Reviews have become expensive, rewrites have become cheap

82•_z6bq•2d ago•73 comments

Ask HN: Want to build something open source on nights and weekends together?

39•vira28•1w ago•18 comments

Notes on DeepSeek

211•vinhnx•1w ago•141 comments

Anthropic pauses credit change for Claude Code

35•fabianlindfors•2d ago•12 comments

Ask HN: How close to profitability did companies get before dot com burst?

5•AbstractH24•1d ago•0 comments