# godfather-ace/genpact-skydive-aug2024 architecture

> Architecture diagram of the GitHub repository godfather-ace/genpact-skydive-aug2024, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-31). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/godfather-ace/genpact-skydive-aug2024
- Repository: https://github.com/godfather-ace/genpact-skydive-aug2024

## Overview

##### Project Overview
- This repository is essentially a collection of demo scripts, notebooks, and artifacts used for “Skydive Training.” It contains a variety of demonstrations related to generative AI, including LLM demos, fine-tuning examples, language chain integrations, and even traditional data science/ML and SQL examples.
- The repository is organized into different domains (under “GenAI”, “Python”, “SQL”, “MS Excel”, and “Reference Books”) that cater to different aspects of training — from interactive web application demos (using Streamlit) to interactive data notebooks and even external research/learning resources.

##### Analyzing the File Structure
- The top-level folder “GenAI” is subdivided into modules or demo areas:
- App_Development: Contains a Streamlit demo (app.py plus sample data).
- Cohere_LLM_Demos: Features Jupyter notebooks that showcase prompt patterns and deep dives into Cohere LLM.
- FineTuning_Quantization: Contains several notebooks covering topics like quantization, RLHF, dataset curation, and fine-tuning.
- HuggingFace, LangChain, NLP, Vector DBs, and llama-index: Each of these directories holds demos (again largely in notebook format) that illustrate aspects of LLM integration and retrieval-augmented generation via various libraries and data sources.
- Other sections:
- “Python” houses notebooks for data cleansing, EDA, ML basics, neural network training, and data processing.
- “SQL” contains documents and scripts for practicing SQL queries, integrity constraints, and demo databases.
- “MS Excel” includes files focusing on advanced charting and data analysis.
- Each of these sections is essentially a separate “training module”, addressing aspects of data engineering, model training/inference, and application development.

##### Main Components
a. Training Modules (GenAI):
- Streamlit Demo Application (App_Development/Streamlit_demo101_llm)
- LLM and Prompt Demos (Cohere_LLM_Demos, HuggingFace)
- Fine Tuning & Quantization Examples (FineTuning_Quantization)
- Language Chain & Retrieval Augmentation (LangChain, Vector DBs, llama-index)
- NLP Practices (NLP)
b. Data and Artifact Repositories:
- Shared sample data files (repeated across many demo modules)
- External resources (Reference Books, Excel spreadsheets, CSV datasets in Python/Datasets)
c. Data Science and Analysis Layer:
- Python notebooks focusing on EDA, ML, Neural Networks, and Pandas (separate from the GenAI demos)
d. SQL/Database Training:
- SQL folder content serving as exercises on queries and data integrity
e. Supplementary Training Material:
- MS Excel charts and reference books provide additional reading and practice resources.

##### Relationships and Interactions
- The “GenAI” component acts as the core engine for demos on modern AI processes (LLM integrations, data retrieval, fine-tuning, etc.), and these modules often interact with:
- Sample datasets (present in shared “sample_data_files” folders).
- Data processing scripts (in the Python directory).
- The demo applications (Streamlit and notebooks) serve as interactive presentations that may call underlying libraries (e.g., HuggingFace, LangChain) and data protocols (Vector DBs) to simulate a full-stack system even though they’re primarily training-oriented.
- The repositories for SQL and Excel serve as offline data management and visualization exercises that complement the AI demonstrations.

##### Architectural Patterns and Design Principles
- Modular Design: Each training module (e.g., fine-tuning, retrieval augmentation, NLP practices) is self-contained and focused on a particular technology or framework.
- Loose Coupling: Components such as data artifacts and notebooks are interlinked through shared data files and common techniques (preprocessing, dataset curation).
- Layered Architecture: The design can be viewed in layers – a presentation layer (notebooks/Streamlit demos), a processing layer (LLM integrations, fine-tuning processes), and a data layer (CSV, databases for practice).

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Data and Artifact Repositories
    A["Shared Sample Data Files"]:::data

    %% GenAI Training Modules Subgraph
    subgraph "GenAI Training Modules"
        G1["Interactive LLM Web Demo (Streamlit)"]:::training
        G2["LLM and Prompt Demos (Cohere)"]:::training
        G3["Fine Tuning & Quantization (4-bit Quantization, RLHF)"]:::training
        G4["HuggingFace Demos"]:::training
        G5["LangChain & RAG Demos"]:::training
        G6["Retrieval with llama-index"]:::training
        G7["NLP Practices"]:::training
        G8["Vector Database Demos"]:::training
    end

    %% Data Science & Analysis Subgraph
    subgraph "Data Science & Analysis"
        DSN["Data Science & Analysis Notebooks"]:::analysis
    end

    %% SQL/Database Training Subgraph
    subgraph "SQL/Database Training"
        SQLN["SQL/Database Training Exercises"]:::sql
    end

    %% Supplementary Training Material Subgraph
    subgraph "Supplementary Training Material"
        SUP1["Supplementary Training Materials (MS Excel)"]:::supplementary
        SUP2["Supplementary Reference Materials"]:::supplementary
    end

    %% Connections from Data Source to GenAI Modules
    A -->|"feeds"| G1
    A -->|"feeds"| G2
    A -->|"feeds"| G3
    A -->|"feeds"| G4
    A -->|"feeds"| G5
    A -->|"feeds"| G6
    A -->|"feeds"| G7
    A -->|"feeds"| G8

    %% Connection from Data Source to Data Science Notebooks
    A -->|"supplies"| DSN

    %% Connections from Data Science to SQL and Supplementary materials
    DSN -->|"provides data to"| SQLN
    DSN -->|"supports"| SUP1
    DSN -->|"supports"| SUP2

    %% Click Events
    click G1 "https://github.com/godfather-ace/genpact-skydive-aug2024/tree/main/GenAI/App_Development/Streamlit_demo101_llm"
    click G2 "https://github.com/godfather-ace/genpact-skydive-aug2024/tree/main/GenAI/Cohere_LLM_Demos"
    click G3 "https://github.com/godfather-ace/genpact-skydive-aug2024/tree/main/GenAI/FineTuning_Quantization"
    click G4 "https://github.com/godfather-ace/genpact-skydive-aug2024/tree/main/GenAI/HuggingFace"
    click G5 "https://github.com/godfather-ace/genpact-skydive-aug2024/tree/main/GenAI/LangChain"
    click G6 "https://github.com/godfather-ace/genpact-skydive-aug2024/tree/main/GenAI/llama-index"
    click G7 "https://github.com/godfather-ace/genpact-skydive-aug2024/tree/main/GenAI/NLP"
    click G8 "https://github.com/godfather-ace/genpact-skydive-aug2024/tree/main/GenAI/Vector DBs"
    click DSN "https://github.com/godfather-ace/genpact-skydive-aug2024/tree/main/Python"
    click SQLN "https://github.com/godfather-ace/genpact-skydive-aug2024/tree/main/SQL"
    click SUP1 "https://github.com/godfather-ace/genpact-skydive-aug2024/tree/main/MS Excel"
    click SUP2 "https://github.com/godfather-ace/genpact-skydive-aug2024/tree/main/Reference Books"

    %% Styles
    classDef data fill:#CDEAC0,stroke:#000,stroke-width:1px;
    classDef training fill:#AED6F1,stroke:#000,stroke-width:1px;
    classDef analysis fill:#FCF3CF,stroke:#000,stroke-width:1px;
    classDef sql fill:#F5B7B1,stroke:#000,stroke-width:1px;
    classDef supplementary fill:#D6DBDF,stroke:#000,stroke-width:1px;
```
