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

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

2•isaacnsisong•2h ago•1 comments

Tell HN: It's a Lot

5•mettamage•3h ago•1 comments

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

3•lennart-rth•3h ago•1 comments

Codex Is Down

11•freakynit•3h ago•4 comments

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

3•thegreatkahuna•5h ago•5 comments

ChatGPT Is Down

9•anujbans•3h ago•5 comments

Postgress in Rust

2•poldex•6h ago•1 comments

Companies are optimizing models for specific benchmarks

2•mzubairtahir•7h ago•0 comments

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

476•Thrashed•1d ago•174 comments

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

5•nobody9999•14h ago•8 comments

GPL Infection of LLMs?

4•sl_convertible•16h ago•2 comments

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

6•JGPTechCo•13h ago•4 comments

Stripe closed my account with a 0.18% dispute rate

10•rellyattd•13h ago•8 comments

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

5•need_a_work23•19h ago•7 comments

Ask HN: Is there a website that tracks excessive writes to SSDs in OS/app betas?

30•amichail•1d ago•28 comments

Two Gov Websites Compromised

7•relunsec•20h ago•1 comments

Tell HN: ChatGPT exports do not contain all conversation messages

5•afpx•21h ago•1 comments

Ask HN: How to get in touch with Paddle (MoR)

6•probst•1d ago•5 comments

Ask HN: If OpenAI hacked HuggingFace, why aren't OpenAI prosecuted?

29•sam_lowry_•2d ago•36 comments

Ask HN: What are your current favorite monitoring and observability solutions?

3•Exoristos•16h ago•1 comments

Ask: Why does everything Microsoft create lately feel fragile and half-baked?

12•nothrowaways•1d ago•11 comments

Ask HN: Is anyone giving out tokens for benchmarking LLMs?

3•emosenkis•20h ago•1 comments

Ask HN: Can we get a day that is free from AI news?

8•MichaelMoser123•21h ago•5 comments

Ask HN: How are you getting decent front end interface results out of LLMs?

2•VladVladikoff•22h ago•1 comments

Ask HN: How much software do you build for yourself these days?

4•lellow•23h ago•10 comments

Ask HN: Has your typing gotten worse with AI?

2•aizk•23h ago•7 comments

Single-click and remote OpenCode session right in the browser

3•jashandeep31•1d ago•0 comments

A VSCode extension for AI to understand your project

2•bailingyuan•1d ago•2 comments

Ask HN: What changed in your life when you started meditating (and how)?

32•dondraper36•2d ago•27 comments

Ask HN: Any Good Pi.dev Setups?

3•galsapir•1d ago•1 comments