# varshith192/tata_steel_ai_hacakthon2026 architecture

> Architecture diagram of the GitHub repository varshith192/tata_steel_ai_hacakthon2026, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/varshith192/tata_steel_ai_hacakthon2026
- Repository: https://github.com/varshith192/tata_steel_ai_hacakthon2026

## Overview

Stelos AI is an industrial predictive-maintenance platform: it turns equipment sensor data into diagnoses, evidence-backed maintenance actions, financial impact, alerts, and operator-facing fleet views. The documented principal workflow runs through a six-stage agent pipeline; the graph also includes adaptive health analytics, fleet scheduling, persistence, and major dashboard capabilities. Several UI-to-API and optional-service connections are documented only at product level, so those links are dashed. Unsampled capabilities use their exact enclosing directory paths.

Main entry points: [`backend/main.py`](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/main.py) (FastAPI service), [`backend/agents/workflow.py`](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/workflow.py) (Agent workflow), [`backend/agents/nodes.py`](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/nodes.py) (Diagnostic agent), [`backend/agents/api_integration.py`](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/api_integration.py) (Health integration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Operator experience"]
  node_dashboard["Fleet dashboards"]
  node_maintenance_hub["Maintenance hub"]
  node_whatif["What-if simulator"]
  node_copilot["AI copilot and vision"]
end

subgraph group_api["API and monitoring"]
  node_api_service["FastAPI service<br/>[main.py]"]
  node_alerts["Sentinel alerts<br/>[main.py]"]
  node_reports_metrics["Reports and metrics<br/>[main.py]"]
end

subgraph group_analytics["Health and fleet analytics"]
  node_health_engine["Dynamic health engine<br/>[dynamic_health.py]"]
  node_health_api["Health integration<br/>[api_integration.py]"]
  node_scheduler["Maintenance optimizer"]
end

subgraph group_agents["Maintenance agents"]
  node_pipeline["Agent workflow<br/>[workflow.py]"]
  node_diagnosis["Diagnostic agent<br/>[nodes.py]"]
  node_anomaly["Anomaly detection"]
  node_classifier["Fault classifier"]
  node_retrieval_agent["Knowledge retrieval agent<br/>[nodes.py]"]
  node_root_cause["Root cause analysis<br/>[nodes.py]"]
  node_prediction["Predictive maintenance<br/>[nodes.py]"]
  node_rul["Weibull RUL model<br/>[rul_predictor.py]"]
  node_business["Business impact<br/>[nodes.py]"]
  node_executive["Executive narrative<br/>[nodes.py]"]
end

subgraph group_data["Knowledge and persistence"]
  node_rag["Hybrid knowledge search<br/>[knowledge_base.py]"]
  node_documents["Maintenance documents<br/>[documents.py]"]
  node_history["Sensor history<br/>[sensor_history.py]"]
  node_plant["Plant topology<br/>[plant_topology.py]"]
  node_database[("Relational database<br/>[database.py]")]
  node_models["Maintenance records<br/>[models.py]"]
  node_feedback["Feedback learning<br/>[main.py]"]
end

node_operators(("Plant operators"))
node_sensors(("Sensor streams"))
node_external_llm{{"LLM services"}}
node_email{{"Gmail SMTP"}}

node_operators -->|"views fleet"| node_dashboard
node_operators -->|"manages work"| node_maintenance_hub
node_operators -->|"simulates scenarios"| node_whatif
node_operators -->|"asks questions"| node_copilot
node_sensors -.->|"provide readings"| node_api_service
node_api_service -->|"runs workflow"| node_pipeline
node_api_service -->|"requests health analysis"| node_health_engine
node_health_api -->|"calculates health"| node_health_engine
node_health_api -->|"builds maintenance queue"| node_scheduler
node_pipeline -->|"dispatches stages"| node_diagnosis
node_diagnosis -->|"detects anomalies"| node_anomaly
node_diagnosis -->|"classifies faults"| node_classifier
node_pipeline -->|"dispatches stages"| node_retrieval_agent
node_retrieval_agent -->|"retrieves evidence"| node_rag
node_rag -->|"indexes documents"| node_documents
node_pipeline -->|"dispatches stages"| node_root_cause
node_pipeline -->|"dispatches stages"| node_prediction
node_prediction -->|"estimates remaining life"| node_rul
node_pipeline -->|"dispatches stages"| node_business
node_pipeline -->|"dispatches stages"| node_executive
node_api_service -->|"reads sensor trends"| node_history
node_api_service -->|"loads topology"| node_plant
node_api_service -->|"opens sessions"| node_database
node_database -->|"maps records"| node_models
node_api_service -->|"records operator feedback"| node_feedback
node_api_service -->|"pushes alerts"| node_alerts
node_api_service -->|"serves reports and metrics"| node_reports_metrics
node_api_service -.->|"requests explanations"| node_external_llm
node_api_service -.->|"sends reports"| node_email
node_dashboard -.->|"loads live data"| node_api_service
node_maintenance_hub -.->|"manages records"| node_api_service
node_whatif -.->|"requests scenarios"| node_api_service
node_copilot -.->|"sends queries"| node_api_service

click node_dashboard "https://github.com/varshith192/tata_steel_ai_hacakthon2026/tree/master/frontend/src/app"
click node_maintenance_hub "https://github.com/varshith192/tata_steel_ai_hacakthon2026/tree/master/frontend/src/app/ops"
click node_whatif "https://github.com/varshith192/tata_steel_ai_hacakthon2026/tree/master/frontend/src/app/whatif"
click node_copilot "https://github.com/varshith192/tata_steel_ai_hacakthon2026/tree/master/frontend/src/app/console"
click node_api_service "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/main.py"
click node_alerts "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/main.py"
click node_reports_metrics "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/main.py"
click node_health_engine "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/dynamic_health.py"
click node_health_api "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/api_integration.py"
click node_scheduler "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/maintenance_optimizer.py"
click node_pipeline "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/workflow.py"
click node_diagnosis "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/nodes.py"
click node_anomaly "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/anomaly_detector.py"
click node_classifier "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/ml/failure_classifier.py"
click node_retrieval_agent "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/nodes.py"
click node_rag "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/rag/knowledge_base.py"
click node_documents "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/rag/documents.py"
click node_root_cause "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/nodes.py"
click node_prediction "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/nodes.py"
click node_rul "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/rul_predictor.py"
click node_business "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/nodes.py"
click node_executive "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/nodes.py"
click node_history "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/data/sensor_history.py"
click node_plant "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/plant_topology.py"
click node_database "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/database.py"
click node_models "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/models.py"
click node_feedback "https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/main.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dashboard,node_maintenance_hub,node_whatif,node_copilot toneBlue
class node_api_service,node_alerts,node_reports_metrics toneAmber
class node_health_engine,node_health_api,node_scheduler toneMint
class node_pipeline,node_diagnosis,node_anomaly,node_classifier,node_retrieval_agent,node_root_cause,node_prediction,node_rul,node_business,node_executive toneRose
class node_rag,node_documents,node_history,node_plant,node_database,node_models,node_feedback,node_operators,node_sensors,node_external_llm,node_email toneIndigo
```

## Components

### Operator experience

- [Fleet dashboards](https://github.com/varshith192/tata_steel_ai_hacakthon2026/tree/master/frontend/src/app): `frontend/src/app`
- [Maintenance hub](https://github.com/varshith192/tata_steel_ai_hacakthon2026/tree/master/frontend/src/app/ops): `frontend/src/app/ops`
- [What-if simulator](https://github.com/varshith192/tata_steel_ai_hacakthon2026/tree/master/frontend/src/app/whatif): `frontend/src/app/whatif`
- [AI copilot and vision](https://github.com/varshith192/tata_steel_ai_hacakthon2026/tree/master/frontend/src/app/console): `frontend/src/app/console`

### API and monitoring

- [FastAPI service](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/main.py): `backend/main.py`
- [Sentinel alerts](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/main.py): `backend/main.py`
- [Reports and metrics](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/main.py): `backend/main.py`

### Health and fleet analytics

- [Dynamic health engine](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/dynamic_health.py): `backend/agents/dynamic_health.py`
- [Health integration](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/api_integration.py): `backend/agents/api_integration.py`
- [Maintenance optimizer](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/maintenance_optimizer.py): `backend/agents/maintenance_optimizer.py`

### Maintenance agents

- [Agent workflow](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/workflow.py): `backend/agents/workflow.py`
- [Diagnostic agent](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/nodes.py): `backend/agents/nodes.py`
- [Anomaly detection](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/anomaly_detector.py): `backend/agents/anomaly_detector.py`
- [Fault classifier](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/ml/failure_classifier.py): `backend/ml/failure_classifier.py`
- [Knowledge retrieval agent](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/nodes.py): `backend/agents/nodes.py`
- [Root cause analysis](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/nodes.py): `backend/agents/nodes.py`
- [Predictive maintenance](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/nodes.py): `backend/agents/nodes.py`
- [Weibull RUL model](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/rul_predictor.py): `backend/agents/rul_predictor.py`
- [Business impact](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/nodes.py): `backend/agents/nodes.py`
- [Executive narrative](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/agents/nodes.py): `backend/agents/nodes.py`

### Knowledge and persistence

- [Hybrid knowledge search](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/rag/knowledge_base.py): `backend/rag/knowledge_base.py`
- [Maintenance documents](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/rag/documents.py): `backend/rag/documents.py`
- [Sensor history](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/data/sensor_history.py): `backend/data/sensor_history.py`
- [Plant topology](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/plant_topology.py): `backend/plant_topology.py`
- [Relational database](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/database.py): `backend/database.py`
- [Maintenance records](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/models.py): `backend/models.py`
- [Feedback learning](https://github.com/varshith192/tata_steel_ai_hacakthon2026/blob/master/backend/main.py): `backend/main.py`

### Other components

- **Plant operators**
- **Sensor streams**
- **LLM services**
- **Gmail SMTP**

## Connections

- Plant operators → Fleet dashboards: views fleet (evidence: `README.md`)
- Plant operators → Maintenance hub: manages work (evidence: `README.md`)
- Plant operators → What-if simulator: simulates scenarios (evidence: `README.md`)
- Plant operators → AI copilot and vision: asks questions (evidence: `README.md`)
- Sensor streams → FastAPI service: provide readings
- FastAPI service → Agent workflow: runs workflow (evidence: `backend/main.py`)
- FastAPI service → Dynamic health engine: requests health analysis
- Health integration → Dynamic health engine: calculates health (evidence: `backend/agents/api_integration.py`)
- Health integration → Maintenance optimizer: builds maintenance queue (evidence: `backend/agents/api_integration.py`)
- Agent workflow → Diagnostic agent: dispatches stages (evidence: `backend/agents/workflow.py`)
- Diagnostic agent → Anomaly detection: detects anomalies (evidence: `backend/agents/nodes.py`)
- Diagnostic agent → Fault classifier: classifies faults (evidence: `backend/agents/nodes.py`)
- Agent workflow → Knowledge retrieval agent: dispatches stages (evidence: `backend/agents/workflow.py`)
- Knowledge retrieval agent → Hybrid knowledge search: retrieves evidence (evidence: `backend/agents/nodes.py`)
- Hybrid knowledge search → Maintenance documents: indexes documents (evidence: `backend/rag/knowledge_base.py`)
- Agent workflow → Root cause analysis: dispatches stages (evidence: `README.md`)
- Agent workflow → Predictive maintenance: dispatches stages (evidence: `README.md`)
- Predictive maintenance → Weibull RUL model: estimates remaining life (evidence: `backend/agents/nodes.py`)
- Agent workflow → Business impact: dispatches stages (evidence: `README.md`)
- Agent workflow → Executive narrative: dispatches stages (evidence: `README.md`)
- FastAPI service → Sensor history: reads sensor trends (evidence: `backend/main.py`)
- FastAPI service → Plant topology: loads topology (evidence: `backend/main.py`)
- FastAPI service → Relational database: opens sessions (evidence: `backend/database.py`)
- Relational database → Maintenance records: maps records (evidence: `backend/database.py`)
- FastAPI service → Feedback learning: records operator feedback (evidence: `README.md`)
- FastAPI service → Sentinel alerts: pushes alerts (evidence: `README.md`)
- FastAPI service → Reports and metrics: serves reports and metrics (evidence: `README.md`)
- FastAPI service → LLM services: requests explanations (evidence: `README.md`)
- FastAPI service → Gmail SMTP: sends reports (evidence: `README.md`)
- Fleet dashboards → FastAPI service: loads live data
- Maintenance hub → FastAPI service: manages records
- What-if simulator → FastAPI service: requests scenarios
- AI copilot and vision → FastAPI service: sends queries
