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

ChatGPT Desktop forwards your SSH agent to remote machines

183•DenGorbachev•10h ago•60 comments

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

272•david927•20h ago•934 comments

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

44•hasley•8h ago•56 comments

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

14•enesalatas•3h ago•3 comments

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

73•Michel_Aventin•2d ago•50 comments

uBlock Origin Can't Block Facebook Ads

5•anidsiam•2h ago•3 comments

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

99•mtlynch•2d ago•93 comments

Ask HN: How your SEO traffic doing? Up or down?

3•bigmuzzy•8h ago•0 comments

Tell HN: Gemini trains on chat history, even for subscribers (personal accounts)

734•jameslk•5d ago•201 comments

Ask HN: What's your current AI agentic setup?

568•eggbrain•5d ago•699 comments

Ask HN: Will Humans Become Useless?

3•misano•10h ago•10 comments

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

20•b--l•18h ago•13 comments

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

218•linsomniac•3d ago•141 comments

Those who have lost their job to AI what was your job?

2•dev_grex•12h ago•5 comments

Ask HN: Is it normal to not write code for a years as software engineer?

4•khalidahmad•15h ago•9 comments

I am building Threadz. Human first AI writing app

3•shoebilyas_hanz•17h ago•1 comments

Why Agile Often Fails

3•ghassenfaidi•1d ago•2 comments

Claude usage credits purchased after Dec 7 will expire 12 months after purchase

17•bbg2401•2d ago•10 comments

Ask HN: What are your advice for a CS/IT student for the future?

5•L0in•1d ago•19 comments

I turned an ESP32-S3 into a Tailscale gateway with recovery functions

8•Mattboxx•2d ago•3 comments

We're bringing back the HN meeting in Mexico City

10•ysangkok•1d ago•0 comments

HN's HTML has changed slightly

4•1vuio0pswjnm7•23h ago•3 comments

Seeking advice: Wix stolen my .com domain

13•wixcom•3d ago•12 comments

Ask HN: If LLM reverse engineering is deemed illegal, is that precedent for OSS?

4•apatheticonion•1d ago•10 comments

Is YouTube starting to protect channel RSS feeds?

6•kradeelav•1d ago•2 comments

Ask HN: What tech companies do you think have a good moral compass?

6•gehwartzen•2d ago•16 comments

Ask HN: What fun things to do with an iPhone 11?

9•wanderingpixel•3d ago•8 comments

Tell HN: Be Careful with Stripe Connect

18•breue•2d ago•5 comments

Slickdeals.net Is Compromised

22•intenex•2d ago•2 comments

You've reached the end!