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: Where are the good search engines for mathematical formulas?

2•lo0dot0•1h ago•0 comments

Ask HN: Is anyone experimenting with different ways of using LLMs for coding?

178•yehiaabdelm•1d ago•182 comments

Happy Independence Day

25•GauntletWizard•6h ago•4 comments

Ask HN: America turns 250 today. What does it mean to you?

7•abixb•4h ago•1 comments

Ask HN: Who is hiring? (July 2026)

241•whoishiring•3d ago•308 comments

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

39•argee•3d ago•33 comments

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

147•whoishiring•3d ago•442 comments

Where can I find or get in contact with farmers specifically in the US?

4•strapchay•16h ago•5 comments

How many failed startups have you launched?

18•steelebillings•1d ago•11 comments

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

56•seattle_spring•2d ago•34 comments

Fable 5. Safety Taken to an Extreme

7•sergeysmirnov•13h ago•5 comments

Tell HN: Check your subscription renewals (VPNs, etc.). They cost too much

3•simonebrunozzi•5h ago•3 comments

Tell HN: Fewer PRs done with proper prompting, review, and refinement wins

6•tomerbd•1d ago•4 comments

SponsorBlock Critical Security Vulnerabilities

3•IDIRIS•1d ago•4 comments

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

247•zkldi•4d ago•34 comments

Tell HN: Old Reddit now requires login

86•jay_kyburz•2d ago•17 comments

Claude Fable is useless for bioinformaticians

6•iqbal1980•1d ago•6 comments

Well it's been 3 years of unemployment and $250k in debt

7•buffer_overlord•1d ago•5 comments

Cadreen – memory, governance, self-healing, and execution as one system

5•ope_john•22h ago•0 comments

Ask HN: Where is the programming profession going?

166•syntaxbush•1w ago•183 comments

Seattle Just Had an Earthquake

13•tobinfekkes•2d ago•9 comments

I'm opening VSCode less and less every day

21•othmanosx•2d ago•20 comments

Ask HN: Secure wrapper for coding agents?

20•rjzzleep•4d ago•19 comments

How do you test institutional (or algo) trades under real market conditions?

2•TradingReality•1d ago•0 comments

Ask HN: Procrastination with AI?

3•caprock•1d ago•2 comments

Ask HN: What did you fail at and what did you learn from it?

10•basilikum•23h ago•1 comments

Getting Rid of Scrolling

2•matteosaporiti•1d ago•1 comments

Ask HN: Possible issue impacting AWS Cloudwatch logs availability?

2•merek•1d ago•0 comments

Ask HN: Once you make your money from vibe coding innumerable products, then?

3•keepamovin•1d ago•11 comments

Ask HN: How do you get your open-source product good traction?

5•akarshhegde18•1d ago•3 comments