Skip to content
All work

2026

NITI.AI

National Intelligence for Trial Insights · judicial AI platform

niti-ai.local

Illustrated interface preview

cases
45M+
node pipeline
6
p95
<200ms

The problem

India's court system carries a backlog of 45M+ pending cases, and the data that could explain why cases stall — delay patterns, humanitarian urgency, court-level bottlenecks — is scattered across government portals with no unified, queryable view. NITI.AI builds that view and layers judicial-grade AI reasoning on top of it.

How I built it

  1. 1

    A scheduled scraping layer pulls live data from 5 government portals every 6–24 hours, feeding a 6-node agentic pipeline: Ingestor → Delay Analyser → Humanitarian Flagger → Scorer → LLM Recommender → RAG Indexer, streamed to clients via SSE for real-time pipeline visibility.

  2. 2

    11 FastAPI routers backed by async MongoDB (Motor + Beanie ODM), with JWT auth hardened by TOTP two-factor authentication for sensitive case-data access.

  3. 3

    A RandomForest model predicts case delay likelihood from structured case metadata, while a FAISS/ChromaDB-backed RAG layer answers natural-language questions over legal documents.

  4. 4

    8 Next.js dashboards (Recharts + Zustand for state) built with an NJDG-inspired information architecture, so the tool feels native to people already familiar with India’s National Judicial Data Grid.

  5. 5

    Deployed as a Docker Compose stack, tuned for sub-200ms p95 API latency and sub-1s Groq inference on the LLM-recommendation step.

What came of it

  • Unified view over a 45M+ case backlog that previously existed only as fragmented portal data.
  • Sub-200ms p95 API response and sub-1s LLM inference — fast enough for interactive dashboard use, not just batch reporting.
  • A 6-node agentic pipeline that turns raw scraped case data into scored, flagged, and explainable recommendations end to end.

Built with

  • FastAPI
  • Next.js
  • MongoDB
  • Groq
  • FAISS
  • scikit-learn
  • Docker