# vishalmysore/ai architecture

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

- Interactive diagram: https://gitdiagram.com/vishalmysore/ai
- Repository: https://github.com/vishalmysore/ai

## Overview

##### Main Components (Top Level)

a) Learning Resources Layer
- Examples Module (Primary component)
- Integration Module
- Deployment Module
- Prompt Engineering Module
- Tools Module

b) Core Infrastructure Layer
- Data Storage (/data directory)
- Source Code (/src directory)
- Examples Repository (/examples directory)

##### Detailed Component Breakdown

a) Examples Module (Show as a hierarchical structure):
- Basic ML/AI Examples
- LLM Models (TinyLama, BERT, GPT)
- Computer Vision (Face Recognition, Image Generation)
- Natural Language Processing
- Vector Databases
- Fine-tuning Examples

b) Technology Stack Components:
- Model Frameworks (Hugging Face, OpenAI)
- Vector Databases (ChromaDB)
- Development Tools (Jupyter Notebooks)
- Deployment Platforms (Colab, Kaggle, LmStudio)

##### Integration Points

- Data flow between examples and data storage
- Integration with external services (OpenAI, Hugging Face)
- Deployment pathways to various platforms
- Interaction between different AI/ML components

##### Specific Design Elements

Use the following visual elements:

##### Component Relationships

Key relationships:
- Data flow from storage to examples
- Model training pipelines
- Integration points with external services
- Deployment workflows
- Dependencies between components

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Legend
        L1[Core Component]:::core
        L2[Example Implementation]:::example
        L3[External Service]:::external
        L4[Deployment Target]:::deployment
        L5["."]:::connection1
        L6[".."]:::connection2
    end

    subgraph "Learning Resources Layer"
        Examples[Examples Module]
        Integration[Integration Module]
        Deployment[Deployment Module]
        PromptEng[Prompt Engineering Module]
        Tools[Tools Module]
    end

    subgraph "Core Infrastructure"
        DataStorage[Data Storage]
        SourceCode[Source Code]
        ExamplesRepo[Examples Repository]
    end

    subgraph "Examples Module Detail"
        BasicML[Basic ML/AI Examples]
        LLMModels[LLM Models]
        CompVision[Computer Vision]
        NLP[Natural Language Processing]
        VectorDB[Vector Databases]
        FineTuning[Fine-tuning Examples]
        RAG[RAG Implementation]
        TimeSeriesA[Time Series Analysis]
        HallucMgmt[Hallucination Management]
        WebTools[Web Application Tools]
        CodeGen[Code Generation]
        Quant[Quantization]
        DecLearn[Decentralized Learning]
        VideoProc[Video Processing]
        SQLInt[SQL Integration]
    end

    subgraph "Technology Stack"
        HuggingFace[Hugging Face]:::external
        OpenAI[OpenAI]:::external
        ChromaDB[ChromaDB]:::external
        Jupyter[Jupyter Notebooks]:::external
        Colab[Google Colab]:::deployment
        Kaggle[Kaggle]:::deployment
        LmStudio[LmStudio]:::deployment
    end

    %% Core Connections
    DataStorage --> Examples
    SourceCode --> Integration
    ExamplesRepo --> Examples

    %% Example Module Connections
    Examples --> BasicML
    Examples --> LLMModels
    Examples --> CompVision
    Examples --> NLP
    Examples --> VectorDB
    Examples --> FineTuning
    Examples --> RAG
    Examples --> TimeSeriesA
    Examples --> HallucMgmt
    Examples --> WebTools
    Examples --> CodeGen
    Examples --> Quant
    Examples --> DecLearn
    Examples --> VideoProc
    Examples --> SQLInt

    %% External Service Connections
    LLMModels -.-> HuggingFace
    NLP -.-> OpenAI
    VectorDB -.-> ChromaDB
    Examples -.-> Jupyter

    %% Deployment Connections
    Deployment --> Colab
    Deployment --> Kaggle
    Deployment --> LmStudio

    %% Click Events
    click DataStorage "https://github.com/vishalmysore/AI/tree/main//data"
    click SourceCode "https://github.com/vishalmysore/AI/tree/main//src/main/java"
    click BasicML "https://github.com/vishalmysore/AI/blob/main//examples/MLAISimpleExample.ipynb"
    click CompVision "https://github.com/vishalmysore/AI/tree/main//examples/images"
    click VectorDB "https://github.com/vishalmysore/AI/blob/main//examples/Vector_Example.ipynb"
    click FineTuning "https://github.com/vishalmysore/AI/blob/main//examples/finetuning.ipynb"
    click RAG "https://github.com/vishalmysore/AI/tree/main//examples/rag"
    click TimeSeriesA "https://github.com/vishalmysore/AI/tree/main//examples/timeseries"
    click HallucMgmt "https://github.com/vishalmysore/AI/tree/main//examples/hallucination"
    click WebTools "https://github.com/vishalmysore/AI/tree/main//examples/webapp"
    click CodeGen "https://github.com/vishalmysore/AI/tree/main//examples/code"
    click Quant "https://github.com/vishalmysore/AI/tree/main//examples/quantization"
    click DecLearn "https://github.com/vishalmysore/AI/tree/main//examples/decentralized"
    click VideoProc "https://github.com/vishalmysore/AI/tree/main//examples/video"
    click SQLInt "https://github.com/vishalmysore/AI/tree/main//examples/sql"
    click PromptEng "https://github.com/vishalmysore/AI/blob/main//src/main/java/openai/BasicPrompt.java"

    %% Styling
    classDef core fill:#a8d1ff,stroke:#000
    classDef example fill:#90EE90,stroke:#000
    classDef external fill:#FFD700,stroke:#000
    classDef deployment fill:#FF6B6B,stroke:#000
    classDef connection1 stroke-width:1px,stroke-dasharray: 5 5
    classDef connection2 stroke-width:2px
```
