# aws-samples/amazon-ai-samples architecture

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

- Interactive diagram: https://gitdiagram.com/aws-samples/amazon-ai-samples
- Repository: https://github.com/aws-samples/amazon-ai-samples

## Overview

Amazon AI Samples is a repository of independent tutorials, sample applications, workshops, and reusable patterns for Amazon foundation models and AI services—not one integrated runtime. A representative end-to-end workflow is Nova customization: prepare data, fine-tune with SFT, optionally run RFT, evaluate, then deploy. The README also documents separate branches for multimodal understanding and embeddings, voice, browser agents, and coding-assistant skills. The tree and excerpts show only selected implementations, so collection-level nodes preserve documented capabilities without implying unverified calls between samples.

Main entry points: [`customization/Nova_2.0/02_sft`](https://github.com/aws-samples/amazon-ai-samples/tree/main/customization/Nova_2.0/02_sft) (Supervised tuning), [`customization/Nova_2.0/04_eval`](https://github.com/aws-samples/amazon-ai-samples/tree/main/customization/Nova_2.0/04_eval) (Model evaluation), [`customization`](https://github.com/aws-samples/amazon-ai-samples/tree/main/customization) (Nova customization), [`customization/Nova_2.0/01_data_prep`](https://github.com/aws-samples/amazon-ai-samples/tree/main/customization/Nova_2.0/01_data_prep) (Data preparation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customization["Model customization"]
  node_customize["Nova customization"]
  node_data_prep["Data preparation<br/>[01_data_prep]"]
  node_sft["Supervised tuning<br/>[02_sft]"]
  node_rft["Reinforcement tuning<br/>[03_rft]"]
  node_evaluation["Model evaluation<br/>[04_eval]"]
  node_deployment["Model deployment<br/>[05_deployment]"]
  node_distillation["Bedrock distillation"]
end

subgraph group_multimodal["Multimodal AI"]
  node_multimodal_understanding["Understanding samples"]
  node_understanding_patterns["RAG and agent patterns"]
  node_sample_apps["Understanding apps"]
  node_prompt_tools["Prompt optimization"]
  node_embeddings["Multimodal embeddings"]
end

subgraph group_voice["Speech applications"]
  node_sonic["Real-time voice"]
  node_sonic25["Sonic 2.5"]
end

subgraph group_agents["Agents and skills"]
  node_browser_agents["Browser automation"]
  node_coding_skills["Coding assistant skills"]
  node_ergo["Ergo guide"]
end

subgraph group_speech["Speech services"]
  node_polly["Text to speech"]
  node_transcribe["Speech to text"]
end

node_engineer(("Developer"))

node_engineer -->|"customizes models"| node_customize
node_customize -->|"starts with"| node_data_prep
node_data_prep -->|"prepares for"| node_sft
node_sft -.->|"can continue to"| node_rft
node_sft -->|"evaluates"| node_evaluation
node_rft -->|"evaluates"| node_evaluation
node_evaluation -->|"precedes"| node_deployment
node_engineer -->|"explores"| node_distillation
node_engineer -->|"builds with"| node_multimodal_understanding
node_engineer -->|"builds search"| node_embeddings
node_engineer -->|"builds voice agents"| node_sonic
node_engineer -->|"uses voice guide"| node_sonic25
node_engineer -->|"synthesizes speech"| node_polly
node_engineer -->|"adds transcription"| node_transcribe
node_engineer -->|"automates browsers"| node_browser_agents
node_engineer -->|"uses assistant skills"| node_coding_skills
node_engineer -->|"configures Ergo"| node_ergo

click node_customize "https://github.com/aws-samples/amazon-ai-samples/tree/main/customization"
click node_data_prep "https://github.com/aws-samples/amazon-ai-samples/tree/main/customization/Nova_2.0/01_data_prep"
click node_sft "https://github.com/aws-samples/amazon-ai-samples/tree/main/customization/Nova_2.0/02_sft"
click node_rft "https://github.com/aws-samples/amazon-ai-samples/tree/main/customization/Nova_2.0/03_rft"
click node_evaluation "https://github.com/aws-samples/amazon-ai-samples/tree/main/customization/Nova_2.0/04_eval"
click node_deployment "https://github.com/aws-samples/amazon-ai-samples/tree/main/customization/Nova_2.0/05_deployment"
click node_distillation "https://github.com/aws-samples/amazon-ai-samples/tree/main/customization/bedrock-distillation"
click node_multimodal_understanding "https://github.com/aws-samples/amazon-ai-samples/tree/main/multimodal-understanding"
click node_understanding_patterns "https://github.com/aws-samples/amazon-ai-samples/tree/main/multimodal-understanding/repeatable-patterns"
click node_sample_apps "https://github.com/aws-samples/amazon-ai-samples/tree/main/multimodal-understanding/sample-apps"
click node_prompt_tools "https://github.com/aws-samples/amazon-ai-samples/tree/main/multimodal-understanding/nova-meta-prompter"
click node_embeddings "https://github.com/aws-samples/amazon-ai-samples/tree/main/multimodal-embeddings"
click node_sonic "https://github.com/aws-samples/amazon-ai-samples/tree/main/speech-to-speech/amazon-nova-2-sonic"
click node_sonic25 "https://github.com/aws-samples/amazon-ai-samples/tree/main/speech-to-speech/amazon-nova-2.5-sonic"
click node_polly "https://github.com/aws-samples/amazon-ai-samples/tree/main/text-to-speech"
click node_transcribe "https://github.com/aws-samples/amazon-ai-samples/tree/main/speech-to-text"
click node_browser_agents "https://github.com/aws-samples/amazon-ai-samples/tree/main/nova-act"
click node_coding_skills "https://github.com/aws-samples/amazon-ai-samples/tree/main/skills"
click node_ergo "https://github.com/aws-samples/amazon-ai-samples/tree/main/Ergo"

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_customize,node_data_prep,node_sft,node_rft,node_evaluation,node_deployment,node_distillation toneBlue
class node_multimodal_understanding,node_understanding_patterns,node_sample_apps,node_prompt_tools,node_embeddings toneAmber
class node_sonic,node_sonic25 toneMint
class node_browser_agents,node_coding_skills,node_ergo toneRose
class node_polly,node_transcribe,node_engineer toneIndigo
```

## Components

### Model customization

- [Nova customization](https://github.com/aws-samples/amazon-ai-samples/tree/main/customization): `customization`
- [Data preparation](https://github.com/aws-samples/amazon-ai-samples/tree/main/customization/Nova_2.0/01_data_prep): `customization/Nova_2.0/01_data_prep`
- [Supervised tuning](https://github.com/aws-samples/amazon-ai-samples/tree/main/customization/Nova_2.0/02_sft): `customization/Nova_2.0/02_sft`
- [Reinforcement tuning](https://github.com/aws-samples/amazon-ai-samples/tree/main/customization/Nova_2.0/03_rft): `customization/Nova_2.0/03_rft`
- [Model evaluation](https://github.com/aws-samples/amazon-ai-samples/tree/main/customization/Nova_2.0/04_eval): `customization/Nova_2.0/04_eval`
- [Model deployment](https://github.com/aws-samples/amazon-ai-samples/tree/main/customization/Nova_2.0/05_deployment): `customization/Nova_2.0/05_deployment`
- [Bedrock distillation](https://github.com/aws-samples/amazon-ai-samples/tree/main/customization/bedrock-distillation): `customization/bedrock-distillation`

### Multimodal AI

- [Understanding samples](https://github.com/aws-samples/amazon-ai-samples/tree/main/multimodal-understanding): `multimodal-understanding`
- [RAG and agent patterns](https://github.com/aws-samples/amazon-ai-samples/tree/main/multimodal-understanding/repeatable-patterns): `multimodal-understanding/repeatable-patterns`
- [Understanding apps](https://github.com/aws-samples/amazon-ai-samples/tree/main/multimodal-understanding/sample-apps): `multimodal-understanding/sample-apps`
- [Prompt optimization](https://github.com/aws-samples/amazon-ai-samples/tree/main/multimodal-understanding/nova-meta-prompter): `multimodal-understanding/nova-meta-prompter`
- [Multimodal embeddings](https://github.com/aws-samples/amazon-ai-samples/tree/main/multimodal-embeddings): `multimodal-embeddings`

### Speech applications

- [Real-time voice](https://github.com/aws-samples/amazon-ai-samples/tree/main/speech-to-speech/amazon-nova-2-sonic): `speech-to-speech/amazon-nova-2-sonic`
- [Sonic 2.5](https://github.com/aws-samples/amazon-ai-samples/tree/main/speech-to-speech/amazon-nova-2.5-sonic): `speech-to-speech/amazon-nova-2.5-sonic`

### Agents and skills

- [Browser automation](https://github.com/aws-samples/amazon-ai-samples/tree/main/nova-act): `nova-act`
- [Coding assistant skills](https://github.com/aws-samples/amazon-ai-samples/tree/main/skills): `skills`
- [Ergo guide](https://github.com/aws-samples/amazon-ai-samples/tree/main/Ergo): `Ergo`

### Speech services

- [Text to speech](https://github.com/aws-samples/amazon-ai-samples/tree/main/text-to-speech): `text-to-speech`
- [Speech to text](https://github.com/aws-samples/amazon-ai-samples/tree/main/speech-to-text): `speech-to-text`

### Other components

- **Developer**

## Connections

- Developer → Nova customization: customizes models (evidence: `README.md`)
- Nova customization → Data preparation: starts with (evidence: `README.md`)
- Data preparation → Supervised tuning: prepares for (evidence: `README.md`)
- Supervised tuning → Reinforcement tuning: can continue to (evidence: `README.md`)
- Supervised tuning → Model evaluation: evaluates (evidence: `README.md`)
- Reinforcement tuning → Model evaluation: evaluates (evidence: `README.md`)
- Model evaluation → Model deployment: precedes (evidence: `README.md`)
- Developer → Bedrock distillation: explores (evidence: `README.md`)
- Developer → Understanding samples: builds with (evidence: `README.md`)
- Developer → Multimodal embeddings: builds search (evidence: `README.md`)
- Developer → Real-time voice: builds voice agents (evidence: `README.md`)
- Developer → Sonic 2.5: uses voice guide (evidence: `README.md`)
- Developer → Text to speech: synthesizes speech (evidence: `README.md`)
- Developer → Speech to text: adds transcription (evidence: `README.md`)
- Developer → Browser automation: automates browsers (evidence: `README.md`)
- Developer → Coding assistant skills: uses assistant skills (evidence: `README.md`)
- Developer → Ergo guide: configures Ergo (evidence: `README.md`)
