Privacy-First AI Contract Risk Analysis Grounded in Indian Law
Vidhi Setu is an intelligent LegalTech platform designed specifically for the Indian creative community, freelancers, and early-stage startups. It bridges the gap between complex legal jargon and fair professional agreements by providing jurisdiction-aware risk assessment anchored in The Indian Contract Act, 1872.
Traditional legal tech targets big corporations. Vidhi Setu is built for the 15 Million+ Indian Freelancers who sign contracts every day without a lawyer.
- ⚖️ Built for India: No US "At-Will" citations. Strictly Indian Statutes.
- 🔒 Absolute Privacy: Your contract never leaves your RAM. Local AI processing means zero data leaks.
- 👶 ELI5 Mode: Legal jargon is scary. Our AI translates it into plain English a 5-year-old can understand.
graph LR
subgraph Frontend
A[React/Vite] --> B[Tailwind/Framer]
end
subgraph Backend
C[FastAPI] --> D[Local RAG]
D --> E[Ollama / Qwen 2.5]
end
subgraph Privacy
F[PII Tokenizer] --> G[In-Memory ONLY]
end
- Frontend: React (Vite), Tailwind CSS, Framer Motion, Lucide.
- Backend: FastAPI (Python), Local RAG Engine.
- AI: Ollama (Qwen 2.5 7B) for local, private inference.
This project runs 100% locally. You MUST have Ollama installed and the model imported:
- Install Ollama from ollama.com.
- Pull Qwen 2.5:
ollama run qwen2.5:7b
- Import as Vidhi Brain: Follow the instructions in
backend/ai/README.md(or simply ensure a model namedvidhi-brainis available in your local Ollama instance).
- Navigate to the
backend/directory. - Install dependencies:
pip install -r requirements.txt
- Run the server:
uvicorn main:app --reload
- Navigate to the
frontend/directory. - Install dependencies:
npm install
- Run the development server:
npm run dev
To evaluate the full depth of Vidhi Setu's local legal intelligence:
- Access the Dashboard via the "Get Started" button.
- Upload a contract (e.g., from
sample_contracts/) or click "Test with Sample". - Observe the Section 27 (Non-Compete) detection and the Jurisdiction Guardrail blocking non-Indian law.
- Notice the Local AI Insight cards providing plain-English legal explanations grounded in Indian Statute.
Vidhi Setu is an assistive tool intended to improve legal awareness and understanding. It does not provide legal advice. Users should always consult a qualified legal professional before signing any agreement.
Vidhi Setu: Zero Data, Absolute Clarity. 🚀⚖️