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: GitHub employees what's going on? Why?

226•sharts•1d ago•190 comments

Ask HN: I've quit six systems for tracking my illness. What works?

41•Abh1Works•3d ago•47 comments

ServiceNow are pushing customers off SaaS – are other industries doing similar?

2•rorychatt•16m ago•0 comments

New OllamaMQ v0.3.0

3•chleba•1h ago•0 comments

Ask HN: Alternatives to GitHub

628•dhruv3006•1d ago•421 comments

Ask HN: How should I price an AI infrastructure platform?

2•aqibkhan026•2h ago•2 comments

Ask HN: Good IMAP Email Clients?

3•pudgywalsh•2h ago•2 comments

LLMs .what do you smoke beforehand?

4•kderbyma•3h ago•7 comments

Tell HN: Cloudflare silently injects its analytics when you switch nameservers

643•stagas•2d ago•198 comments

Focus for 7 Months

2•Ssedume•4h ago•0 comments

Combinatorics-Framework released for QA testers/students

2•yb-combi•4h ago•0 comments

Ask HN: Countries with greatest temperature increases have benefited from them?

3•amichail•5h ago•1 comments

Ask HN: Good content on using AI to modernize professional services delivery

5•mguerville•12h ago•3 comments

Why Don't We Version UIs?

5•gruensk•8h ago•8 comments

Ask HN: Do you feel comfortable admitting that you use AI?

9•var0xyz•10h ago•24 comments

Ask HN: Another GitHub Outage?

3•tom1337•10h ago•1 comments

I made a secure way for agents to request secrets from you using HyperDHT

2•smashah•10h ago•0 comments

Ask HN: Science Fiction. Some AI as world leader. Would you vote it?

2•ewjloop•10h ago•6 comments

Ask HN: Can I realistically make an app as a junior dev?

4•brooke1•11h ago•15 comments

Is there room for an AI-powered webmail service built on a single-letter domain?

4•pbt93•12h ago•4 comments

Ask HN: How do you manage focus and avoid burnout while working remotely?

4•pranav_tech26•12h ago•9 comments

Are xPal Total and Remote Wipeout, Terminate Mode Meaningful for Privacy?

2•Brandon-Coll•5h ago•0 comments

Today I realized you can't star an achived repo in GitHub anymore

6•dclavijo•10h ago•0 comments

Ask HN: What's a Dirty Secret No One Wants to Admit in the Tech Industry?

10•karakoram•10h ago•23 comments

Ask HN: Slightly Strange LinkedIn Survey

2•duxup•2h ago•0 comments

Ask HN: How do you keep up with HN these days?

90•simonebrunozzi•3d ago•146 comments

Email Client for the Terminal?

6•ewjloop•23h ago•4 comments

Ask HN: Is GitHub Fried Today?

5•johncole•1d ago•5 comments

Ask HN: What is your favorite lightweight tool or CLI utility in 2026?

22•pranav_tech26•3d ago•34 comments

Best code editor without AI?

6•nerdyguy90•1d ago•12 comments