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?

9•lo0dot0•2d ago•3 comments

Tell HN: Who wants to be hired" posts outpace "Who's hiring" 2 to 1

18•santiagobasulto•2h ago•11 comments

Ask HN: What are alternative to Upwork for side gig?

3•user7878•2h ago•1 comments

Tell HN: Fable is now credits only

7•teruakohatu•7h ago•7 comments

Ask HN: Fable 5 promo ends today – is anyone keeping it once it's usage-billed?

5•franze•2h ago•9 comments

Ask HN: How do I find startups hiring developers for low pay and equity?

3•Kathan2651•1h ago•3 comments

Tell HN: I managed to unsubscribe from Adobe CC without being charged

22•frereubu•22h ago•2 comments

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

200•yehiaabdelm•4d ago•202 comments

Ask HN: Are systems ready for the first negative leap second?

9•Asmod4n•22h ago•9 comments

Claude has the worst pricing – but people want it

10•amukbils•20h ago•20 comments

Ask HN: What cool stuff have you all been using Fable 5 for?

11•Tsarp•21h ago•14 comments

Ask HN: Who is hiring? (July 2026)

244•whoishiring•6d ago•362 comments

Ask HN: Is anyone using Jujutsu version control (JJ) exclusively?

7•cabyambo•1d ago•1 comments

The Hard Parts of Streaming Audio in Voice Agents

3•gokuljs•14h ago•4 comments

Ask HN: Are there good security benchmarks for LLMs?

7•melvinroest•1d ago•0 comments

How are you measuring Claude Code and Codex performance?

3•achalpandey•17h ago•5 comments

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

151•whoishiring•6d ago•496 comments

Protecting Exploration in an Efficient System

2•rando77•18h ago•0 comments

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

39•argee•6d ago•33 comments

Ask HN: Why about a third of the submissions become dead in mere minutes?

12•g-b-r•1d ago•31 comments

Ask HN: I use coding agents daily, but how do real engineers use them?

3•getlawgdon•23h ago•6 comments

Opinion: Agents > Unix Shell

3•akiarie•23h ago•1 comments

Ask HN: Why submit your AI-written article?

8•blinkbat•1d ago•7 comments

Ask HN: What should I verify before releasing a P2P messenger?

6•Realman78•1d ago•4 comments

Ask HN: What are some programming languages you wish you could use more?

3•mghackerlady•1d ago•3 comments

Ask HN: Are you emotionally attached to AI code?

3•CurleighBraces•1d ago•6 comments

I built a local-first replacement for TV Time before it shuts down July 15

2•continuitytv•1d ago•1 comments

Ask HN: What internal tools/SASS replacements are you building?

3•kostarelo•1d ago•1 comments

Happy Independence Day

37•GauntletWizard•3d ago•10 comments

Tools/approach to pentest my own framework/SaaS?

3•shinobi-apps•1d ago•4 comments