frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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: What's New in Crypto?

3•kaycebasques•5h ago•5 comments

Tell HN: The Threat to US Citizen's ID / Voting Is Private Services

2•m3047•5h ago•4 comments

Ask HN: OpenAI, SpaceX/xAI, Anthropic all to IPO, is this a sign of the peak?

5•virgildotcodes•6h ago•4 comments

Ask HN: How much AI is in your writing?

5•js98•9h ago•21 comments

"Subligence" – proposed coinage for LLM "intelligence"

4•akiarie•9h ago•5 comments

Ask HN: Shouldn't Google need to give a public statement about Railway incident?

175•srameshc•2d ago•105 comments

Ask HN: Failing interviews for mid-level SWE in UK, advice please

14•mjb8086•1d ago•11 comments

What I learned from tinkering with programming languages in the last 34 days

3•alonsovm44•17h ago•2 comments

Ask HN: Are there any serious efforts to organize tech labor now?

34•0rganize•2d ago•25 comments

Alternatives to HN for "tech outside of AI" discussion?

55•summonerOS•2d ago•35 comments

Valgrind-3.27.1 Is Available

9•paulf38•1d ago•1 comments

Why does it look like LLMs consistently overestimate implementation time?

3•bridgettegraham•20h ago•12 comments

Tell HN: Gemini 3.5 Flash breaks in stupid ways

8•XCSme•22h ago•1 comments

Tell HN: Google banned Railway's account. Everything down

31•sergiotapia•2d ago•18 comments

Ask HN: Is HN Blocking Mullvad VPN?

3•burger_moon•1d ago•3 comments

Ask HN: Anyone else struggling with AI and work?

7•carlgreene•1d ago•6 comments

Tell HN: I'm tired of AI-generated answers

115•theorchid•22h ago•55 comments

Ask HN: Are there any social media sites that are AI positive?

7•amichail•1d ago•5 comments

Ask HN: How to make a mono-repo AI-Ready?

3•kasnaka•2d ago•4 comments

Can one run AI on source code with the prompt "Find below-avg swear rate files"?

3•pcwir•1d ago•2 comments

Ask HN: How does everyone talk about their work when they've used AI?

5•deku2099•2d ago•9 comments

Ask HN: How to manage AI APIs for SaaS application?

4•sbinnee•2d ago•6 comments

Ask HN: Suggest Google Antigravity Alternative

7•Pallavimdb•2d ago•12 comments

Ask HN: Does root have to be uid 0? Does uid 0 have to be root?

5•axismundi•3d ago•4 comments

You've reached the end!