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: Is misaligned AI less dangerous than AI controlled by a bad actor

2•InfiniteRand•30m ago•0 comments

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

287•david927•1d ago•1008 comments

ChatGPT Desktop forwards your SSH agent to remote machines

212•DenGorbachev•1d ago•75 comments

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

94•Michel_Aventin•3d ago•52 comments

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

57•hasley•1d ago•81 comments

Ask HN: Anyone else notice Fable 5.2 making grammar errors?

4•linearza•5h ago•1 comments

Tell HN: Notion AI chat sessions have been exposed via Fireworks AI hack

14•RamblingCTO•9h ago•1 comments

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

19•enesalatas•1d ago•5 comments

CoderPad Reports a Security Breach

6•werrett•11h ago•1 comments

Tell HN: Another GitHub Major Outage

16•sergiotapia•21h ago•5 comments

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

100•mtlynch•3d ago•95 comments

Ask HN: Are companies making money by using AI?

4•vanh4lt•12h ago•9 comments

uBlock Origin Can't Block Facebook Ads

10•anidsiam•1d ago•4 comments

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

219•linsomniac•4d ago•143 comments

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

28•b--l•1d ago•15 comments

Ask HN: What should a stranger know first about your unfinished project?

5•toddy_flogsit•17h ago•5 comments

Ask HN: Is Google Site Search Broken?

2•CM30•17h ago•2 comments

Tell HN: Some of My Recent Ideas

2•onaclov2000•18h ago•2 comments

Ask HN: Remote island can only have 1 PC, 1 book, 1 programming language

2•kbrannigan•19h ago•7 comments

Fable 5.2 Available in Claude Desktop

3•calgaryeng•20h ago•0 comments

Ask HN: Share your best blog/videos on learning about LLMs in depth

2•mrburton•21h ago•1 comments

Ask HN: Do you have daily voice conversations with AI?

3•rtp4me•21h ago•9 comments

P2P inference using WebGPU libp2p and IPFS

3•gnarbarian•21h ago•1 comments

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

4•bigmuzzy•1d ago•0 comments

Ask HN: Will Humans Become Useless?

4•misano•1d ago•13 comments

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

2•dev_grex•1d ago•8 comments

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

18•bbg2401•3d ago•10 comments

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

4•khalidahmad•1d ago•12 comments

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

6•L0in•2d ago•19 comments

I am building Threadz. Human first AI writing app

3•shoebilyas_hanz•1d ago•1 comments