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: Are we all tired of all these skybreaking CVEs/RCEs?

3•szopin•27m ago•1 comments

Developing Browser Extensions

2•LayerTake•2h ago•1 comments

Ask HN: If AI tools are so good, why isn't your bug backlog empty?

100•ex-aws-dude•2d ago•112 comments

Interesting Learnings Working for a Startup

18•Jessiejia11•16h ago•3 comments

Ask HN: How do you reach the flow with vibe coding?

4•varlock•6h ago•8 comments

Ask HN: How do you use AI to get more relevant content?

3•anoojb•6h ago•3 comments

Claude Gets Hella Paranoid

16•noduerme•13h ago•9 comments

Codeberg seems to have vanished from DNS

53•samip537•15h ago•20 comments

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

305•david927•1w ago•1110 comments

Ask HN: Are We in a Cyberwar?

14•bhartzer•1d ago•21 comments

Microsoft disabled API permissions seemingly overnight

4•emp_•19h ago•1 comments

Ask HN: What was your weirdest or funniest job rejection?

10•cristaloleg•1d ago•18 comments

Ask HN: UK Equivalent for Power Switch Tail/IoT Power Relay?

2•a2fz•1d ago•0 comments

Ask HN: Are the more software malfunctions now than before?

11•sirnicolaz•1d ago•6 comments

Ask HN: Are iPhone Duo Customers Happy?

17•rogerdickey•2d ago•18 comments

Ask HN: What do you think is going on with that many outages coming in a row?

10•vld_chk•1d ago•12 comments

ChatGPT Desktop forwards your SSH agent to remote machines

222•DenGorbachev•1w ago•80 comments

You've reached the end!