# yuraj023/ai-engineering-from-scratch architecture

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

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

## Overview

AI Engineering from Scratch is an open-source learning platform and curriculum: learners follow lessons, run implementations, explore interactive labs, and complete project challenges. The repository also includes certification curricula, technical manuals, and a website/API surface. The graph keeps these product branches distinct and shows the documented learner-to-lesson path. Source excerpts expose the report-agent and voice-transcription pipelines; connections within those subsystems follow their sampled calls. Other relationships are limited to README statements because most site and API implementation was not sampled.

Main entry points: [`projects/research-report-agent/solution/report_agent/pipeline.py`](https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/pipeline.py) (Report workflow), [`phases`](https://github.com/yuraj023/ai-engineering-from-scratch/tree/main/phases) (Technical lessons), [`projects/research-report-agent/solution/report_agent/writer.py`](https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/writer.py) (Cited writer), [`manuals`](https://github.com/yuraj023/ai-engineering-from-scratch/tree/main/manuals) (Technical manuals)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning curriculum"]
  node_curriculum["Technical lessons"]
  node_lesson_code["Runnable examples<br/>[optimizers.py]"]
  node_cert_claude["Claude certification"]
  node_cert_mcp["MCP certification"]
end

subgraph group_reference["Reference material"]
  node_manuals["Technical manuals"]
  node_figkit["Figure renderer<br/>[figkit.js]"]
end

subgraph group_projects["Project challenges"]
  node_project_challenges["Project challenges"]
  node_report_pipeline["Report workflow<br/>[pipeline.py]"]
  node_corpus["Corpus loader<br/>[corpus.py]"]
  node_planner["Research planner<br/>[planner.py]"]
  node_search["BM25 search<br/>[search.py]"]
  node_writer["Cited writer<br/>[writer.py]"]
  node_snippets["Snippet extraction<br/>[snippets.py]"]
  node_critic["Claim verifier<br/>[critic.py]"]
  node_publisher["Report publisher<br/>[publish.py]"]
  node_voice_pipeline["Voice transcription<br/>[pipeline.py]"]
  node_pcm["PCM audio codec<br/>[pcm.py]"]
end

subgraph group_platform["Website and API"]
  node_site["Learning website<br/>[app.js]"]
  node_api["Content API"]
end

node_learner(("Learner"))

node_learner -->|"learns on"| node_site
node_learner -->|"follows lessons"| node_curriculum
node_curriculum -->|"runs examples"| node_lesson_code
node_learner -->|"builds projects"| node_project_challenges
node_report_pipeline -->|"loads documents"| node_corpus
node_report_pipeline -->|"plans research"| node_planner
node_report_pipeline -->|"builds index"| node_search
node_report_pipeline -->|"gathers and writes"| node_writer
node_writer -->|"extracts snippets"| node_snippets
node_report_pipeline -->|"verifies claims"| node_critic
node_report_pipeline -->|"renders report"| node_publisher
node_voice_pipeline -->|"decodes audio"| node_pcm
node_manuals -->|"renders figures"| node_figkit

click node_curriculum "https://github.com/yuraj023/ai-engineering-from-scratch/tree/main/phases"
click node_lesson_code "https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/phases/01-math-foundations/08-optimization/code/optimizers.py"
click node_cert_claude "https://github.com/yuraj023/ai-engineering-from-scratch/tree/main/certifications/claude/lessons"
click node_cert_mcp "https://github.com/yuraj023/ai-engineering-from-scratch/tree/main/certifications/mcpa/lessons"
click node_manuals "https://github.com/yuraj023/ai-engineering-from-scratch/tree/main/manuals"
click node_figkit "https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/manuals/_shared/figkit.js"
click node_project_challenges "https://github.com/yuraj023/ai-engineering-from-scratch/tree/main/projects"
click node_report_pipeline "https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/pipeline.py"
click node_corpus "https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/corpus.py"
click node_planner "https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/planner.py"
click node_search "https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/search.py"
click node_writer "https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/writer.py"
click node_snippets "https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/snippets.py"
click node_critic "https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/critic.py"
click node_publisher "https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/publish.py"
click node_voice_pipeline "https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/voice-note-transcriber-pipeline/solution/pipeline.py"
click node_pcm "https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/voice-note-transcriber-pipeline/solution/pcm.py"
click node_site "https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/site/app.js"
click node_api "https://github.com/yuraj023/ai-engineering-from-scratch/tree/main/api"

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_curriculum,node_lesson_code,node_cert_claude,node_cert_mcp toneBlue
class node_manuals,node_figkit toneAmber
class node_project_challenges,node_report_pipeline,node_corpus,node_planner,node_search,node_writer,node_snippets,node_critic,node_publisher,node_voice_pipeline,node_pcm toneMint
class node_site,node_api toneRose
class node_learner toneIndigo
```

## Components

### Learning curriculum

- [Technical lessons](https://github.com/yuraj023/ai-engineering-from-scratch/tree/main/phases): `phases`
- [Runnable examples](https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/phases/01-math-foundations/08-optimization/code/optimizers.py): `phases/01-math-foundations/08-optimization/code/optimizers.py`
- [Claude certification](https://github.com/yuraj023/ai-engineering-from-scratch/tree/main/certifications/claude/lessons): `certifications/claude/lessons`
- [MCP certification](https://github.com/yuraj023/ai-engineering-from-scratch/tree/main/certifications/mcpa/lessons): `certifications/mcpa/lessons`

### Reference material

- [Technical manuals](https://github.com/yuraj023/ai-engineering-from-scratch/tree/main/manuals): `manuals`
- [Figure renderer](https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/manuals/_shared/figkit.js): `manuals/_shared/figkit.js`

### Project challenges

- [Project challenges](https://github.com/yuraj023/ai-engineering-from-scratch/tree/main/projects): `projects`
- [Report workflow](https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/pipeline.py): `projects/research-report-agent/solution/report_agent/pipeline.py`
- [Corpus loader](https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/corpus.py): `projects/research-report-agent/solution/report_agent/corpus.py`
- [Research planner](https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/planner.py): `projects/research-report-agent/solution/report_agent/planner.py`
- [BM25 search](https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/search.py): `projects/research-report-agent/solution/report_agent/search.py`
- [Cited writer](https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/writer.py): `projects/research-report-agent/solution/report_agent/writer.py`
- [Snippet extraction](https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/snippets.py): `projects/research-report-agent/solution/report_agent/snippets.py`
- [Claim verifier](https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/critic.py): `projects/research-report-agent/solution/report_agent/critic.py`
- [Report publisher](https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/research-report-agent/solution/report_agent/publish.py): `projects/research-report-agent/solution/report_agent/publish.py`
- [Voice transcription](https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/voice-note-transcriber-pipeline/solution/pipeline.py): `projects/voice-note-transcriber-pipeline/solution/pipeline.py`
- [PCM audio codec](https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/projects/voice-note-transcriber-pipeline/solution/pcm.py): `projects/voice-note-transcriber-pipeline/solution/pcm.py`

### Website and API

- [Learning website](https://github.com/yuraj023/ai-engineering-from-scratch/blob/main/site/app.js): `site/app.js`
- [Content API](https://github.com/yuraj023/ai-engineering-from-scratch/tree/main/api): `api`

### Other components

- **Learner**

## Connections

- Learner → Learning website: learns on (evidence: `README.md`)
- Learner → Technical lessons: follows lessons (evidence: `README.md`)
- Technical lessons → Runnable examples: runs examples (evidence: `README.md`)
- Learner → Project challenges: builds projects (evidence: `README.md`)
- Report workflow → Corpus loader: loads documents (evidence: `projects/research-report-agent/solution/report_agent/pipeline.py`)
- Report workflow → Research planner: plans research (evidence: `projects/research-report-agent/solution/report_agent/pipeline.py`)
- Report workflow → BM25 search: builds index (evidence: `projects/research-report-agent/solution/report_agent/pipeline.py`)
- Report workflow → Cited writer: gathers and writes (evidence: `projects/research-report-agent/solution/report_agent/pipeline.py`)
- Cited writer → Snippet extraction: extracts snippets (evidence: `projects/research-report-agent/solution/report_agent/writer.py`)
- Report workflow → Claim verifier: verifies claims (evidence: `projects/research-report-agent/solution/report_agent/pipeline.py`)
- Report workflow → Report publisher: renders report (evidence: `projects/research-report-agent/solution/report_agent/pipeline.py`)
- Voice transcription → PCM audio codec: decodes audio (evidence: `projects/voice-note-transcriber-pipeline/solution/pipeline.py`)
- Technical manuals → Figure renderer: renders figures (evidence: `manuals/a2a-101/figures/src/fig-context-and-tasks.js`)
