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

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

135•srameshc•4h ago•87 comments

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

40•summonerOS•18h ago•23 comments

Ask HN: Suggest Google Antigravity Alternative

4•Pallavimdb•6h ago•3 comments

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

12•0rganize•7h ago•14 comments

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

25•sergiotapia•20h ago•18 comments

Artist with no technical experience stumbles upon the next generation of LLMs

2•itakechops•10h ago•1 comments

Ask HN: How to be SOC2 Type 2 compliant as a solo-entreprenuer?

172•sochix•5d ago•136 comments

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

2•kasnaka•11h ago•3 comments

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

4•sbinnee•16h ago•2 comments

Ask HN: Sorry, what Was FiveThirtyEight?

6•gagdiez•12h ago•5 comments

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

4•deku2099•16h ago•7 comments

Ask HN: What are Stainless users doing now that Anthropic has killed it?

5•ubutler•17h ago•3 comments

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

4•axismundi•1d ago•3 comments

Anthropic is killing stainless, so we built our own SDK/MCP generator

5•iiviie•22h ago•1 comments

Did moving to new place have intended effect?

11•Jeff2Serve•1d ago•11 comments

Ask HN: Antigravity 2.0 installer breaks existing Antigravity IDEs

3•jdw64•1d ago•1 comments

Ask HN: Is grpcurl home page compromised?

4•jicea•1d ago•0 comments

Ask HN: How do word docs, slides, excel, and PDFs generate value?

6•FailMore•1d ago•8 comments

Ask HN: Go all in on startup idea, or stay W2

2•Mnexium•1d ago•33 comments

Tell HN: Dont use Claude Design, lost access to my projects after unsubscribing

300•pycassa•6d ago•85 comments

Ask HN: When did computers stop being fun?

74•klez•3d ago•103 comments

Ask HN: How often do you code the expected way instead of a better one?

4•recycling•1d ago•4 comments

Windows on Mobile Screen

3•tukunjil•1d ago•0 comments

Ask HN: How to enforce engineers to understand the code they are shipping

8•hchua•1d ago•19 comments

Ask HN: Do you know what data your AI coding agent sends to the cloud?

5•lbrauer•2d ago•6 comments

Tell HN: Mindie.dev is scraping emails from profiles to send spam

27•stackghost•3d ago•6 comments

Ask HN: What LLM models are you using and why?

11•rubyn00bie•3d ago•16 comments

Ask HN: How are agentic workflows meant to offset AI debt?

3•l33tbro•1d ago•0 comments

Viable open source Claude Design alternative?

26•splatzone•6d ago•7 comments

You've reached the end!