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: Fable hacked my piano, can I release the results?

288•jmpman•2d ago•156 comments

Apparently CodePen 2.0 sends data to their servers as you type

111•maxim-fin•21h ago•56 comments

Ask HN: How do you manage skills files?

301•imadtaieber•1d ago•267 comments

Ask HN: Would you read a statistics textbook?

105•usernametaken29•2d ago•62 comments

Ask HN: Anyone else feeling uneasy with the latest developments in AI?

9•sensitivekt9q3•5h ago•9 comments

Tell HN: OpenAI brings back 5 hour limit for plus and business standard users

125•spwa4•16h ago•140 comments

Ask HN: Who is using MCP in production?

195•sukit•4d ago•198 comments

Ask HN: Show your micro-SaaS

18•genekrapivin•1d ago•13 comments

Ask HN: Why were OpenAI, Claude, and Grok simultaneously down?

404•halcdev•4d ago•705 comments

Ask HN: 3.5 inch diskette read errors, would a period correct drive do better?

6•rietta•19h ago•5 comments

Ask HN: Connecting Kubernetes dependencies to application telemetry

6•chipfixer•1d ago•1 comments

Ask HN: Any Software Engineers here who enjoy their AI-native dev workflow?

8•pkos98•1d ago•8 comments

Ask HN: UK Rescue Rocket Sheds/Houses Information

24•burnt-resistor•1d ago•6 comments

Bun rewrite and FLT formalization had nearly identical resource usage

5•Zsfe510asG•15h ago•1 comments

Ask HN: (Why) Was the LLM breakthrough useful for images, audio, etc.?

4•rogerrogerr•1d ago•4 comments

Is OpenAI silently routing GPT‑6 requests to GPT‑4o?

2•skaiuijing•19h ago•3 comments

Tell HN: I want to see the same moon as you

16•UnderABlueMoon•3d ago•15 comments

Tell HN: Both recent GCP outages caused by fiber optic maintenance

19•fastest963•4d ago•1 comments

Do you ever struggle to find another programmer to work on a project/pair with?

2•rizsyed1•9h ago•1 comments

Ask HN: How safe are our password managers in face of LLM cyber attacks?

3•muddi900•1d ago•0 comments

Ask HN: Do People Care About Image Optimisation Anymore?

4•CM30•23h ago•1 comments

Ask HN: How do you keep AI coding agents in sync with a changing Figma file?

2•rjvidentia•23h ago•1 comments

tuhat: Home for all your reading

4•8by3•23h ago•0 comments

Ask HN: Why can I use macOS passkeys without biometrics

4•0xnico•1d ago•0 comments

Ask HN: Are others seeing Google's reCAPTCHA rejecting Firefox users?

72•Animats•4d ago•24 comments

Tell HN: Anthropic should make Claude the Author and me the Co-Author

5•xeonax•1d ago•3 comments

Ask HN: Looking for an old submission about sneering culture

6•annex-winged-cr•1d ago•2 comments

Ask HN: What are other "uncrackable benchmarks"?

3•Nail2680•1d ago•1 comments

Ask HN: Perplexity Pro vs. Claude – what are you paying for?

4•daytonflyers•1d ago•3 comments

Ask HN: What is your biggest struggle while learning?

3•Cursed666•1d ago•1 comments