# monhelpierre/ai-engineering-from-scratch architecture

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

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

## Overview

This repository is a hands-on AI engineering curriculum, not a single application: learners progress from foundations through model engineering and agents, building runnable lesson artifacts along the way. The documented lesson loop moves from concepts to a from-scratch implementation, then production-library use and a reusable deliverable. Learners can browse the curriculum on the site or use documented placement and review skills. The tree and sampled source support the site and several lesson examples; most lesson-to-lesson runtime wiring is not shown, so the graph represents documented curriculum progression rather than inferred code calls.

Main entry points: [`phases/03-deep-learning-core`](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/03-deep-learning-core) (Deep learning core), [`phases/10-llms-from-scratch`](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/10-llms-from-scratch) (LLMs from scratch), [`phases/14-agent-engineering`](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/14-agent-engineering) (Agent engineering), [`phases/19-capstone-projects`](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/19-capstone-projects) (Capstone projects)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning experience"]
  node_site["Curriculum site<br/>[app.js]"]
  node_placement["Placement skills"]
  node_lesson_loop["Lesson workflow"]
  node_artifacts["Reusable artifacts"]
end

subgraph group_foundations["Technical foundations"]
  node_math["Math foundations"]
  node_ml["ML fundamentals"]
end

subgraph group_models["Models and modalities"]
  node_deep_learning["Deep learning core"]
  node_vision["Computer vision"]
  node_nlp_audio["NLP and audio"]
  node_transformers["Transformers and GenAI"]
end

subgraph group_engineering["LLM engineering"]
  node_llm_scratch["LLMs from scratch"]
  node_llm_eng["LLM engineering"]
  node_multimodal["Multimodal AI"]
  node_protocols["Tools and protocols"]
end

subgraph group_agents["Agents and projects"]
  node_agents["Agent engineering"]
  node_autonomous["Autonomous systems"]
  node_capstones["Capstone projects"]
  node_coding_demo["Coding-agent demo<br/>[main.py]"]
  node_rag_demo["End-to-end RAG<br/>[main.py]"]
end

node_learner(("Learner"))

node_learner -->|"browses"| node_site
node_site -->|"shows lessons"| node_learner
node_learner -.->|"requests guidance"| node_placement
node_placement -.->|"suggests starting level"| node_learner
node_learner -->|"studies and builds"| node_lesson_loop
node_lesson_loop -->|"produces"| node_artifacts
node_math -->|"prepares for"| node_ml
node_ml -->|"prepares for"| node_deep_learning
node_deep_learning -->|"supports"| node_vision
node_deep_learning -->|"supports"| node_nlp_audio
node_deep_learning -->|"supports"| node_transformers
node_transformers -->|"prepares for"| node_llm_scratch
node_llm_scratch -->|"prepares for"| node_llm_eng
node_llm_scratch -->|"prepares for"| node_multimodal
node_llm_eng -->|"prepares for"| node_protocols
node_protocols -->|"prepares for"| node_agents
node_agents -->|"extends to"| node_autonomous
node_agents -->|"applies in"| node_capstones
node_capstones -->|"includes"| node_coding_demo
node_capstones -->|"includes"| node_rag_demo

click node_site "https://github.com/monhelpierre/ai-engineering-from-scratch/blob/main/site/app.js"
click node_math "https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/01-math-foundations"
click node_ml "https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/02-ml-fundamentals"
click node_deep_learning "https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/03-deep-learning-core"
click node_vision "https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/04-computer-vision"
click node_nlp_audio "https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/05-nlp-foundations-to-advanced"
click node_transformers "https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/07-transformers-deep-dive"
click node_llm_scratch "https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/10-llms-from-scratch"
click node_llm_eng "https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/11-llm-engineering"
click node_multimodal "https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/12-multimodal-ai"
click node_protocols "https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/13-tools-and-protocols"
click node_agents "https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/14-agent-engineering"
click node_autonomous "https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/15-autonomous-systems"
click node_capstones "https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/19-capstone-projects"
click node_coding_demo "https://github.com/monhelpierre/ai-engineering-from-scratch/blob/main/phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py"
click node_rag_demo "https://github.com/monhelpierre/ai-engineering-from-scratch/blob/main/phases/19-capstone-projects/69-end-to-end-rag-system/code/main.py"

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_site,node_placement,node_lesson_loop,node_artifacts toneBlue
class node_math,node_ml toneAmber
class node_deep_learning,node_vision,node_nlp_audio,node_transformers toneMint
class node_llm_scratch,node_llm_eng,node_multimodal,node_protocols toneRose
class node_agents,node_autonomous,node_capstones,node_coding_demo,node_rag_demo,node_learner toneIndigo
```

## Components

### Learning experience

- [Curriculum site](https://github.com/monhelpierre/ai-engineering-from-scratch/blob/main/site/app.js): `site/app.js`
- **Placement skills**
- **Lesson workflow**
- **Reusable artifacts**

### Technical foundations

- [Math foundations](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/01-math-foundations): `phases/01-math-foundations`
- [ML fundamentals](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/02-ml-fundamentals): `phases/02-ml-fundamentals`

### Models and modalities

- [Deep learning core](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/03-deep-learning-core): `phases/03-deep-learning-core`
- [Computer vision](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/04-computer-vision): `phases/04-computer-vision`
- [NLP and audio](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/05-nlp-foundations-to-advanced): `phases/05-nlp-foundations-to-advanced`
- [Transformers and GenAI](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/07-transformers-deep-dive): `phases/07-transformers-deep-dive`

### LLM engineering

- [LLMs from scratch](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/10-llms-from-scratch): `phases/10-llms-from-scratch`
- [LLM engineering](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/11-llm-engineering): `phases/11-llm-engineering`
- [Multimodal AI](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/12-multimodal-ai): `phases/12-multimodal-ai`
- [Tools and protocols](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/13-tools-and-protocols): `phases/13-tools-and-protocols`

### Agents and projects

- [Agent engineering](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/14-agent-engineering): `phases/14-agent-engineering`
- [Autonomous systems](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/15-autonomous-systems): `phases/15-autonomous-systems`
- [Capstone projects](https://github.com/monhelpierre/ai-engineering-from-scratch/tree/main/phases/19-capstone-projects): `phases/19-capstone-projects`
- [Coding-agent demo](https://github.com/monhelpierre/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`
- [End-to-end RAG](https://github.com/monhelpierre/ai-engineering-from-scratch/blob/main/phases/19-capstone-projects/69-end-to-end-rag-system/code/main.py): `phases/19-capstone-projects/69-end-to-end-rag-system/code/main.py`

### Other components

- **Learner**

## Connections

- Learner → Curriculum site: browses
- Curriculum site → Learner: shows lessons
- Learner → Placement skills: requests guidance
- Placement skills → Learner: suggests starting level
- Learner → Lesson workflow: studies and builds
- Lesson workflow → Reusable artifacts: produces
- Math foundations → ML fundamentals: prepares for
- ML fundamentals → Deep learning core: prepares for
- Deep learning core → Computer vision: supports
- Deep learning core → NLP and audio: supports
- Deep learning core → Transformers and GenAI: supports
- Transformers and GenAI → LLMs from scratch: prepares for
- LLMs from scratch → LLM engineering: prepares for
- LLMs from scratch → Multimodal AI: prepares for
- LLM engineering → Tools and protocols: prepares for
- Tools and protocols → Agent engineering: prepares for
- Agent engineering → Autonomous systems: extends to
- Agent engineering → Capstone projects: applies in
- Capstone projects → Coding-agent demo: includes
- Capstone projects → End-to-end RAG: includes
