Autonomous Legal Support & Forensic Evidence Management System
"Bridging the Gap Between Trauma and Justice"
Sentilex is a pioneering multi-agent AI system designed to democratize legal access in Sri Lanka. It serves as a first-response legal advocate, conducting empathetic, trauma-aware interviews with victims, securing forensic-grade evidence via cryptographic hashing, and instantly generating court-admissible documentation compliant with the Computer Crimes Act No. 24 of 2007 and Online Safety Act No. 9 of 2024.
AI-powered empathetic conversations guide victims through incident reporting. The system uses intent-based routing to adapt responses for emergencies, legal guidance, and evidence collection without requiring prior legal knowledge.
Retrieves and cites relevant provisions from Sri Lankan Law. Uses a Model Context Protocol (MCP) with full audit trails to prevent hallucinations, ensuring advice is legally sound and contextually accurate.
Processes uploaded files with SHA-256 cryptographic hashing and metadata tracking (timestamps, S3 keys) to create a tamper-proof, court-admissible chain of custody.
Automatically generates submission-ready Police Statements and CERT Technical Reports, complete with structured incident narratives and evidence inventories.
A searchable database of verified legal professionals. Includes a rigid verification workflow where lawyers upload NICs and Attorney Certificates for admin validation.
Sentilex employs a secure, containerized microservices architecture:
- Entry Point: Traffic is routed through Cloudflare to an Nginx Reverse Proxy.
- Application Layer: Dockerized containers for Frontend (Preact) and Backend (FastAPI).
- Authentication: Robust IAM system handling Users, Lawyers, and Admins with JWT, OAuth (Google), and MFA (TOTP).
- Data Layer: PostgreSQL handles relational data (Users, Incidents), while AWS S3 stores encrypted evidence.
- AI Engine: A multi-agent system powered by LangGraph handles intent classification, legal reasoning, and safety validation.
- Real-Time Updates: WebSocket server pushes notifications (e.g., verification status) instantly to clients.
Run the entire application with a single command.
- Docker & Docker Compose
-
Clone the repository
git clone https://github.com/Smile-Labs-Inc/sentilex-ai-advocate.git cd sentilex-ai-advocate -
Environment Setup Create a
.envfile from the example.cp .env.example .env
-
Start Services
docker compose up -d --build
The application will be available at:
- Frontend:
http://localhost:8080 - API Docs:
http://localhost:8001/docs
We welcome contributions! Please see CONTRIBUTING.md for details on how to submit pull requests, report issues, and suggest improvements.
This project is licensed under the MIT License - see the LICENSE file for details.