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: How much coding should beginners learn in the AI era?

8•JohnDSDev•52m ago•8 comments

Ask HN: How are you finding work/gigs as a SWE?

9•mariopt•6h ago•6 comments

Ask HN: Yahoo deleted all my emails. Now what?

13•neya•12h ago•10 comments

Anyone else feels many LLMs are heavily biased towards consumerism these days?

6•pyeri•9h ago•2 comments

Ask HN: What home printer do you use/recommend?

16•niyazpk•19h ago•19 comments

How to find AI-conservative companies to work for?

17•tossitawayplz•19h ago•6 comments

What's the worst thing your AI agent did in production without asking first?

3•rockingraj•5h ago•1 comments

Ask HN: Am I missing something with AI

9•vasko•1d ago•16 comments

Ask HN: Do you have an unusual income source

48•xupybd•2d ago•36 comments

Ask HN: Will programmers write more efficient code during the memory shortage?

152•amichail•4d ago•245 comments

Ask HN: Anthropic banned me from using Claude Code and I don't know what to do

77•ayi•1d ago•86 comments

Overfitted a 900KB Transformer to Compress a 100MB CSV into 7MB

8•spidy__•1d ago•3 comments

Ask HN: Are people generally interested using LLMs for learning purposes?

7•iknownthing•22h ago•11 comments

Tell HN: I never bought anything from clicking on a paid ad

22•julienreszka•1d ago•25 comments

Ask HN: Is anyone using the A2A protocol?

94•asim•6d ago•44 comments

Ask HN: What tools are you using for AI-assisted code review?

25•agos•6d ago•29 comments

Ask HN: Are people optimistic about the future?

41•JohnDSDev•3d ago•87 comments

Open source, global vs. proprietary but for US in US, which is fundable in SaaS?

4•avijeetsingh16•1d ago•0 comments

Ask HN: How close are we to local LLMs being useful? What's the impact?

7•AbstractH24•2d ago•7 comments

Ask HN: Are you being "529 Overloaded" by Anthropic too?

10•hmokiguess•2d ago•8 comments

Ask HN: New clean macOS install. Must-have apps? Best browser?

19•simonebrunozzi•1d ago•23 comments

Ask HN: What is your opinion on TUI applications

9•po1nt•2d ago•11 comments

Ask HN: I'm lost. How can I define ICP (Ideal Customer Profile)?

8•snowhy•5d ago•6 comments

Ask HN: What did you find out or explore today?

7•blahaj•1d ago•5 comments

Ask HN: Fda.gov Down for You?

2•jmount•1d ago•2 comments

Ask HN: What would justify writting an OS kernel in 2026?

5•alonsovm44•2d ago•9 comments

Norrin – Git/ diff control in Claude Code

4•gagewoodard•3d ago•1 comments

Ask HN: After you ship a feature, what happens to what you learned?

11•gaggle_dk•3d ago•13 comments

You've reached the end!