How musabumair687/intelligent-credit-decision-support-platform works
This is an AI-powered credit decision support platform combining loan-risk prediction and explainability with policy retrieval, conversational assistance, and what-if simulation. A user can submit an application in the web UI; the API routes requests to a shared decision orchestrator, which uses prediction, evidence, retrieval, and response-generation stages and retains session context. The README also describes automated banking-policy compliance. Some domain modules are unsampled; their presence and orchestrator references are visible in the source index, but details of their internal behavior and several frontend-to-API connections are not shown.
Main entry points: orchestrator.py Request orchestrator · main.py FastAPI app · App.jsx App shell · query.py Unified query route
Components 31
Web experience
- App shell
frontend/src/App.jsx - UI state
frontend/src/context/AppContext.jsx - Loan prediction UI
frontend/src/pages/LoanPrediction.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Knowledge assistant
frontend/src/pages/KnowledgeAssistant.jsx - API client
frontend/src/api/client.js - Prediction gauge
frontend/src/components/DonutGauge.jsx
REST API
- FastAPI app
backend/main.py - Unified query route
backend/routers/query.py - Decision route
backend/routers/decision.py - Simulation route
backend/routers/simulation.py - Knowledge route
backend/routers/knowledge.py - General route
backend/routers/general.py - Request schemas
backend/schemas.py - Response serializers
backend/serializers.py
Decision intelligence
- Request orchestrator
rag/decision_intelligence/orchestrator.py - Intent routing
rag/decision_intelligence/routing/intent_router.py - Session manager
rag/decision_intelligence/managers/session_manager.py - What-if simulation
rag/decision_intelligence/simulation/simulation_engine.py - Evidence building
rag/decision_intelligence/evidence/evidence_builder.py - Retrieval query
rag/decision_intelligence/evidence/query_generator.py - Response generation
rag/decision_intelligence/generator/response_generator.py - Groq language model
rag/LLM/gemini_service.py
Policy retrieval
- Retrieval coordinator
rag/decision_intelligence/retrieval/retrieval_engine.py - Rank fusion
rag/retriever/rrf_retriever.py - Semantic search
rag/retriever/semantic_retriever.py - Keyword search
rag/retriever/keyword_retriever.py - Cross-encoder reranker
rag/retriever/cross_encoder_reranker.py - Vector store
rag/vector_store/vector_store.py
Risk prediction
- Credit prediction
ml/prediction_service.py
Other components
- Platform user
Connections 32
- Platform user → App shell: uses
frontend/src/App.jsx - App shell → UI state: reads state
frontend/src/App.jsx - App shell → Loan prediction UI: renders
frontend/src/App.jsx - App shell → Dashboard: renders
frontend/src/App.jsx - App shell → Knowledge assistant: renders
frontend/src/App.jsx - Loan prediction UI → UI state: uses state
frontend/src/pages/LoanPrediction.jsx - Loan prediction UI → API client: uses
frontend/src/pages/LoanPrediction.jsx - Dashboard → UI state: reads state
frontend/src/pages/Dashboard.jsx - Dashboard → Prediction gauge: renders
frontend/src/pages/Dashboard.jsx - FastAPI app → Unified query route: registers
backend/main.py - FastAPI app → Decision route: registers
backend/main.py - FastAPI app → Simulation route: registers
backend/main.py - FastAPI app → Knowledge route: registers
backend/main.py - FastAPI app → General route: registers
backend/main.py - FastAPI app → Request orchestrator: initializes
backend/main.py - Unified query route → Request orchestrator: processes request
backend/routers/query.py - Unified query route → Response serializers: builds response
backend/routers/query.py - Unified query route → Request schemas: validates request
backend/routers/query.py - Request orchestrator → Intent routing: routes intent
rag/decision_intelligence/orchestrator.py - Request orchestrator → Session manager: stores context
rag/decision_intelligence/orchestrator.py - Request orchestrator → What-if simulation: runs simulation
rag/decision_intelligence/orchestrator.py - Request orchestrator → Evidence building: builds evidence
rag/decision_intelligence/orchestrator.py - Request orchestrator → Retrieval query: generates query
rag/decision_intelligence/orchestrator.py - Request orchestrator → Retrieval coordinator: retrieves evidence
rag/decision_intelligence/orchestrator.py - Request orchestrator → Credit prediction: predicts risk
rag/decision_intelligence/orchestrator.py - Request orchestrator → Response generation: generates answer
rag/decision_intelligence/orchestrator.py - Retrieval coordinator → Rank fusion: searches
rag/decision_intelligence/retrieval/retrieval_engine.py - Retrieval coordinator → Cross-encoder reranker: reranks results
rag/decision_intelligence/retrieval/retrieval_engine.py - Rank fusion → Semantic search: searches
rag/retriever/rrf_retriever.py - Rank fusion → Keyword search: searches
rag/retriever/rrf_retriever.py - Semantic search → Vector store: queries
rag/retriever/semantic_retriever.py - Intent routing → Groq language model: uses
rag/decision_intelligence/routing/intent_router.py