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: Is it just me, or is software buggier across the board?

93•kadhirvelm•9h ago•88 comments

Ask HN: Are AWS Certs worth getting for experienced Devs?

8•Gold-Ask-lx•4h ago•2 comments

Ask HN: Who build production apps with out seeing code?

2•amukbils•1h ago•2 comments

Ask HN: What Are You Working On? (July 2026)

279•david927•3d ago•1078 comments

Revised Polish Alphabet

2•poloniaco•2h ago•0 comments

Tell HN: Fable Credits Are 150x More Expensive

7•yesitcan•3h ago•4 comments

ChatGPT now defaults to Codex instead of chat:(

3•amukbils•6h ago•3 comments

Ask HN: Add flag for AI-generated articles

1082•levkk•2d ago•454 comments

Making something on your own(without any LLM) feels so good

3•RajX_dev•7h ago•0 comments

TermShepherd- AI that audits your SaaS legal pages for free

2•termshepherd•2h ago•0 comments

Ask HN: What company could create an iOS/Android competitor worth adopting?

4•pwython•8h ago•6 comments

Ask HN: Anyone Else Burnt Out?

11•lmpdev•15h ago•3 comments

GitHub is starting to lockdown some of the previously public data

7•punkpeye•9h ago•5 comments

Ask HN: Should I do a CS masters at Cambridge or start as a new grad at Amazon?

27•sspehr•2d ago•92 comments

Ask HN: Does language complexity affect reasoning?

4•zecice•9h ago•6 comments

I reverse-engineered the three biggest agent-memory tools

2•pauliusztin•11h ago•4 comments

Ask HN: Question regarding personal knowledge management

3•diarrheaasmr•13h ago•3 comments

Ask HN: How are you productive with GPT 5.6 Sol?

3•hk__2•14h ago•1 comments

Ask HN: What Are You Building with AI?

4•fraXis•14h ago•8 comments

Ask HN: Evidence for JavaScript ecosystem being more vulnerable than Rust's?

2•pascahousut•14h ago•0 comments

Should a smartwatch track the user's emotions?

3•accofrisk•15h ago•6 comments

Ask HN: Insightful research or longreads on core teams in IT?

2•sam_lowry_•15h ago•0 comments

Ask HN: Do y'all sit here just looking at each url pop up to engage?

3•vanessa1211•15h ago•4 comments

ChatGPT Remote Connection Failure

3•tumidpandora•22h ago•2 comments

Ask HN: How do you do marketing in the age of slop?

9•probst•13h ago•11 comments

Ask HN: US Equivalent of Anabin?

2•xqb64•1d ago•2 comments

Ask HN: How do you use Vim in the era of AI?

48•rstagi•5d ago•99 comments

You've reached the end!