# chandreshyy/ai-engineering-from-scratch architecture

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

- Interactive diagram: https://gitdiagram.com/chandreshyy/ai-engineering-from-scratch
- Repository: https://github.com/chandreshyy/ai-engineering-from-scratch

## Overview

This repository is an open-source AI engineering curriculum: learners choose a route, study lessons, run code, and retain evidence of what they built. Its content spans foundations, model and modality specialties, and production engineering, with a separate Claude certification track. The README also describes a website using the same curriculum. The graph groups lesson files by domain and calls out substantial indexed capstones; relationships are limited to documented learner workflows because most application wiring was not sampled.

Main entry points: [`phases/01-math-foundations`](https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/01-math-foundations) (Math and ML), [`phases/02-ml-fundamentals/13-ml-pipelines/code/pipeline.py`](https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/02-ml-fundamentals/13-ml-pipelines/code/pipeline.py) (ML pipeline lesson), [`phases/11-llm-engineering`](https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/11-llm-engineering) (LLM applications), [`phases/13-tools-and-protocols`](https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/13-tools-and-protocols) (Tools and protocols)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Curriculum foundations"]
  node_foundations["Math and ML"]
  node_ml_pipeline["ML pipeline lesson<br/>[pipeline.py]"]
  node_deep_learning["Deep learning"]
end

subgraph group_specialties["AI specialties"]
  node_transformer_capstone["Transformer capstone<br/>[main.py]"]
  node_vision["Computer vision"]
  node_yolo["YOLO detection lesson<br/>[main.py]"]
  node_nlp["NLP and retrieval"]
  node_rag_chunking["RAG chunking lesson<br/>[main.ts]"]
  node_generative["Generative AI"]
  node_multimodal["Multimodal AI"]
end

subgraph group_engineering["Applied engineering"]
  node_llm_build["LLM construction"]
  node_inference["Inference optimization<br/>[main.rs]"]
  node_llm_engineering["LLM applications"]
  node_prompting["Prompt engineering"]
  node_protocols["Tools and protocols"]
  node_mcp_server["MCP server lesson<br/>[main.py]"]
  node_mcp_operations["MCP operations lesson<br/>[main.py]"]
  node_agents["Agents and autonomy"]
  node_agent_workbench["Agent workbench<br/>[main.py]"]
  node_multiagent["Multi-agent protocols<br/>[main.ts]"]
  node_gateway["AI gateway lesson<br/>[main.ts]"]
  node_coding_capstone["Coding-agent capstone<br/>[main.py]"]
  node_eval_capstone["Evaluation capstone<br/>[main.py]"]
end

subgraph group_platform["Learning platform"]
  node_site["Curriculum website<br/>[app.js]"]
end

subgraph group_certification["Certification"]
  node_claude_academy["Claude certification"]
end

node_learner(("Learner"))

node_learner -->|"chooses route"| node_foundations
node_learner -->|"chooses route"| node_llm_engineering
node_learner -->|"chooses route"| node_agents
node_learner -->|"chooses route"| node_protocols
node_learner -->|"chooses route"| node_claude_academy
node_learner -->|"opens lessons"| node_site
node_learner -->|"runs lesson"| node_ml_pipeline
node_learner -->|"builds artifact"| node_coding_capstone

