frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Sideshow: Give Your Agents a Stage

2•handfuloflight•58m ago•0 comments

Talk Like Claude Day

15•KenPainter•9h ago•1 comments

I've tested some local LLMs on prosumer hardware, here are some findings

3•felineflock•10h ago•0 comments

Ask HN: What's your experience with AI agent memory systems?

2•MeshCtxAgent•9h ago•0 comments

Ask HN: What Happened to dLLMs?

3•ray__•9h ago•2 comments

Ask HN: Advice for selling a tech domain name

3•sm001•12h ago•5 comments

Ask HN: What silly or weird web search did you do recently?

3•RetroTechie•15h ago•2 comments

Ask HN: Anyone set up ways to easily obtain and read transcripts from Ted, YT?

4•MollyRealized•1d ago•6 comments

I built a tool to generate Cornell notes from YouTube videos

5•cristyg0101•19h ago•4 comments

Ask HN: How to plan for a future when the advice is always to focus on the now?

3•Eridanus2•13h ago•5 comments

Where are people finding GPU capacity?

5•adilhafeez•1d ago•2 comments

Coding Agents killed my identity. How do you feel?

22•bah9•2d ago•35 comments

Continue coding agent is dead. Alternatives?

3•roscas•1d ago•3 comments

Windmill.dev is not "fully open-sourced (AGPLv3)"

9•alpine-rockies•2d ago•2 comments

Ask HN: OpenCode no longer including DeepSeek?

8•dv35z•2d ago•7 comments

You've reached the end!

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