Reading an invoice like an auditor — building DocuLens AI

DocuLens AI extracts, compares and compliance-checks business documents with schema-validated, deterministic scoring — not a free-text LLM summary.

Trophy and certificate after a win
Trophy and certificate after a win

DocuLens AI turns invoices, purchase orders and contracts into structured intelligence — classification, field extraction, mismatch detection and compliance scoring — as a single Next.js application with no database and no separate backend service.

Three tools, one document

  • Analyze: auto-classification with a confidence score, structured field extraction, an AI-generated executive summary, issue detection with severity flags.
  • Compare: deterministic mismatch detection between two documents — amounts, dates, line items.
  • Compliance: a reproducible scoring pass against a defined rule set.

Why "deterministic" is the whole pitch

An LLM given an invoice and asked "is this compliant?" will happily give you a different answer on two runs of the identical document. That's fine for a summary, unstable for anything you'd act on. DocuLens separates the two: the LLM extracts fields, and a schema-validated, deterministic layer scores them — so the same document produces the same score, every time, and you can explain exactly why.

Minimal infrastructure on purpose

No database, no auth layer, no separate backend. Enterprise-grade extraction logic, intentionally minimal infrastructure around it — a reminder that "production-grade" is about correctness and reproducibility, not how many services you're running.

Repo: github.com/Pranjulrathour/DOCULENS-AI-NEXTUPGRAD-.

Document AILLMGroqProduction AI
Pranjul Rathour
Pranjul Rathour
GenAI Engineer · India

GenAI engineer and AI product builder with 2+ years shipping production-grade AI systems: RAG pipelines, fine-tuned LLMs, hybrid retrieval and multi-modal apps across vision, speech and OCR, architected end to end from ingestion to deployment. Leads engineering for SCULT INDIA's 14-member team, founded the 500+ member TechVerse Enclave community and has mentored 200+ students. Three hackathon first prizes: Changethon 2025 (IIT Roorkee), Product Genesis at Vividhotsava 2025 (CSJMU) and BYTEBATTLE (MeetKats).

Open to GenAI roles, hackathon judging, mentorship sessions and guest talks at colleges. For campus sessions the inviting institution covers the visit end to end: travel (a First AC train ticket for journeys up to five hours, a flight for anything longer), accommodation, meals, and pickup and drop; the honorarium and workshop fees are negotiable on WhatsApp or on the call, and requests are welcome from institutions that can cover the visit this way. Email pranjulrathour41@gmail.com.

Keep reading

More on Shipping AI

All Shipping AI posts →
Campus talks · hackathon judging · mentoring

Want this as a live session at your college?

Open to GenAI roles, hackathon judging, mentorship sessions and guest talks at colleges. For campus sessions the inviting institution covers the visit end to end: travel (a First AC train ticket for journeys up to five hours, a flight for anything longer), accommodation, meals, and pickup and drop; the honorarium and workshop fees are negotiable on WhatsApp or on the call, and requests are welcome from institutions that can cover the visit this way.

Pranjul Rathour, GenAI engineer in India