frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•9mo 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•9mo 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•9mo ago
give https://pg.llmwhisperer.unstract.com/ a try

Ask HN: How do you know if AI agents will choose your tool?

11•dmpyatyi•3h ago•6 comments

Ask HN: Where do you save links, notes and random useful stuff?

4•a_protsyuk•2h ago•7 comments

Ask HN: Chromebook leads for K-8 school in need?

42•techteach00•1d ago•42 comments

Ask HN: Is it better to have no Agent.md than a bad one?

3•parvardegr•6h ago•2 comments

Ask HN: Are developers who build libs and dev tools safer from AI replacement?

2•danver0•1h ago•2 comments

GLP-1 Second-Order Effects

19•7777777phil•5h ago•9 comments

Ask HN: Programmable Watches with WiFi?

11•dakiol•2d ago•5 comments

So Claude's stealing our business secrets, right?

24•arm32•1d ago•15 comments

Ask HN: How are early-stage AI startups thinking about IP protection?

4•shaheeniquebal•16h ago•3 comments

Ask HN: What breaks when you run AI agents unsupervised?

11•marvin_nora•1d ago•6 comments

Ask HN: Cognitive Offloading to AI

11•daringrain32781•1d ago•5 comments

Ask HN: What Comes After Markdown?

6•YuukiJyoudai•1d ago•11 comments

Ask HN: Why doesn't HN have a rec algorithm?

8•sujayk_33•1d ago•17 comments

Back end where you just define schema, access policy, and functions

3•emilss•23h ago•5 comments

Ask HN: Is there a reliable way to tell if an image is AI generated?

8•leandrobon•1d ago•9 comments

I'm 15 and built a platform for developers to showcase WIP projects

12•amin2011•2d ago•6 comments

Tell HN: Claude mangles XML files with <name> as an XML Tag to <n>

9•exabrial•1d ago•3 comments

Ask HN: If the "AI bubble" pops, will it really be that dramatic?

14•moomoo11•1d ago•12 comments

I made my favorite AI tool

4•sebringj•1d ago•4 comments

Should I add this acknowledgement/shoutout by xAI/Grok to my resume?

2•aehsan4004•1d ago•7 comments

Ask HN: Why don't software developers make medical devices?

7•piratesAndSons•2d ago•18 comments

Open-Source Bionic Reading Chrome Extension (MIT)

2•sdgnbs•1d ago•1 comments

Orvia – Spin up a real-time room, share files, leave – everything disappears

2•yc_surajkr•1d ago•1 comments

Ask HN: How do new blogs break the backlink–indexing loop?

4•lilcodingthings•1d ago•4 comments

Ask HN: Is there a workaround in OpenClaw for tab not found

2•jinen83•17h ago•0 comments

Ask HN: Is it worth learning Vim in 2026?

34•zekejohn•3d ago•35 comments

Ask HN: Do US presidents have less fiduciary liability than CEOs?

6•stopbulying•1d ago•18 comments

Peer validation platform for engineering skills (inspired by X community notes)

4•ms_sv•2d ago•16 comments

Ask HN: What happens to all the hardware when data centers upgrade?

12•givemeethekeys•2d ago•9 comments

Ask HN: Do You Love My "Assess Idea" (AI) Robo-Reply Side Project Idea?

3•burnerToBetOut•2d ago•5 comments