frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

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

Ask HN: How are Markov chains so different from tiny LLMs?

200•JPLeRouzic•4d ago•179 comments

Ask HN: How do you balance creativity, love for the craft, and money?

5•introvertmac•4h ago•8 comments

Ask HN: Working in a language that isn't your native one. How hard was it?

4•william-cooke•5h ago•7 comments

Ask HN: Where can you find old NetBSD packages?

9•GaryBluto•16h ago•2 comments

Amex Architecture

3•nemsj•12h ago•0 comments

Ask HN: Current state of Android USB tethering?

7•namesarehard•22h ago•0 comments

Ask HN: Are you still working with a website that requires Internet Explorer?

11•urnicus•1d ago•8 comments

Ask HN: How would you architect a RAG system for 10M+ documents today?

19•Ftrea•1d ago•4 comments

Facebook has made it impossible to delete Pages – dark patterns everywhere

45•ramharts•3d ago•15 comments

Ask HN: What is the current state of the art in BIG (>5TB) cloud backups?

20•jacobwilliamroy•3d ago•18 comments

Ask HN: Codex vs. Antigravity?

3•digitcatphd•6h ago•1 comments

Tell HN: Cursor exposes side projects to your employer

32•throwawaybbbbbb•3d ago•22 comments

Restaurant Shift Scheduling via Linear Optimization and Staff Constraints

2•emmahexa•1d ago•9 comments

Ask HN: Cloud providers are losing in favor of bare-metal?

35•clostao•6d ago•28 comments

Ask HN: Struggling founders, pls share your startup struggle

16•vieews•2d ago•19 comments

You've reached the end!