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

Were Nov outages insider companies updating cryptography?

6•chaseadam17•2h ago•2 comments

Ask HN: Are PRs still the right way to review AI written code?

17•davidest•9h ago•17 comments

Ask HN: How do I reach a human being at Microsoft to fix a problem?

58•helaoban•23h ago•33 comments

Ask HN: Where can I run a Racket program that generates 1T random characters?

3•nyc111•7h ago•4 comments

Ask HN: Who wants to be hired? (December 2026)

119•whoishiring•4d ago•662 comments

Ask HN: Retro computers had BASIC. Should modern computers boot into AI?

6•amichail•13h ago•8 comments

Ask HN: Who is hiring? (December 2026)

236•whoishiring•4d ago•282 comments

Ask HN: What non-AI products are you working on?

86•simonkk•2d ago•110 comments

What if Bitcoin got cracked and nothing replaced it? It just went away.

13•AbstractH24•1d ago•23 comments

Browser After Arc

4•josephlion•17h ago•3 comments

Ask HN: 0 to 1 Market Research

4•taskfilm•19h ago•3 comments

Ask HN: When generating TLS certs is genrsa -aes256 ok?

2•scrubs•14h ago•0 comments

Ask HN: Buy a physical security key now, or wait for post-quantum versions?

3•zernoshka•16h ago•1 comments

The New York Times is shutting down their API

86•donohoe•3d ago•27 comments

Ask HN: Where to Pivot from Here?

4•movsx•19h ago•6 comments

Tell HN: Main/master debacle still hurts 7 years later

4•lostmsu•20h ago•3 comments

Tell HN: Alan Kay's domain, squeakland.org, redirects to a suspicious website

4•JMiao•21h ago•1 comments

Ask HN: AI was supposed to give us time to think, do you have it?

8•franze•20h ago•7 comments

Ask HN: Is building a SaaS business still worth it?

7•speedylight•1d ago•21 comments

Tell HN: HN search (Algolia) supports exact match using straight quotes only

5•Barbing•2d ago•6 comments

Ask HN: How are crypto exchanges preparing for post-quantum cryptography?

8•rootsudo•2d ago•3 comments

Ask HN: Did Your Agent Escape?

5•s_u_d_o•1d ago•3 comments

Tell HN: The next frontier in AI is making it sound like a normal person

6•andai•2d ago•0 comments

Tell HN: This Quarter saw the highest 'Who Wants To Be Hired' comments

12•shubhamjain•2d ago•6 comments

Ask HN: Will we need gyms for our brains in the age of AI?

16•KingOfMyRoom•1d ago•12 comments

Ask HN: Do you find LLMs inefficient for non-coding work?

3•muddi900•1d ago•4 comments

Ask HN: How do independent engineers make a living from open-source work?

25•imparikalp•5d ago•30 comments

Tell HN: It's not just Claude, Codex (6.2-Astra Ultra) is also sabotaging work

18•emilfihlman•4d ago•6 comments

A Breadth-First Search for Industry Problems Worth Solving (Retail Edition)

6•alikafridi•3d ago•0 comments

Ask HN: Freelance Programmers – Where are you pivoting?

10•brokegrammer•2d ago•14 comments