Regulation-Grounded • LLM-Powered • Audit-Ready
ComplianceCopilot is an AI-powered system that analyzes financial documents such as:
- Loan Agreements
- Terms & Conditions
- Key Fact Statements (KFS)
It compares them against RBI/SEBI guidelines using:
- Document parsing
- Clause classification
- Regulation retrieval
- LLM-based reasoning
- Risk scoring
- Explainable reporting
The goal is to automate and streamline compliance reviews with accuracy, speed, and clarity.
- Upload PDF, DOCX, or TXT files
- Extracts clean text
- Splits into meaningful clauses
Automatically identifies:
- Pricing / APR
- Fees & Charges
- Foreclosure
- Grievance Redressal
- KYC / Documentation
- Security
- Default & Recovery
- Fetches the most relevant regulatory snippets
- Uses TF-IDF or embeddings (expandable)
- Compares document clauses with regulatory expectations
- Generates:
- Compliance status
- Issues
- Severity
- Suggested remediation
- Citations
- Automatic fallback to heuristic comparator if needed
- Severity-based risk calculation
- Document-level overall score
- File upload
- “Process File” button
- Progress display
- Comparator mode switch
- Detailed issue breakdown
- Report export
- Comparator tests using pytest
📂 ComplianceCopilot
│
├── ingestion/ # PDF/DOCX loaders, text cleaning
├── clause_analyzer/ # Clause splitting & classification
├── rag_engine/
│ ├── retriever.py # Retrieval logic
│ ├── comparator.py # LLM + heuristic comparator
│ └── prompts.py # Prompt templates
├── risk_engine/ # Risk scoring
├── report/ # Report generator
├── tests/ # Pytest suite
└── app.py # Streamlit frontend
python3 -m venv venv
source venv/bin/activatepip install -r requirements.txtexport OPENAI_API_KEY="your-key-here"streamlit run app.pypytest -q[HIGH] APR not clearly disclosed.
Regulation: RBI Fair Practices Code
Reason: Customers must be informed of total cost of credit.
Fix: Include APR + example calculation.
- OCR for scanned PDFs
- SEBI + IRDAI regulation expansion
- Embedding-based retriever
- Version comparison for documents
- Export full PDF report
- Deploy to cloud (Render/Railway)
Pull requests are welcome. Open an issue before major changes.
Distributed under the MIT License.
Built with passion to simplify compliance workflows.