使用说明
GenAI & Agentic AI — From Fundamentals to Production Design
A practical engineering knowledge base for building and evaluating Generative AI and agentic systems. Follow a structured learning path, examine architecture and production trade-offs, or explore eight runnable educational case studies.
For: AI engineers, technical leads, architects, and engineering leaders assessing how AI systems should be designed, evaluated, secured, and operated.
Explore in 2 minutes
| If you want to… | Start here |
|---|---|
| Understand the fundamentals | GenAI fundamentals |
| Design agents and tool workflows | Agentic AI |
| Evaluate safety, reliability, latency, and cost | Production AI |
| Review enterprise architecture trade-offs | AI platform system design |
| Explore working examples | Eight applied case studies |
| Follow a structured progression | Learning roadmap |
What makes this repository useful
- Architecture-first explanations: not just what a component does, but where it fits, what can fail, and which alternatives to consider.
- Production decision points: evaluations, observability, access controls, failure handling, latency, scalability, and unit economics.
- Executable learning examples: eight case-study scenarios with synthetic data and tests; examples are educational, not claims of deployed enterprise systems.
- Leadership-level trade-offs: when to use RAG versus fine-tuning, single versus multi-agent designs, shared platforms versus product-specific implementations, and when simpler automation is preferable.
Suggested first read for a CTO or AI engineering leader: AI Platform Architecture → Evaluation & Observability → Security & Guardrails → Applied Case Studies.
Scope: This is an educational and technical reference portfolio. Runnable case studies use teaching implementations and synthetic scenarios; production architecture discussions are design guidance, not evidence of live customer deployments.
Repository Structure
| Learning Area | Purpose |
|---|---|
| 01 · GenAI Fundamentals | AI/ML foundations, LLMs, tokenization, transformers, prompting, embeddings, vector databases, search/retrieval, RAG, fine-tuning, inference, hallucination, and AI frameworks |
| 02 · Agentic AI | Agents, tools, memory, planning, Agentic RAG, multi-agent systems, multimodal/conversational agents, agent training/adaptation, state machines, graph orchestration, Google ADK, agent skills/capability engineering, voice/realtime agents, MCP, and A2A |
| 03 · Production AI | Evaluation, observability, security, reliability, context engineering, performance, latency, cost, LLMOps/deployment, and AI data engineering |
| 04 · System Design | End-to-end architecture and production system-design deep dives |
| 05 · Design Patterns | Reusable architecture and implementation patterns for RAG, agents, memory, orchestration, and reliability |
| 06 · Applied AI Case Studies | Eight runnable scenarios spanning support, incidents, voice, IT, security, finance, multi-agent pipelines, and delivery status |
The numbered folders are the primary navigation. Start with 01 and move forward, or jump directly to the engineering area you need.
Explore Runnable Case Studies
The Applied AI Case Studies section turns concepts into executable examples with synthetic data, tests, architecture diagrams, safety controls, and production evolution. Start with Customer Service for retrieval and action confirmation, Agent Pipeline for orchestration, or Project Status for evidence-grounded business reporting.
The case studies are deterministic teaching implementations unless explicitly stated otherwise; the production diagrams describe possible future architectures.
What You Will Learn
| Track | Topics |
|---|---|
| Foundations | AI/ML, neural networks, transformers, tokenization, foundation models |
| LLM Engineering | prompting, embeddings, search/retrieval, inference, RAG, fine-tuning, hallucination |
| Agentic AI | agents, tool use, planning, memory, orchestration, multi-agent systems, multimodal/conversational agents, agent training/adaptation, runtime control |
| Protocols & Agent Runtime | state machines, graph orchestration, Google ADK, MCP, A2A, agent-to-tool and agent-to-agent communication |
| System Design | AI product architecture, AI platform architecture, RAG platforms, enterprise assistants, production agents, multi-agent and realtime systems |
| Production AI | evaluation, observability, guardrails, security, reliability, scalability, latency, cost, LLMOps/deployment, and AI data engineering |
Learning Journey
flowchart LR
A[AI & ML] --> B[Transformers]
B --> C[LLMs]
C --> D[Prompt Engineering]
D --> E[Embeddings]
E --> ER[Search & Retrieval]
ER --> F[RAG]
F --> G[AI Agents]
G --> H[Tool Use]
H --> I[Memory]
I --> J[Planning]
J --> K[Agentic RAG]
K --> L[Multi-Agent Systems]
L --> MM[Multimodal & Conversational]
MM --> AT[Agent Training & Adaptation]
AT --> RT[Runtime / State Machines / Graphs]
RT --> M[MCP & A2A]
M --> N[Evaluation & Production]
N --> O[System Design]
Start Here
Beginner
AI & ML Fundamentals → Foundation Models → Tokenization → Transformers → Large Language Models → Prompt Engineering → Embeddings → Search & Retrieval → RAG
Applied AI Engineer
LLMs → Prompting → RAG → Tool Use → Agents → Evaluation & Observability → Security & Guardrails → Reliability & Resilience → Context Engineering → Performance, Latency & Cost → AI Data Engineering → LLMOps & AI Deployment → Production
Agentic AI Engineer
AI Agents → Agent Architecture & Agent Loops → Tool Use & Orchestration → Agent Memory → Planning & Reasoning → Agentic RAG → Single vs Multi-Agent → Multi-Agent Collaboration → Multi-Agent Systems Architecture → Multimodal & Conversational Agents → Agent Training & Adaptation → Agent Runtime, State Machines & Protocols → MCP → A2A
System Design / Interview Preparation
LLM Architecture → AI Product Architecture → AI Platform Architecture → Production RAG Design → Agent Architecture → Tool Orchestration → Memory → Planning → Agentic RAG → Multi-Agent Architecture → Evaluation & Observability → Security & Guardrails → Reliability & Resilience → Context Engineering → Performance, Latency & Cost → Trade-offs
See the complete Learning Roadmap.
Core Knowledge Base
1. Foundations
- AI & ML Fundamentals
- AI Foundation Models
- Tokenization
- Transformers
- Large Language Models
- Pre-training vs Fine-tuning
2. LLM & GenAI Engineering
- Prompt Engineering
- Embeddings & Vector Databases
- Search & Retrieval Engineering — Deep Dive
- Retrieval-Augmented Generation
- LLM Inference
- Fine-Tuning
- LLM Hallucination
- AI Frameworks
3. Agentic AI
- AI Agents
- Agent Architecture & Agent Loops — Deep Dive
- Tool Use & Agent Orchestration — Deep Dive
- Agent Memory Architecture — Deep Dive
- Planning & Reasoning Patterns — Deep Dive
- Agentic RAG — Deep Dive
- Single-Agent vs Multi-Agent
- Multi-Agent Collaboration
- Multi-Agent Systems Architecture — Deep Dive
- Multimodal & Conversational Agents — Deep Dive
- Agent Training & Adaptation — Deep Dive
- Agent Runtime, State Machines & Communication Protocols — Deep Dive — naive-agent failure modes, FSMs, termination, graph orchestration/LangGraph concepts, Google ADK runtime/sessions/events, MCP + A2A integration
- Agent Skills & Capability Engineering — Deep Dive — skills vs tools/workflows/agents, progressive disclosure, discovery, composition, contracts, MCP/A2A relationships, security and lifecycle
- Voice & Realtime Agent Engineering — Deep Dive — ASR/TTS, speech-to-speech, VAD/endpointing, interruption, WER, acoustic robustness, voice RAG, realtime latency, evaluation and cost
4. Agent Runtime & Interoperability
5. Production AI Engineering
- Evaluation & Observability — Deep Dive
- Security & Guardrails — Deep Dive
- Reliability & Resilience — Deep Dive
- Context Engineering — Deep Dive
- Performance, Latency & Cost — Deep Dive
- LLMOps & AI Deployment — Deep Dive — versioned behavioral releases, evaluation-gated CI/CD, progressive delivery, rollback, hosted/self-hosted inference, RAG/index and agent migrations, GPU serving, operational readiness, supply-chain security, and delivery economics.
- AI Data Engineering — Deep Dive — source-to-AI data architecture covering batch/stream/CDC, multimodal/document processing, chunking, embeddings and index generations, contracts, ACLs, datasets, agent state/memory, lineage, freshness, deletion, recovery, scaling, and data economics.
- Production Engineering Hub
6. Architecture & System Design
- AI Product Architecture
- AI Platform Architecture — Deep Dive — control/data/evidence/developer planes, model gateway and serving, shared RAG/tool/state capabilities, evaluation/observability, multi-tenancy, security, reliability, capacity, cost, developer experience, and platform governance.
- Production RAG System Design
- System Design Hub
The system-design material covers requirements, architecture, data/control flow, retrieval, orchestration, memory, security, evaluation, observability, scalability, latency, cost, failure handling, and explicit trade-offs.
7. Design Patterns
The Design Patterns catalog organizes reusable RAG, agent, memory, orchestration, and reliability patterns.
How Topics Are Developed
Major engineering topics progressively follow a common structure:
- What is it?
- Why does it exist?
- Mental model
- How it works
- Architecture
- Step-by-step flow
- Practical example
- Implementation
- Design decisions and trade-offs
- Failure modes
- Evaluation
- Security
- Performance, scalability, latency, and cost
- Production considerations
- Interview questions
- Key takeaways
Architecture-First Learning
The goal is not only to know definitions. A reader should be able to answer:
- How does this component work?
- Where does it fit in an architecture?
- When should I use it?
- What breaks in production?
- How do I evaluate it?
- How does it scale?
- What alternatives exist?
- What trade-offs would I discuss in a system-design interview?
Contributing
Contributions that improve technical accuracy, diagrams, examples, system-design discussions, implementation quality, or production guidance are welcome.
Goal: bridge the gap between learning GenAI concepts and engineering production-grade intelligent systems.
