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: How can you retrain in a field requiring expensive equipment?

10•masterchief166•1h ago•3 comments

Ask HN: Financial Audit of DuckDuckGo?

3•giantg2•44m ago•0 comments

Open-source, cross-harness memory for AI agents

10•shakshukan•1h ago•7 comments

Tell HN: 2x PHP RCE CVEs with CVSS 10.0 Incoming

260•petecooper•1d ago•60 comments

Ask HN: How to deal with shipping AI-written code you don't understand?

598•rzk•2d ago•726 comments

Ask HN: Am I the only dev who, with the advent if AI, want to work in a forest?

8•aledevv•3h ago•11 comments

Ask HN: Does anyone else just want to disconnect from everything?

11•lualover•12h ago•11 comments

What should I use instead of Firefox on Android?

2•trystrawberries•12h ago•4 comments

Ask HN: Is Wikipedia going to be obsolete soon?

2•piratesAndSons•13h ago•8 comments

Ask HN: Dark mode for HN please? (2026)

23•Stitch4223•1d ago•11 comments

Ask HN: My Gemini bill shot up suddenly to 2500 USD in one day

9•kinj28•1d ago•3 comments

TI C66X / Ad Sharc+ Decompilers

3•kavinsky777•1d ago•0 comments

Ask HN: How do you deal with AI output of your boss?

20•okr•3d ago•17 comments

Ask HN: How to get the most intelligence out of your agents?

9•thechairman12•1d ago•16 comments

Ask HN: Do you know Bitbucket are chaning their SSH endpoints?

3•mcrmonkey•2d ago•1 comments

Ask HN: Time to read those programming books?

5•blinkbat•23h ago•10 comments

GCP Europe-West2 Outage

31•jack7e•1d ago•12 comments

Ask HN: What have you built privately with AI that you'd like to share?

9•erelong•1d ago•22 comments

Ask HN: Can LeetCode (or similar) keep critical thinking sharp in the AI era?

6•ML0037•1d ago•2 comments

Ask HN: What do you hate the most about GitHub Actions?

3•Bnjoroge•1d ago•1 comments

Ask HN: Are there any programming positions that are safe from AI?

4•marcAKAmarc•1d ago•7 comments

Ask HN: Why HN dosen't have bot problem?

7•solarpunk_enthu•2d ago•8 comments

Tell HN: I picked up knitting while waiting for my AI agent to complete

9•amelius•3d ago•2 comments

Ask HN: What happened to open weights models?

5•sparse-Matrix•1d ago•2 comments

CPU-native. Deterministic. O(1) processes. – the Old New Coolness

2•KathiaGatterer•1d ago•1 comments

Ask HN: How do you cap what your coding agents can spend?

4•Twirled•2d ago•1 comments

Revolut down – Global ATM withdrawals and bank transfers failing

15•TomAnthony•1d ago•7 comments

Ask HN: What's your SSH terminal workflow like?

4•otherayden•1d ago•8 comments

Ask HN: Bring-your-own-AI hardware

2•flying_sheep•1d ago•0 comments

Ask HN: Any good technical podcasts to listen to while driving?

4•0-bad-sectors•1d ago•3 comments