# travistangvh/chatgpt-data-science-prompts architecture

> Architecture diagram of the GitHub repository travistangvh/chatgpt-data-science-prompts, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/travistangvh/chatgpt-data-science-prompts
- Repository: https://github.com/travistangvh/chatgpt-data-science-prompts

## Overview

##### Main Components

a. Prompt Categories (Primary Components)
- Write Python Section
- Code Explanation Section
- Code Optimization Section
- Code Formatting Section
- Code Translation Section
- Concept Explanation Section
- Idea Suggestion Section
- Problem Troubleshooting Section
- SQL Writing Section
- Other Code Writing Section
- Miscellaneous Section

b. Interaction Flows
- User Input Flow
- ChatGPT Processing
- Response Generation

**Top Level: Overall System**

- Prompt Categories (11 main sections)
- Individual Prompts
- Prompt Templates

- User Interface Layer
- Input Processing
- Response Formatting

- Integration Layer
- ChatGPT API Connection

##### Key Elements to Highlight

a. Prompt Flow Architecture:
- How user inputs are processed
- Template substitution points
- Response generation path

b. Category Relationships:
- Cross-references between related prompts
- Dependencies between categories
- Reusable components

##### Implementation Details

a. Use standardized symbols:
- Rectangles: Main components
- Diamonds: Decision points
- Clouds: External services (ChatGPT API)

b. Annotations for:
- Prompt template variables
- Required user inputs
- Expected output formats

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph System["Data Science Prompts System"]
        UI[User Interface Layer]
        API[ChatGPT API Integration]:::api
        PROC[Processing Layer]:::proc
        
        subgraph Categories["Prompt Categories"]
            direction TB
            PY["Write Python"]:::cat
            EX["Code Explanation"]:::cat
            OPT["Code Optimization"]:::cat
            FMT["Code Formatting"]:::cat
            TRANS["Code Translation"]:::cat
            CONC["Concept Explanation"]:::cat
            IDEA["Idea Suggestion"]:::cat
            TRBL["Problem Troubleshooting"]:::cat
            SQL["SQL Writing"]:::cat
            OTHER["Other Code Writing"]:::cat
            MISC["Miscellaneous"]:::cat
        end

        subgraph Docs["Documentation"]
            README["README"]:::doc
            GUIDE["Comprehensive Guide"]:::doc
        end

        UI --> PROC
        PROC --> Categories
        PROC --> API
        API --> PROC
        Categories --> PROC
        PROC --> UI
    end

    %% Click events for component mapping
    click PY "https://github.com/travistangvh/ChatGPT-Data-Science-Prompts/tree/main/prompts/1_write_python/"
    click EX "https://github.com/travistangvh/ChatGPT-Data-Science-Prompts/tree/main/prompts/2_explain_code/"
    click OPT "https://github.com/travistangvh/ChatGPT-Data-Science-Prompts/tree/main/prompts/3_optimize_code/"
    click FMT "https://github.com/travistangvh/ChatGPT-Data-Science-Prompts/tree/main/prompts/4_format_code/"
    click TRANS "https://github.com/travistangvh/ChatGPT-Data-Science-Prompts/tree/main/prompts/5_translate_code/"
    click CONC "https://github.com/travistangvh/ChatGPT-Data-Science-Prompts/tree/main/prompts/6_explain_concepts/"
    click IDEA "https://github.com/travistangvh/ChatGPT-Data-Science-Prompts/tree/main/prompts/7_suggest_ideas/"
    click TRBL "https://github.com/travistangvh/ChatGPT-Data-Science-Prompts/tree/main/prompts/8_troubleshoot_problem/"
    click SQL "https://github.com/travistangvh/ChatGPT-Data-Science-Prompts/tree/main/prompts/9_write_sql/"
    click OTHER "https://github.com/travistangvh/ChatGPT-Data-Science-Prompts/tree/main/prompts/10_write_other_code/"
    click MISC "https://github.com/travistangvh/ChatGPT-Data-Science-Prompts/tree/main/prompts/11_misc/"
    click README "https://github.com/travistangvh/ChatGPT-Data-Science-Prompts/blob/main/README.md"
    click GUIDE "https://github.com/travistangvh/ChatGPT-Data-Science-Prompts/blob/main/ChatGPT_DataScience_Prompts.pdf"

    %% Styling
    classDef cat fill:#3498db,stroke:#2980b9,color:white
    classDef api fill:#e67e22,stroke:#d35400,color:white
    classDef proc fill:#2ecc71,stroke:#27ae60,color:white
    classDef doc fill:#95a5a6,stroke:#7f8c8d,color:white

    %% Legend
    subgraph Legend
        L1[Category]:::cat
        L2[API Component]:::api
        L3[Processing Component]:::proc
        L4[Documentation]:::doc
    end
```
