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: Which Jabber clients support SCRAM+ and XEP-0474

7•Bender•3h ago•0 comments

Ask HN: What livestream do you keep open in a tab?

20•missmoss•3h ago•6 comments

Timed YouTube video transcripts in .txt and .pdf

5•cristyg0101•4h ago•1 comments

Ask HN: HotPin – lossless 120B MoE inference on 24GB RAM (CPU, 50 loc)

2•LozzKappa•2h ago•0 comments

What happens behind the scenes when we change effort for same LLM models?

10•tbharath•5h ago•7 comments

Who's making money from using/exploiting AI?

8•jonthepirate•6h ago•1 comments

Ask HN: What happens when we do compress the context in Claude Code?

4•tbharath•5h ago•4 comments

Ask HN: How to get your open-source project gain popularity?

2•Hussain04•3h ago•11 comments

Tell HN: A.I Labs are headed by people without world manufacturing experience

3•dzonga•4h ago•1 comments

The Cost of Seamlessness

3•taotuner•5h ago•1 comments

Will it be possible to do LLM Pool Training?

2•slicktux•5h ago•2 comments

Ask HN: Is neuromorphic computing going to replace traditional AI?

5•lennart-rth•11h ago•2 comments

Ask HN: Why are Meta products so bad?

4•asxndu•6h ago•3 comments

Has anyone figured out how to guard LLMs on kernel level?

3•isaacnsisong•10h ago•1 comments

Tell HN: It's a Lot

7•mettamage•10h ago•2 comments

The things that matter take a minute

4•ishener•5h ago•0 comments

Postgress in Rust

4•poldex•13h ago•1 comments

Why My Open-Source Project Hasn't Done Better

4•yohji1984•8h ago•1 comments

Ask HN: How would you harden AI changes to a 1M-line legacy SaaS before review?

4•thegreatkahuna•13h ago•11 comments

Ask HN: Do types make a language more expressive, or less?

3•greenlimetea•9h ago•1 comments

Tell HN: Namecheap gave my account to an unverified third party

481•Thrashed•1d ago•174 comments

My SaaS finally made a sale

4•aashir-saas•10h ago•2 comments

Companies are optimizing models for specific benchmarks

4•mzubairtahir•15h ago•0 comments

Ask HN: How to use agents via API cheaply?

3•thih9•11h ago•3 comments

Ask HN: Good Data Classification Software?

2•ChrisRun•11h ago•0 comments

Ask HN: What's Up with Archive.today?

6•nobody9999•22h ago•9 comments

Ask HN: Which is the least sloppy and claudeism free model you have used?

3•diwank•13h ago•0 comments

Claude used my pipeline to find a counterexample to the Jacobian conjecture

7•JGPTechCo•20h ago•4 comments

Stripe closed my account with a 0.18% dispute rate

14•rellyattd•21h ago•9 comments

Ask HN: How do I find startups that are looking for a dev? How to approach them?

6•need_a_work23•1d ago•8 comments