frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

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

Ask HN: How to solve the cold start problem for a two-sided marketplace?

138•alegd•1d ago•157 comments

Ask HN: What skills are future proof in an AI driven job market?

20•sunny678•9h ago•43 comments

My file access workaround for cron in Tahoe

2•noduerme•3h ago•0 comments

Ask HN: How did you land your first projects as a solo engineer/consultant?

289•modelcroissant•2d ago•137 comments

Getting back into photography, ditching the phone camera in 2026?

5•eigenhombre•15h ago•6 comments

Ask HN: Building a solo business is impossible?

68•fnoef•4d ago•91 comments

Ask HN: Is GitHub's #1 repo fake? build-your-own-x 491K stars

8•throwawaysoso•22h ago•2 comments

Opus 4.7 vs. 4.6 after 3 days of real coding side by side from my actual session

10•agentseal•1d ago•6 comments

Warning: If you search "Claude Desktop" on Google, the 2nd ad result is a scam

5•diogenescynic•1d ago•2 comments

Recommended GPU Repairshop in Europe (Germany)

2•DogRunner•2d ago•0 comments

Ask HN: What makes a good Product Manager

8•chairhairair•1d ago•8 comments

Ask HN: May be a basic question, but how can I use AI well?

9•jdw64•2d ago•4 comments

Tell HN: 48 absurd web projects – one every month

78•absurdwebsite•5d ago•26 comments

Why don't we just ask AI to write assembler?

12•canterburry•3d ago•16 comments

Ask HN: How did you get your first users with zero audience?

17•arikusi•4d ago•20 comments

Ask HN: Anyone know of that "levels of AI programming" blog post?

6•tuvix•2d ago•6 comments

Ask HN: Getting depressed day by day, how to cope?

25•throwaw12•4d ago•25 comments

I built a real-time AR plane spotter, here's the math that makes it work

6•ananddhruv29•2d ago•4 comments

Ask HN: How do you maintain flow when vibe coding?

31•fny•4d ago•31 comments

Aliens.gov Resolves – To a WordPress "Site Not Found" Error

14•ascarola•4d ago•5 comments

Ask HN: Does magic link authentication use HTML canvassing?

5•trinsic2•2d ago•5 comments

Ask HN: ChatAi web-based session notation?

2•xtiansimon•2d ago•0 comments

Durable Object alarm loop: $34k in 8 days, zero users, no platform warning

31•thewillmoss•5d ago•3 comments

Ask HN: How are you using LLMs in production?

14•Anon84•5d ago•12 comments

You've reached the end!