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

DietPi v10.8 has been released

13•stephanstsdietp•6h ago•0 comments

Slow Cloudflare Connections

2•bryonyoni•4h ago•0 comments

Expericencing an issue in Gmail where emails do not delete in Firefox

4•rc_kas•7h ago•1 comments

Ask HN: T'was the night of Claude Reset and quota left: Funniest app you built?

9•julianpye•4h ago•4 comments

Necro-Economics Eyal Weizman

4•abdelhousni•1h ago•0 comments

Ask HN: If the models are so good, why doesn't OpenAI just start 100 companies?

678•ex-aws-dude•4d ago•751 comments

Why remote roles are becoming extinct in 2026?

7•rohansrma•14h ago•35 comments

Tell HN: I unknowingly broke the PHP RCE embargo. I am sorry

753•petecooper•5d ago•269 comments

Hey, Y Combinator - What will happen to humans?

7•pikseladam•10h ago•10 comments

Ask HN: Can we do something about this impending AI dystopia

4•justforfunhere•11h ago•4 comments

Ask HN: Do you still read clean code and software architecture books?

16•pelcg•1d ago•8 comments

Looking for a tech job is a helpless data-entry nightmare

9•Gravyness•15h ago•6 comments

Tech market feels like a data entry job

5•Gravyness•16h ago•2 comments

Ask HN: Will There Be Another iPhone Mini?

3•rishikeshs•6h ago•6 comments

Ask HN: Is it not possible to enroll for Apple Developer anymore?

31•olalonde•1d ago•17 comments

Do you want to keep your job? Stop feeding AI models

11•andrea81•19h ago•9 comments

Ask HN: Why Is Anthropic's Customer Support Bad?

2•tj-teej•21h ago•5 comments

What to do if you discover AI models trained using your copywrighted book?

12•andrea81•19h ago•8 comments

Ask HN: What are your career plans in the age of AI?

10•akudha•1d ago•14 comments

Ask HN: How do you grow OSS projects?

5•tarasyarema•1d ago•14 comments

Median product "lifespan" has fallen from ~4y down to ~1.5y

88•stanislavb•4d ago•34 comments

Is AI just another get rich quick scheme?

17•jqpabc123•3d ago•27 comments

Ask HN: Are tab completion models dead?

22•sandruso•2d ago•17 comments

Ask HN: How fast is your CI these days?

8•easterncalculus•2d ago•7 comments

Ask HN: Mined crypto on Azure when I was 13, after 12y still cannot open account

6•realaccfromPL•2d ago•2 comments

I'm creating my own OS, check it out, LimonOs no Unix no Linux

5•Drfoxi•2d ago•4 comments

Tell HN: Steamcmd doesn't work on Apple Silicon

6•stdc105•4d ago•6 comments

Ask HN: Kimi Code hit its 5-hour limit after $1.37 of API usage

7•waximabbax•3d ago•3 comments

Ask HN: Are people aware OpenAI Dots intercept SSL?

7•Benjamin_Dobell•2d ago•1 comments

Took apart Claude Code, then turned it into a free course on harness engineering

10•pauliusztin•3d ago•0 comments