# yshukla2024/ojt-ai-projects architecture

> Architecture diagram of the GitHub repository yshukla2024/ojt-ai-projects, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-08-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yshukla2024/ojt-ai-projects
- Repository: https://github.com/yshukla2024/ojt-ai-projects

## Overview

##### Project(s) and Their Purpose
- Chatbot-Streamlit – A simple web UI (Streamlit) exposing a conversational AI model.
- ML-Models – A notebook for training or experimenting with ML models on restaurant data.
- Python-EDA – A Jupyter notebook-driven exploratory data analysis on the Zomato dataset.
- PowerBI-Dashboard – A BI dashboard (Power BI) visualizing superstore sales.

##### Pinpoint Main Components & Boundaries
- Data Sources
– restaurant_data.csv (ML-Models)
– Zomato-data-.csv (Python-EDA)
– superstore_sales_full.csv (PowerBI-Dashboard)
- Compute/Processing
– Jupyter Notebooks (project.ipynb, Data-Analysis.ipynb)
– Python code in app.py
- Model Artifacts
– Serialized model files (if created) or in-memory model in notebooks
- Presentation / UI
– Streamlit app for chat interface
– Power BI service/dashboard

##### Interactions & Data Flows
- Data Ingestion → EDA Notebook
- EDA insights feed feature engineering into ML-Models
- Trained model from ML-Models → deployed in Chatbot-Streamlit
- PowerBI Dashboard reads CSV periodically or on demand

##### Architectural Patterns & Principles
- Separation of Concerns
– Each subproject has its own directory, config, and data.
- Data Pipeline Pattern
- Layered Approach
– Data layer (raw CSVs)
– Processing layer (notebooks / scripts)
– Serving layer (Streamlit, PowerBI)

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Data Layer
    subgraph "Data Layer"
        direction TB
        D1["restaurant_data.csv"]:::data
        D2["Zomato-data-.csv"]:::data
        D3["superstore_sales_full.csv"]:::data
    end

    %% Processing Layer
    subgraph "Processing Layer"
        direction TB
        P1["Data-Analysis.ipynb"]:::process
        P2["project.ipynb"]:::process
    end

    %% Serving/UI Layer
    subgraph "Serving/UI Layer"
        direction TB
        U1["app.py (Streamlit)"]:::ui
        U2["Regional Sales Tracker.pbix"]:::ui
    end

    %% Documentation & Config
    subgraph "Documentation & Config"
        direction TB
        Doc1["README.md"]:::doc
        Doc2["requirements.txt"]:::doc
        Doc3["Readme.md (Chatbot-Streamlit)"]:::doc
    end

    %% Data Flows
    D1 -->|"CSV→DataFrame"| P1
    D2 -->|"CSV→DataFrame"| P1
    P1 -->|"Insights→Features"| P2
    D1 -->|"CSV→DataFrame"| P2
    P2 -->|"Model pickle"| U1
    D3 -->|"CSV pull"| U2

    %% Click Events
    click D1 "https://github.com/yshukla2024/ojt-ai-projects/blob/main/ML-Models/restaurant_data.csv"
    click D2 "https://github.com/yshukla2024/ojt-ai-projects/blob/main/Python-EDA/Zomato-data-.csv"
    click D3 "https://github.com/yshukla2024/ojt-ai-projects/blob/main/PowerBI-Dashboard/superstore_sales_full.csv"
    click P1 "https://github.com/yshukla2024/ojt-ai-projects/blob/main/Python-EDA/Data-Analysis.ipynb"
    click P2 "https://github.com/yshukla2024/ojt-ai-projects/blob/main/ML-Models/project.ipynb"
    click U1 "https://github.com/yshukla2024/ojt-ai-projects/blob/main/Chatbot-Streamlit/app.py"
    click U2 "https://github.com/yshukla2024/ojt-ai-projects/blob/main/PowerBI-Dashboard/Regional Sales Tracker.pbix"
    click Doc1 "https://github.com/yshukla2024/ojt-ai-projects/blob/main/README.md"
    click Doc2 "https://github.com/yshukla2024/ojt-ai-projects/blob/main/requirements.txt"
    click Doc3 "https://github.com/yshukla2024/ojt-ai-projects/blob/main/Chatbot-Streamlit/Readme.md"

    %% Styles
    classDef data fill:#cce5ff,stroke:#004085,color:#004085
    classDef process fill:#d4edda,stroke:#155724,color:#155724
    classDef ui fill:#fff3cd,stroke:#856404,color:#856404
    classDef doc fill:#e2e3e5,stroke:#6c757d,color:#6c757d
```
