How reneilwekeoagile061/intellipipeline works
Purpose and local entry points
IntelliPipeline is a local-first MLOps platform for fraud detection: synthetic transaction data is transformed into features, trained and explained, monitored for drift, and exposed through a Flask API and React dashboard. Primary local run path: scripts/run_local_pipeline.py; API: api/app.py; UI bootstrap: dashboard/src/main.jsx.
1. Data generation and feature contract
Synthetic source data is generated before the ML loop. Local feature engineering and validation establish the feature-store boundary and schema consumed by training. The cloud-oriented notebooks mirror this stage for Databricks/Delta migration.
• scripts/generate_sample_data.py
• feature_store/local/feature_engineering.py
• feature_store/schema/feature_schema.json
2. Training, model registration, and explainability
The training layer builds fraud models against local features, benchmarks alternatives, records model artifacts/metrics, and produces SHAP-oriented explainability output. Local MLflow file storage is the intended experiment/runtime mechanism; Azure ML is a future deployment target.
• ml_training/train.py
• ml_training/automl_benchmark.py
• ml_training/xai_report.py
3. Orchestration and governance control plane
Airflow DAGs coordinate the pipeline stages, including the local subprocess-based implementation, retraining flow, and policy-as-code governance checks. This is the primary scheduled/control-flow boundary between data, training, and serving.
• orchestration/dags/fraud_pipeline_local.py
• orchestration/dags/retraining_dag.py
• orchestration/dags/governance_policies.py
4. Serving, scoring, drift, and retraining signals
Serving provides local scoring and drift detection. PSI drift results are persisted as JSON signals; retraining logic consumes or emits triggers based on those signals. The cloud trajectory is a managed endpoint configured separately.
• serving/local_score_server.py
• serving/drift_detector_local.py
• serving/retraining_trigger.py
5. Artifact and observability boundary
Local files under data/local/ are the contract between pipeline/serving jobs and the API/dashboard: model health metrics and latest drift status are read directly rather than through a database. Explainability output is also materialized as a report.
• data/local/model_metrics.json
• data/local/drift_signals/latest_drift.json
• data/xai_report.json
6. API integration layer
Flask registers route modules that expose health, drift, explanation, analytics, and natural-language query capabilities. It mediates dashboard access to local artifacts and provides Claude-backed behavior where an Anthropic key is available, with demo behavior otherwise.
• api/app.py
• api/routes/models.py
• api/routes/query.py
7. Operations dashboard
The Vite/React dashboard is the operator-facing surface for model health, drift, transaction activity, segmentation, green metrics, XAI, and NL queries. Its service layer calls Flask and separately encapsulates Claude interaction.
• dashboard/src/App.jsx
• dashboard/src/services/api.js
• dashboard/src/services/claudeService.js
Runtime and deployment boundaries
Python runs the pipeline, Airflow, Flask, and ML components; Node/Vite runs the dashboard. Docker Compose and image definitions support multi-service local/container execution. Azure/Databricks integration is optional and not yet deployed.
• docker-compose.local.yml
• docker/Dockerfile.api
• docker/Dockerfile.dashboard
Main entry points: train.py Fraud Model Training · models.py Model & Query Routes · fraud_pipeline_local.py Local Pipeline DAG · feature_engineering.py Feature Engineering
Components 21
Data & ML Pipeline
- Synthetic Data Generator
scripts/generate_sample_data.py - Feature Engineering · Creates validated local training features.
feature_store/local/feature_engineering.py - Feature Schema
feature_store/schema/feature_schema.json - Fraud Model Training
ml_training/train.py - Model Benchmarking
ml_training/automl_benchmark.py - XAI Reporting
ml_training/xai_report.py
Orchestration
- Local Pipeline DAG · Coordinates local subprocess pipeline stages.
orchestration/dags/fraud_pipeline_local.py - Retraining DAG
orchestration/dags/retraining_dag.py - Governance Policies
orchestration/dags/governance_policies.py
Serving & Artifacts
- Local Score Server
serving/local_score_server.py - PSI Drift Detector
serving/drift_detector_local.py - Retraining Trigger
serving/retraining_trigger.py - Model Metrics · API and dashboard-facing health contract.
data/local/model_metrics.json - Latest Drift Status · Persisted PSI drift signal.
data/local/drift_signals/latest_drift.json - XAI Report Artifact
data/xai_report.json
API & Dashboard
- Flask API · Mediates dashboard access to local artifacts and query behavior.
api/app.py - Model & Query Routes · Exposes health, drift, explanations, analytics, and NL queries.
api/routes/models.py - React Dashboard · Operator UI for health, drift, XAI, and transactions.
dashboard/src/App.jsx - Dashboard API Service
dashboard/src/services/api.js
Local Runtime
- Local Pipeline Runner
scripts/run_local_pipeline.py - Docker Compose · Runs API and dashboard as local services.
docker-compose.local.yml
Connections 25
- Local Pipeline Runner → Local Pipeline DAG: starts
- Local Pipeline DAG → Synthetic Data Generator: orchestrates
- Synthetic Data Generator → Feature Engineering: source transactions
- Feature Schema → Feature Engineering: validates
- Feature Engineering → Fraud Model Training: local features
- Local Pipeline DAG → Fraud Model Training: orchestrates
- Fraud Model Training → Model Benchmarking: benchmarks
- Fraud Model Training → XAI Reporting: trained model
- Fraud Model Training → Model Metrics: writes metrics
- XAI Reporting → XAI Report Artifact: writes report
- Governance Policies → Local Pipeline DAG: policy checks
- Fraud Model Training → Local Score Server: model artifact
- Local Score Server → PSI Drift Detector: scoring activity
- PSI Drift Detector → Latest Drift Status: writes PSI signal
- Latest Drift Status → Retraining Trigger: drift signal
- Retraining Trigger → Retraining DAG: triggers
- Retraining DAG → Fraud Model Training: retrain
- Flask API → Model & Query Routes: registers
- Model & Query Routes → Model Metrics: reads
- Model & Query Routes → Latest Drift Status: reads
- Model & Query Routes → XAI Report Artifact: reads
- React Dashboard → Dashboard API Service: uses
- Dashboard API Service → Flask API: HTTP
- Docker Compose → Flask API: runs
- Docker Compose → React Dashboard: runs