frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•8mo 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•8mo 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•7mo ago
give https://pg.llmwhisperer.unstract.com/ a try

The $LANG Programming Language

232•dang•13h ago•44 comments

Ask HN: Iran's 120h internet shutdown, phones back. How to stay resilient?

84•us321•20h ago•84 comments

Ask HN: ADHD – How do you manage the constant stream of thoughts and ideas?

93•chriswright1664•14h ago•110 comments

Unemployed almost a year after graduating MIT – a rant

8•TimGubth•2h ago•6 comments

Ask HN: Quantum Computation, Computers and Programming

28•rramadass•1d ago•24 comments

Tell HN: I Downgraded from macOS Tahoe to Sequoia

5•inatreecrown2•3h ago•6 comments

Ask HN: Vxlan over WireGuard or WireGuard over Vxlan?

41•mlhpdx•18h ago•70 comments

Ask HN: Discrepancy between Lichess and Stockfish

20•HNLurker2•18h ago•11 comments

Ask HN: What are you working on? (January 2026)

255•david927•2d ago•845 comments

Ask HN: Personal website featured on HN, list of restaurants in NYC

4•laffOr•1h ago•0 comments

Ask HN: Looking for Windows contributors for meeting-detection engine

7•Ayobamiu•21h ago•0 comments

Tell HN: DigitalOcean's managed services broke each other after update

76•neilfrndes•1d ago•44 comments

Tell HN: Intel could blow up the Console Wars if it had the guts

6•noumenon1111•17h ago•7 comments

Ask HN: How to find gaps and oppurtunities in the AI era?

5•SRMohitkr•7h ago•3 comments

Ask HN: Who remembers AWS Spot's auction era before the 2017 pricing change?

3•aleroawani•18h ago•0 comments

Ask HN: 500 citation MSc CS, stuck in a low-trust region. How to move forward?

18•throwawaysafely•21h ago•12 comments

Tell HN: The Google Tenor GIF API has been shut down

19•dfajgljsldkjag•21h ago•12 comments

Ask HN: Are you underutilizing your insurance too?

4•nemath•18h ago•4 comments

Ask HN: Learning Discoverability

2•learnwithmattc•23h ago•0 comments

Ask HN: How are you preventing LLM hallucinations in production systems?

2•kundan_s__r•14h ago•10 comments

Is "AI vibe coding" making prototyping worse inside real companies?

15•arapkuliev•21h ago•5 comments

Ask HN: What made you move back to HTML-to-PDF in production?

6•gokulsiva•22h ago•5 comments

Ask HN: Does anyone else think that humanoid robots is a bubble?

5•NewUser76312•17h ago•9 comments

Eleva.js – A 2.3KB JavaScript framework with signals and no virtual DOM

4•TarekRaafat•20h ago•1 comments

Experiment: Using NotebookLM as a cynical code reviewer (via custom prompts)

2•practicalaifg•21h ago•0 comments

Gh Account Permabanned – Help?

10•nicomeemes•22h ago•10 comments

Ask HN: Job seekers, what's working / not working?

18•Jabbs•2d ago•19 comments

Ask HN: Story about a CEO going off on a user who left feedback?

3•VladVladikoff•23h ago•2 comments

Ask HN: When has a "dumb" solution beaten a sophisticated one for you?

12•amadeuswoo•3d ago•15 comments

Ask HN: How do you prevent AI agents from going rogue in production?

3•techbuilder4242•23h ago•1 comments