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 was your "oh shit" moment with GenAI?

136•andrehacker•1d ago•338 comments

Ask HN: What is your (AI) dev tech stack / workflow?

111•dv35z•9h ago•107 comments

Bad MCP design costs your agent 5x more tokens

9•JohnnyZhang483•21h ago•0 comments

Ask HN: My competitors have flawed products but I can't get traction

7•saveitincork•23h ago•8 comments

Ask HN: So what happened to Facebook "localhost" tracking?

100•juliusceasar•1d ago•99 comments

Ask HN: Are orbital data centers possible / a good idea?

20•aronowb14•8h ago•36 comments

Ask HN: Is the web for machines (/llm.txt) the one we wished we had as humans?

35•sunshine-o•13h ago•54 comments

Ask HN: Why isn't AI image generation closely linked with graphics code gen?

2•amichail•11h ago•1 comments

Ask HN: How do you find deep technical content?

36•f311a•1d ago•26 comments

Ask HN: How did you discover Hacker News?

6•chistev•9h ago•12 comments

Ask HN: Gin rummy strategies

24•bix6•1d ago•4 comments

Ask HN: Who is hiring? (June 2026)

239•whoishiring•4d ago•423 comments

Ask HN: How do you stay up to date without information overload?

3•bohdanstefaniuk•7h ago•2 comments

Ask HN: Who wants to be hired? (June 2026)

149•whoishiring•4d ago•523 comments

Ask HN: Is Azure capacity this constraind or am I doing it wrong?

11•lanycrost•13h ago•13 comments

Ask HN: Do you know any company that's making money with LLMs?

4•camillomiller•16h ago•2 comments

Ask HN: Is Everyone an Engineer Now?

4•piratesAndSons•1d ago•6 comments

I'm tired of LLM skill slop, so I built mine with regression tests

5•iliaov•1d ago•0 comments

Supply chain attack alert: .github/setup.js

16•antihero•15h ago•10 comments

Life saving / first aid posters

36•cpu_•3d ago•3 comments

I underestimated how hard audio waveforms are in the browser

5•syncara•23h ago•2 comments

Ask HN: Hey, you, tech worker–how are you feeling?

5•arm32•1d ago•11 comments

Being privacy-conscious comes with some downsides

7•wqtz•1d ago•4 comments

Google killed my $1M ARR startup overnight

14•vadumo•1d ago•9 comments

Ask HN: Is Claude Code down, or its just my region?

4•codetiger•17h ago•1 comments

Ask HN: Good books/resources for learning SQL?

5•CobaltFire•1d ago•3 comments

Ask HN: AI efficiency in the workplace

3•localhoster•1d ago•5 comments

Ask HN: A Brief History of LLMs

9•menomatter•2d ago•6 comments

Tell HN: Max messenger app removed from App Store

9•secondary_op•1d ago•4 comments

Ask HN: What is your opinion on index rule changes to accommodate Mega-Cap IPOs?

18•figmert•3d ago•11 comments