# fancyboi999/ai-engineering-from-scratch-zh architecture

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

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

## Overview

This repository is a Chinese-language, hands-on AI engineering curriculum with a companion interactive learning site and certification tracks. The main learner workflow is to choose a learning goal or course, study explanations and runnable experiments, then practice through quizzes and project work; the README also describes optional AI mentor skills that read course material and track progress. The graph groups the course by broad subject, while retaining notable implementation examples and the site client. Relationships are limited to those documented in the README or visible in excerpts; the API handlers and most course implementations were not sampled.

Main entry points: [`phases/19-capstone-projects`](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/19-capstone-projects) (Capstone Projects), [`phases/11-llm-engineering`](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/11-llm-engineering) (LLM Engineering), [`phases/14-agent-engineering`](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/14-agent-engineering) (Agent Engineering), [`phases/03-deep-learning-core`](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/03-deep-learning-core) (Deep Learning)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_curriculum["AI Curriculum"]
  node_setup["Setup And Math"]
  node_ml["ML Foundations"]
  node_deep["Deep Learning"]
  node_vision["Computer Vision"]
  node_nlp["NLP And Speech"]
  node_transformers["Transformers And GenAI"]
  node_llm_build["LLM Foundations"]
end

subgraph group_applications["LLM And Agents"]
  node_llm_eng["LLM Engineering"]
  node_prompting["Prompting"]
  node_rag["Advanced RAG<br/>[main.py]"]
  node_tools["Tools And Protocols"]
  node_skills["Skill Evaluation<br/>[main.py]"]
  node_agents["Agent Engineering"]
  node_workbench["Agent Workbench<br/>[main.py]"]
  node_autonomy["Autonomous Systems"]
  node_multiagent["Multi-Agent Systems<br/>[main.ts]"]
  node_production["Production Systems"]
  node_safety["Safety And Alignment"]
  node_capstone["Capstone Projects"]
  node_coding_demo["Coding Agent Demo<br/>[main.py]"]
  node_eval_pipeline["Evaluation Pipeline<br/>[main.py]"]
end

subgraph group_site["Learning Site"]
  node_site_client["Interactive Site<br/>[app.js]"]
  node_lesson_api["Lesson API<br/>[lesson.js]"]
  node_markdown_api["Markdown API<br/>[markdown.js]"]
end

subgraph group_certs["Certifications"]
  node_claude_cert["Claude Certification"]
  node_mcpa_cert["MCPA Certification"]
end

node_learner(("Learner"))

node_learner -->|"browses courses"| node_site_client
node_learner -->|"chooses a path"| node_setup
node_learner -->|"studies certification"| node_claude_cert
node_learner -->|"studies certification"| node_mcpa_cert
node_site_client -.->|"requests lessons"| node_lesson_api
node_site_client -.->|"requests Markdown"| node_markdown_api
node_setup -->|"builds foundations"| node_ml
node_ml -->|"builds foundations"| node_deep
node_deep -->|"branches into"| node_vision
node_deep -->|"branches into"| node_nlp
node_nlp -->|"leads to"| node_transformers
node_transformers -->|"leads to"| node_llm_build
node_llm_build -->|"leads to"| node_llm_eng
node_llm_eng -->|"leads to"| node_tools
node_tools -->|"leads to"| node_agents
node_agents -->|"leads to"| node_autonomy
node_autonomy -->|"leads to"| node_multiagent
node_agents -->|"branches into"| node_production
node_autonomy -->|"branches into"| node_safety
node_multiagent -->|"leads to"| node_capstone
node_production -->|"leads to"| node_capstone
node_safety -->|"leads to"| node_capstone
node_llm_eng -->|"includes example"| node_prompting
node_llm_eng -->|"includes example"| node_rag
node_tools -->|"includes example"| node_skills
node_agents -->|"includes capstone"| node_workbench
node_capstone -->|"includes project"| node_coding_demo
node_capstone -->|"includes project"| node_eval_pipeline

