AI-powered contract review and risk analysis for enterprise legal teams. Upload PDF/DOCX contracts, run a 6-agent analysis pipeline, and route high-risk deals for legal manager approval.
cd backend
py -3.13 -m venv venv
.\venv\Scripts\Activate.ps1
pip install -r requirements.txt
copy ..\.env.example .env # edit with your keys
uvicorn main:app --reload --port 8000
python -m scripts.seed # in a second terminalOpen http://localhost:8000/ and log in with admin@lexai.com / Admin@1234.
Full setup guide: docs/getting-started.md
All documentation lives in the docs/ folder:
| Doc | Description |
|---|---|
| docs/README.md | Documentation index |
| Overview | Problem statement, use case, roles |
| Design Rationale | Why PostgreSQL, Qdrant, LangGraph, six agents |
| Architecture | System design and agent pipeline |
| Getting Started | First-time local setup |
| API Reference | REST endpoints |
| Configuration | Environment variables |
| Troubleshooting | Common issues and fixes |
- App UI: http://localhost:8000/
- API Docs: http://localhost:8000/docs
- Health: http://localhost:8000/health
- Groq check: http://localhost:8000/health/ai
For containerized deployment, see docs/deployment.md and docker-compose.yml.