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: What do your technical interviews look like today? (Nov 2026)

4•Heap4112•14m ago•1 comments

Ask HN: Personal "Tears in the Rain" Moments

9•HoldOnAMinute•4h ago•6 comments

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

296•david927•3d ago•1052 comments

Any good ways on how to get into kernel dev?

7•ihms•9h ago•2 comments

ChatGPT Desktop forwards your SSH agent to remote machines

217•DenGorbachev•2d ago•79 comments

Ask HN: Did anybody used F# in a production?

2•vad_n__•7h ago•2 comments

Ask HN: Software engineer with broken arm, any tips?

4•spapas82•8h ago•8 comments

Ask HN: Is lack of human imagination now the bottleneck instead of intelligence?

6•amichail•12h ago•11 comments

Do 9/10 new AI SaaS websites seem like they should be an editor command to you?

3•Kevin_Flynn•8h ago•1 comments

Ask HN: How do you manage your AI agents' context across clients and projects?

98•Michel_Aventin•4d ago•60 comments

Ask HN: "No AI" apps/companies/resources?

7•BrunoBernardino•12h ago•8 comments

What are your favorite tools?

11•d675•20h ago•9 comments

Ask HN: Do you still enjoy coding in C++?

59•hasley•2d ago•88 comments

How do you keep up quality when you vibe-code?

35•nkcodes•1d ago•35 comments

Ask HN: Anybody using their own AI harness as well?

5•madprops•11h ago•4 comments

Ask HN: How did you convince family and friends to join your XMPP/Matrix server?

100•mtlynch•4d ago•96 comments

Why does Reddit want me to use the iOS app on my desktop?

8•corroclaro•15h ago•5 comments

Ask HN: What in the world is taking Ubuntu so long?

219•linsomniac•5d ago•143 comments

Ask HN: How do you evaluate the skills your AI agents use?

23•enesalatas•2d ago•6 comments

Ask HN: Does codex, Claude $20 subscription just seem unworkable now?

4•sharemywin•8h ago•4 comments

Tell HN: Another GitHub Major Outage

17•sergiotapia•2d ago•6 comments

Superwall (iOS Paywall Provider) Hacked – customers asked to rotate keys

4•epsteingpt•1d ago•0 comments

CoderPad Reports a Security Breach

8•werrett•1d ago•1 comments

Tell HN: A flood of reports of Opus 5.5 being nerfed

31•b--l•3d ago•17 comments

uBlock Origin Can't Block Facebook Ads

13•anidsiam•2d ago•5 comments

Tell HN: Notion AI chat sessions have been exposed via Fireworks AI hack

18•RamblingCTO•1d ago•1 comments

Ask HN: Is misaligned AI less dangerous than AI controlled by a bad actor

2•InfiniteRand•1d ago•5 comments

Ask HN: Anyone else notice Fable 5.2 making grammar errors?

5•linearza•1d ago•2 comments

You've reached the end!