click node_setup "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/00-setup-and-tooling"
click node_ml "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/02-ml-fundamentals"
click node_deep "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/03-deep-learning-core"
click node_vision "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/04-computer-vision"
click node_nlp "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/05-nlp-foundations-to-advanced"
click node_transformers "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/07-transformers-deep-dive"
click node_llm_build "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/10-llms-from-scratch"
click node_llm_eng "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/11-llm-engineering"
click node_prompting "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/phases/11-llm-engineering/01-prompt-engineering/code/prompt_engineering.py"
click node_rag "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/phases/11-llm-engineering/07-advanced-rag/code/main.py"
click node_tools "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/13-tools-and-protocols"
click node_skills "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/phases/13-tools-and-protocols/27-skill-evals-packaging-and-portability/code/main.py"
click node_agents "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/14-agent-engineering"
click node_workbench "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/phases/14-agent-engineering/42-agent-workbench-capstone/code/main.py"
click node_autonomy "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/15-autonomous-systems"
click node_multiagent "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/phases/16-multi-agent-and-swarms/03-communication-protocols/code/main.ts"
click node_production "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/17-infrastructure-and-production"
click node_safety "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/18-ethics-safety-alignment"
click node_capstone "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/19-capstone-projects"
click node_coding_demo "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py"
click node_eval_pipeline "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/phases/19-capstone-projects/41-eval-pipeline/code/main.py"
click node_site_client "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/site/app.js"
click node_lesson_api "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/api/lesson.js"
click node_markdown_api "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/api/markdown.js"
click node_claude_cert "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/certifications/claude/lessons"
click node_mcpa_cert "https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/certifications/mcpa/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_setup,node_ml,node_deep,node_vision,node_nlp,node_transformers,node_llm_build toneBlue
class node_llm_eng,node_prompting,node_rag,node_tools,node_skills,node_agents,node_workbench,node_autonomy,node_multiagent,node_production,node_safety,node_capstone,node_coding_demo,node_eval_pipeline toneAmber
class node_site_client,node_lesson_api,node_markdown_api toneMint
class node_claude_cert,node_mcpa_cert toneRose
class node_learner toneIndigo
```

## Components

### AI Curriculum

- [Setup And Math](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/00-setup-and-tooling): `phases/00-setup-and-tooling`
- [ML Foundations](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/02-ml-fundamentals): `phases/02-ml-fundamentals`
- [Deep Learning](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/03-deep-learning-core): `phases/03-deep-learning-core`
- [Computer Vision](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/04-computer-vision): `phases/04-computer-vision`
- [NLP And Speech](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/05-nlp-foundations-to-advanced): `phases/05-nlp-foundations-to-advanced`
- [Transformers And GenAI](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/07-transformers-deep-dive): `phases/07-transformers-deep-dive`
- [LLM Foundations](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/10-llms-from-scratch): `phases/10-llms-from-scratch`

### LLM And Agents

- [LLM Engineering](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/11-llm-engineering): `phases/11-llm-engineering`
- [Prompting](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/phases/11-llm-engineering/01-prompt-engineering/code/prompt_engineering.py): `phases/11-llm-engineering/01-prompt-engineering/code/prompt_engineering.py`
- [Advanced RAG](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/phases/11-llm-engineering/07-advanced-rag/code/main.py): `phases/11-llm-engineering/07-advanced-rag/code/main.py`
- [Tools And Protocols](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/13-tools-and-protocols): `phases/13-tools-and-protocols`
- [Skill Evaluation](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/phases/13-tools-and-protocols/27-skill-evals-packaging-and-portability/code/main.py): `phases/13-tools-and-protocols/27-skill-evals-packaging-and-portability/code/main.py`
- [Agent Engineering](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/14-agent-engineering): `phases/14-agent-engineering`
- [Agent Workbench](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/phases/14-agent-engineering/42-agent-workbench-capstone/code/main.py): `phases/14-agent-engineering/42-agent-workbench-capstone/code/main.py`
- [Autonomous Systems](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/15-autonomous-systems): `phases/15-autonomous-systems`
- [Multi-Agent Systems](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/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`
- [Production Systems](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/17-infrastructure-and-production): `phases/17-infrastructure-and-production`
- [Safety And Alignment](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/18-ethics-safety-alignment): `phases/18-ethics-safety-alignment`
- [Capstone Projects](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/phases/19-capstone-projects): `phases/19-capstone-projects`
- [Coding Agent Demo](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/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 Pipeline](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/phases/19-capstone-projects/41-eval-pipeline/code/main.py): `phases/19-capstone-projects/41-eval-pipeline/code/main.py`

### Learning Site

- [Interactive Site](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/site/app.js): `site/app.js`
- [Lesson API](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/api/lesson.js): `api/lesson.js`
- [Markdown API](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/blob/main/api/markdown.js): `api/markdown.js`

### Certifications

- [Claude Certification](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/certifications/claude/lessons): `certifications/claude/lessons`
- [MCPA Certification](https://github.com/fancyboi999/ai-engineering-from-scratch-zh/tree/main/certifications/mcpa/lessons): `certifications/mcpa/lessons`

### Other components

- **Learner**

## Connections

- Learner → Interactive Site: browses courses (evidence: `README.md`)
- Learner → Setup And Math: chooses a path (evidence: `README.md`)
- Learner → Claude Certification: studies certification (evidence: `README.md`)
- Learner → MCPA Certification: studies certification (evidence: `README.md`)
- Interactive Site → Lesson API: requests lessons
- Interactive Site → Markdown API: requests Markdown
- Setup And Math → ML Foundations: builds foundations (evidence: `README.md`)
- ML Foundations → Deep Learning: builds foundations (evidence: `README.md`)
- Deep Learning → Computer Vision: branches into (evidence: `README.md`)
- Deep Learning → NLP And Speech: branches into (evidence: `README.md`)
- NLP And Speech → Transformers And GenAI: leads to (evidence: `README.md`)
- Transformers And GenAI → LLM Foundations: leads to (evidence: `README.md`)
- LLM Foundations → LLM Engineering: leads to (evidence: `README.md`)
- LLM Engineering → Tools And Protocols: leads to (evidence: `README.md`)
- Tools And Protocols → Agent Engineering: leads to (evidence: `README.md`)
- Agent Engineering → Autonomous Systems: leads to (evidence: `README.md`)
- Autonomous Systems → Multi-Agent Systems: leads to (evidence: `README.md`)
- Agent Engineering → Production Systems: branches into (evidence: `README.md`)
- Autonomous Systems → Safety And Alignment: branches into (evidence: `README.md`)
- Multi-Agent Systems → Capstone Projects: leads to (evidence: `README.md`)
- Production Systems → Capstone Projects: leads to (evidence: `README.md`)
- Safety And Alignment → Capstone Projects: leads to (evidence: `README.md`)
- LLM Engineering → Prompting: includes example (evidence: `README.md`)
- LLM Engineering → Advanced RAG: includes example (evidence: `README.md`)
- Tools And Protocols → Skill Evaluation: includes example (evidence: `README.md`)
- Agent Engineering → Agent Workbench: includes capstone (evidence: `README.md`)
- Capstone Projects → Coding Agent Demo: includes project (evidence: `README.md`)
- Capstone Projects → Evaluation Pipeline: includes project (evidence: `README.md`)
