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

How do you use Vim in the era of AI?

7•rstagi•37m ago•4 comments

Replit is the best coding agent

2•anitroves•3h ago•2 comments

Ask HN: Do we need a support group for developers alienated by LLMs?

17•sph•5h ago•21 comments

Why is music so much easier for AI than code?

4•htlemur_bobby•9h ago•8 comments

Audar-ASR-V1:Arabic-first speech recognition foundation models with open weights

2•AudarAI•9h ago•1 comments

Ask HN: HN frontpage feels boring now?

46•xeonmc•1d ago•32 comments

Ask HN: I am not able to find a job. Should I switch stacks?

11•need_a_work23•23h ago•15 comments

Fable July 12th disclaimer disappears from Claude Code

6•gorgmah•17h ago•7 comments

Ask HN: Thoughts on AI in Personal Finance?

5•foxtrot8672•12h ago•10 comments

Ask HN: I hate coding agents. Is this skill issue?

14•cmar00•1d ago•8 comments

Who has been caught out by this anti-pattern from Google?

4•Monotoko•19h ago•2 comments

Ask HN: What are you running locally on your machine with LLMs?

3•agcat•13h ago•2 comments

Ask HN: Is anyone experimenting with different ways of using LLMs for coding?

206•yehiaabdelm•1w ago•202 comments

Ask HN: Where are the good search engines for mathematical formulas?

56•lo0dot0•5d ago•16 comments

Where'd Codex Go?

8•aleshh•16h ago•13 comments

Reality of Commercial AI World from a 16 Year Old's Perspective

3•VanshAgenticAI•17h ago•0 comments

Ask HN: Ubuntu 24.04 now force-automounts any plugged-in MMC card or USB key

2•everybodyknows•17h ago•1 comments

Ask HN: Is GitHub preparing to go behind a login wall?

55•reconnecting•2d ago•38 comments

Tell HN: Who wants to be hired" posts outpace "Who's hiring" 2 to 1

55•santiagobasulto•3d ago•34 comments

Ask HN: Who is hiring? (July 2026)

246•whoishiring•1w ago•401 comments

How to feel safe delegating to AI agents?

2•danicuki•23h ago•4 comments

Ask HN: Any good replacements for "Refined Hacker News?"

2•gwbas1c•1d ago•2 comments

Ask HN: Is Google NERFing AI Mode?

3•PaulHoule•1d ago•4 comments

Ask HN: What's the Fuzz about Taste?

3•pls-dnt-deploy•1d ago•4 comments

Ask HN: How you manage local long lived research projects and LLM's?

6•ripplefringe•1d ago•2 comments

Ask HN: Who is running the abusive scrapers?

9•jonatron•1d ago•2 comments

Ask HN: Are systems ready for the first negative leap second?

11•Asmod4n•3d ago•11 comments

Ask HN: How long has it been since you last opened Stack Overflow?

4•novoreorx•1d ago•9 comments

Asker: A Socratic AI auditing agent using 3D cross-verification

2•tygerlee•1d ago•0 comments

You've reached the end!