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: Are PRs still the right way to review AI written code?

14•davidest•3h ago•8 comments

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

2•nyc111•52m ago•2 comments

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

53•helaoban•17h ago•31 comments

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

118•whoishiring•4d ago•656 comments

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

5•amichail•6h ago•8 comments

Browser After Arc

4•josephlion•11h ago•3 comments

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

2•scrubs•8h ago•0 comments

Ask HN: 0 to 1 Market Research

4•taskfilm•13h ago•3 comments

Ask HN: Who is hiring? (December 2026)

236•whoishiring•4d ago•281 comments

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

85•simonkk•1d ago•108 comments

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

3•zernoshka•10h ago•1 comments

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

12•AbstractH24•17h ago•21 comments

Ask HN: Where to Pivot from Here?

4•movsx•13h ago•3 comments

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

4•lostmsu•14h ago•3 comments

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

4•JMiao•15h ago•1 comments

The New York Times is shutting down their API

86•donohoe•3d ago•27 comments

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

7•franze•14h ago•6 comments

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

7•speedylight•1d ago•20 comments

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

5•Barbing•2d ago•6 comments

Ask HN: Did Your Agent Escape?

5•s_u_d_o•1d ago•3 comments

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

8•rootsudo•2d ago•2 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: Why aren't we also seeing major AI breakthroughs from Chinese models?

7•daoboy•12h ago•7 comments

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

25•imparikalp•4d 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

Ask HN: Freelance Programmers – Where are you pivoting?

10•brokegrammer•2d ago•14 comments

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

6•alikafridi•3d ago•0 comments