click node_foundations "https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/01-math-foundations"
click node_ml_pipeline "https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/02-ml-fundamentals/13-ml-pipelines/code/pipeline.py"
click node_deep_learning "https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/03-deep-learning-core"
click node_transformer_capstone "https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/07-transformers-deep-dive/14-build-a-transformer-capstone/code/main.py"
click node_vision "https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/04-computer-vision"
click node_yolo "https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/04-computer-vision/06-object-detection-yolo/code/main.py"
click node_nlp "https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/05-nlp-foundations-to-advanced"
click node_rag_chunking "https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/05-nlp-foundations-to-advanced/23-chunking-strategies-rag/code/main.ts"
click node_generative "https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/08-generative-ai"
click node_multimodal "https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/12-multimodal-ai"
click node_llm_build "https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/10-llms-from-scratch"
click node_inference "https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/10-llms-from-scratch/12-inference-optimization/code/main.rs"
click node_llm_engineering "https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/11-llm-engineering"
click node_prompting "https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/11-llm-engineering/01-prompt-engineering/code/prompt_engineering.py"
click node_protocols "https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/13-tools-and-protocols"
click node_mcp_server "https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/certifications/claude/lessons/11-mcp-server-design-and-integration/code/main.py"
click node_mcp_operations "https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/13-tools-and-protocols/31-mcp-conformance-versioning-and-operations/code/main.py"
click node_agents "https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/14-agent-engineering"
click node_agent_workbench "https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/14-agent-engineering/42-agent-workbench-capstone/code/main.py"
click node_multiagent "https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/16-multi-agent-and-swarms/03-communication-protocols/code/main.ts"
click node_gateway "https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/17-infrastructure-and-production/19-ai-gateways/code/main.ts"
click node_coding_capstone "https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py"
click node_eval_capstone "https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/19-capstone-projects/41-eval-pipeline/code/main.py"
click node_site "https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/site/app.js"
click node_claude_academy "https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/certifications/claude/lessons"

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_foundations,node_ml_pipeline,node_deep_learning toneBlue
class node_transformer_capstone,node_vision,node_yolo,node_nlp,node_rag_chunking,node_generative,node_multimodal toneAmber
class node_llm_build,node_inference,node_llm_engineering,node_prompting,node_protocols,node_mcp_server,node_mcp_operations,node_agents,node_agent_workbench,node_multiagent,node_gateway,node_coding_capstone,node_eval_capstone toneMint
class node_site toneRose
class node_claude_academy,node_learner toneIndigo
```

## Components

### Curriculum foundations

- [Math and ML](https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/01-math-foundations): `phases/01-math-foundations`
- [ML pipeline lesson](https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/02-ml-fundamentals/13-ml-pipelines/code/pipeline.py): `phases/02-ml-fundamentals/13-ml-pipelines/code/pipeline.py`
- [Deep learning](https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/03-deep-learning-core): `phases/03-deep-learning-core`

### AI specialties

- [Transformer capstone](https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/07-transformers-deep-dive/14-build-a-transformer-capstone/code/main.py): `phases/07-transformers-deep-dive/14-build-a-transformer-capstone/code/main.py`
- [Computer vision](https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/04-computer-vision): `phases/04-computer-vision`
- [YOLO detection lesson](https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/04-computer-vision/06-object-detection-yolo/code/main.py): `phases/04-computer-vision/06-object-detection-yolo/code/main.py`
- [NLP and retrieval](https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/05-nlp-foundations-to-advanced): `phases/05-nlp-foundations-to-advanced`
- [RAG chunking lesson](https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/05-nlp-foundations-to-advanced/23-chunking-strategies-rag/code/main.ts): `phases/05-nlp-foundations-to-advanced/23-chunking-strategies-rag/code/main.ts`
- [Generative AI](https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/08-generative-ai): `phases/08-generative-ai`
- [Multimodal AI](https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/12-multimodal-ai): `phases/12-multimodal-ai`

### Applied engineering

- [LLM construction](https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/10-llms-from-scratch): `phases/10-llms-from-scratch`
- [Inference optimization](https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/10-llms-from-scratch/12-inference-optimization/code/main.rs): `phases/10-llms-from-scratch/12-inference-optimization/code/main.rs`
- [LLM applications](https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/11-llm-engineering): `phases/11-llm-engineering`
- [Prompt engineering](https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/11-llm-engineering/01-prompt-engineering/code/prompt_engineering.py): `phases/11-llm-engineering/01-prompt-engineering/code/prompt_engineering.py`
- [Tools and protocols](https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/13-tools-and-protocols): `phases/13-tools-and-protocols`
- [MCP server lesson](https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/certifications/claude/lessons/11-mcp-server-design-and-integration/code/main.py): `certifications/claude/lessons/11-mcp-server-design-and-integration/code/main.py`
- [MCP operations lesson](https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/13-tools-and-protocols/31-mcp-conformance-versioning-and-operations/code/main.py): `phases/13-tools-and-protocols/31-mcp-conformance-versioning-and-operations/code/main.py`
- [Agents and autonomy](https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/phases/14-agent-engineering): `phases/14-agent-engineering`
- [Agent workbench](https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/14-agent-engineering/42-agent-workbench-capstone/code/main.py): `phases/14-agent-engineering/42-agent-workbench-capstone/code/main.py`
- [Multi-agent protocols](https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/16-multi-agent-and-swarms/03-communication-protocols/code/main.ts): `phases/16-multi-agent-and-swarms/03-communication-protocols/code/main.ts`
- [AI gateway lesson](https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/17-infrastructure-and-production/19-ai-gateways/code/main.ts): `phases/17-infrastructure-and-production/19-ai-gateways/code/main.ts`
- [Coding-agent capstone](https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py): `phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py`
- [Evaluation capstone](https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/phases/19-capstone-projects/41-eval-pipeline/code/main.py): `phases/19-capstone-projects/41-eval-pipeline/code/main.py`

### Learning platform

- [Curriculum website](https://github.com/chandreshyy/ai-engineering-from-scratch/blob/main/site/app.js): `site/app.js`

### Certification

- [Claude certification](https://github.com/chandreshyy/ai-engineering-from-scratch/tree/main/certifications/claude/lessons): `certifications/claude/lessons`

### Other components

- **Learner**

## Connections

- Learner → Math and ML: chooses route (evidence: `README.md`)
- Learner → LLM applications: chooses route (evidence: `README.md`)
- Learner → Agents and autonomy: chooses route (evidence: `README.md`)
- Learner → Tools and protocols: chooses route (evidence: `README.md`)
- Learner → Claude certification: chooses route (evidence: `README.md`)
- Learner → Curriculum website: opens lessons (evidence: `README.md`)
- Learner → ML pipeline lesson: runs lesson (evidence: `README.md`)
- Learner → Coding-agent capstone: builds artifact (evidence: `README.md`)
