LegalEase AI is a FastAPI-based platform that simplifies complex legal documents into clear, accessible insights using AI-powered document processing, risk analysis, and compliance checks.
It includes a web interface (Jinja2 templates) and modular Python backend components.
- 📑 Document Processor – parses contracts and legal docs
⚠️ Risk Analyzer – flags risky clauses using regex patterns (config/risk_patterns.yml)- 🧠 AI Client – integrates with AI models (
config/models.yml) - 🌍 Jinja2 Web UI – upload documents and view risks interactively
- 🔒 Compliance Checks – Indian law compliance patterns
- 🧪 Unit Tested – built-in tests with pytest
git clone https://github.com/Bavan23/LegalEase-AI.git
cd LegalEase-AIpython -m venv venv
# On Linux/Mac
source venv/bin/activate
# On Windows
venv\Scripts\activatepip install -r requirements.txtSecrets (like API keys) are stored in a .env file. Do not commit .env to Git.
Create .env from template:
cp .env.template .envRun with Uvicorn (local dev):
uvicorn src.web.app:app --reloadBuild and Run:
docker-compose up --buildpytest tests/1. Fork the repo 2. Create a feature branch:
git checkout -b feature/my-feature3. Commit changes:
git commit -m "feat: add my feature"4. Push and create a Pull Request