How nandininema07/credit-intelligence-platform works
This is a real-time credit-risk intelligence platform: it collects financial and unstructured events, derives features, scores companies, explains score changes, and routes alerts to analysts. The documented pipeline is the principal data-to-result workflow; the FastAPI backend and dashboard expose company, score, explanation, chat, and alert capabilities. The graph also shows key model, feature-store, and notification integrations. Some subsystem links rely on README descriptions or SOURCE INDEX references; unsampled implementation details are not inferred.
Main entry points: main.py FastAPI Application · score_service.py Score Service · alert_engine.py Alert Engine · main_processor.py Feature Engineering
Components 24
Analysis Pipeline
- Data Ingestion
stage1_data_ingestion/main_pipeline.py - Raw Data Store
stage1_data_ingestion/storage/postgres_manager.py - Feature Engineering
stage2_feature_engineering/main_processor.py - Feature Store
stage2_feature_engineering/feature_store/feature_store.py - Model Training
stage3_model_training/main_trainer.py - Model Scoring
stage3_model_training/scoring/real_time_scorer.py
Insights and Alerts
- XAI Explanations
stage4_explainability/main_explainer.py - AI Chat
stage4_explainability/chatbot/chat_engine.py - Alert Engine
stage5_alerting_workflows/alerting/alert_engine.py - Notifications
stage5_alerting_workflows/notifications/email_notifier.py - Alert Workflows
stage5_alerting_workflows/workflows/workflow_engine.py
API Backend
- FastAPI Application
backend/main.py - Company API
backend/app/api/companies.py - Company Service
backend/app/services/company_service.py - Score API
backend/app/api/scores.py - Score Service
backend/app/services/score_service.py - Alert API
backend/app/api/alerts.py - Alert Service
backend/app/services/alert_service.py - Chat API
backend/app/api/chat.py - WebSocket API
backend/app/api/websocket.py - API Database
backend/app/database.py
Analyst Dashboard
- Analyst Dashboard
frontend/app/page.tsx - Dashboard Views
frontend/components
Other components
- Analyst
Connections 31
- Data Ingestion → Raw Data Store: writes records
stage1_data_ingestion/main_pipeline.py - Data Ingestion → Feature Engineering: feeds features
README.md - Feature Engineering → Feature Store: stores features
stage2_feature_engineering/main_processor.py - Feature Engineering → Model Training: provides features
README.md - Model Training → Model Scoring: trains models
- Model Scoring → XAI Explanations: provides score impact
README.md - XAI Explanations → Alert Engine: provides context
README.md - Alert Engine → Notifications: dispatches alerts
stage5_alerting_workflows/main_alerting.py - Alert Engine → Alert Workflows: routes workflows
- FastAPI Application → Company API: registers routes
backend/main.py - FastAPI Application → Score API: registers routes
backend/main.py - FastAPI Application → Alert API: registers routes
backend/main.py - FastAPI Application → Chat API: registers routes
backend/main.py - FastAPI Application → WebSocket API: registers routes
backend/main.py - Company API → Company Service: calls
backend/app/api/companies.py - Score API → Score Service: calls
backend/app/api/scores.py - Alert API → Alert Service: calls
backend/app/api/alerts.py - Chat API → AI Chat: uses assistant
- Score Service → Feature Store: reads features
backend/app/services/score_service.py - Score Service → Model Scoring: requests prediction
backend/app/services/score_service.py - Score Service → XAI Explanations: requests explanation
backend/app/services/score_service.py - Alert Service → Alert Engine: integrates engine
backend/app/services/alert_service.py - Alert Service → Notifications: sends notifications
backend/app/services/alert_service.py - Company API → API Database: uses sessions
backend/app/api/companies.py - Score API → API Database: uses sessions
backend/app/api/scores.py - Alert API → API Database: uses sessions
backend/app/api/alerts.py - Analyst → Analyst Dashboard: uses
README.md - Analyst Dashboard → Dashboard Views: renders
frontend/app/page.tsx - Analyst Dashboard → FastAPI Application: queries API
README.md - Analyst → Chat API: asks questions
README.md - Analyst → WebSocket API: receives live updates
README.md