Traditional credit underwriting is plagued by fragmented data, slow manual research, and "black-box" decisioning. Banks lose precious time manually parsing complex financial tables and searching for litigation records.
An autonomous AI agent that handles the end-to-end credit appraisal process. It doesn't just "process" data—it reasons through it, conducts live web research, verifies facts via Human-in-the-Loop (HITL), and generates a professional Credit Appraisal Memo (CAM) backed by a high-accuracy ML model.
- 🧠 Dual-Brain Architecture: Separates Orchestration (Llama 3.3/Gemini 3 pro) from Deep Analysis (Gemini 2.5 and 3 Pro).
- 🧬 High-Fidelity Extraction: LlamaParse + Pinecone Cloud convert complex PDFs into searchable Markdown, reducing hallucinations by 85%.
- 🌐 Granular Web Research: Autonomous one-by-one scrutiny of search results via Tavily to map NCLT filings and RBI penalties.
- 🤖 Predictive Decisioning: Pre-trained XGBoost Classifier (97% accuracy) predicts Approval, Limits, and Interest Rates.
- 🤝 Human-in-the-Loop (HITL): Sequential Review Panels ensure human oversight and data correction at every critical step.
- Phase 1: Sequential Document Intelligence – Automated verification of mandatory docs + 5Cs Insights extraction.
- Phase 2: External Risk Discovery – Granular litigation search and live news sentiment cross-verification.
- Phase 3: Numerical Feature Engineering – Locking extracted metrics into sync with the main Vault; supports manual overrides.
- Phase 4: ML Scoring & Decisioning – Running the XGBoost engine to determine creditworthiness and limits.
- Phase 5: Automated CAM Generation – Drafting and exporting a high-fidelity PDF Credit Appraisal Memorandum.
graph TD
Start[" 🚀 User Uploads Docs & Model Select "] --> P1[" 📂 Phase 1: RAG Analysis "]
P1 <--> H1[" 💬 HITL Review "]
P1 --> P2[" 🌐 Phase 2: Web Litigation "]
P2 <--> H2[" 💬 HITL Review "]
P2 --> P3[" 🔢 Phase 3: Feature Extraction "]
P3 <--> H3[" 💬 HITL Review "]
P3 --> P4[" ⚖️ Phase 4: ML Scoring "]
P4 <--> H4[" 💬 HITL Review "]
P4 --> P5[" 📄 Phase 5: CAM Export "]
P5 --> Done[" ✅ Final Confirmation "]
| Layer | Technology |
|---|---|
| Orchestration | LangGraph (Stateful ReAct Pattern) |
| Reasoning | Llama 3.3 (Groq) / Gemini 2.5 Flash |
| RAG / Memory | Pinecone Cloud + LlamaParse |
| Web Intel | Tavily AI (Credit Research Mode) |
| ML Engine | XGBoost (Binary Classification + Regression) |
| Interface | Streamlit (Stateful Chat & UI) |
# Clone & Setup
git clone https://github.com/ShivamMaurya14/CREDI-MITRA.git
cd CREDI-MITRA
pip install -r requirements.txt
# Configure .env
PINECONE_API_KEY=pcsk_...
GROQ_API_KEY=gsk_...
GOOGLE_API_KEY=AIza...
TAVILY_API_KEY=tvly-...
LLAMA_CLOUD_API_KEY=llx-...
# Launch
streamlit run app.py- [*] Multi-Model Support: Selection of Orchestrator/Analyst.
- [*] Pinecone RAG: Long-term vector memory for financial data.
- Email Integration: Automated Acceptance/Rejection alerts via SendGrid.
- Database Autofetch: Ingest historical records via Application No.
- API Pulls: Real-time GST/MCA/CIBIL verification via official APIs.
- LiveKit Voice: AI-driven borrower interviews (Character 5C).
- Blockchain Ledger: Immutable logs of all AI credit decisions.
Developed for Hackathon 2026 Built with ❤️ by Shivam Maurya
