Stanford AI 课程地图 EN GitHub ↗
← 返回课程地图
Stanford · 2026—27 CS 329Z LLM 与 Agent ★★★★☆

核心课程 · LLM 与 Agent

AI Agent 工程

Engineering AI Agents

从 LLM pipeline 到 compound AI system 再到 autonomous agent 的工程方法论:选问题、拆解、选组件、做 eval。

3 学分 2026 秋 Letter or Credit/No Credit ★★★★☆
Agent工程RAGEval

课程定位

CS 329Z 是目前最贴近“AI 工程师”岗位的课程之一,由 Diyi Yang 等人讲授。它强调 agent 不是一个大模型,而是由 LLM、检索器、工具、优化器组成的复合系统;课程从零实现 RAG、tool use、agent loop,再过渡到 DSPy 等框架。

主要内容

  1. Compound AI systems:多组件系统的设计范式
  2. RAG:检索、重排、上下文管理、评估
  3. Tool use:函数调用、工具选择、错误处理
  4. Agent loop:规划、执行、反思、终止条件
  5. DSPy:用声明式方式优化 prompt/流程
  6. 数据 curation 与 evaluation:构建 eval set、离线/在线指标
  7. 设计 trade-off:延迟、成本、质量、可控性
  8. 三次 applied homework + quarter-long project

课程大纲 / 课件

#主题 / 讲者
01Foundations & Landscape: What Are Agentic Systems?
02Retrieval-Augmented Generation (RAG)
03Tool Use & Function Calling
04Agent Design Patterns & Scaffolds
05Frameworks & Orchestration
06Agent Memory Architectures
07Multi-Agent Systems
08Optimization
09Data for Agents: Selection & Quality
10Evaluation: Fundamentals & Benchmark Design
11LLM-as-Judge & Eval Infrastructure
12Agent Safety & Guardrails

官方 slides 逐讲发布在课程站;部分 lecture PDF 已直接链接。

先修

编程能力;LLM 基础(prompting、API 使用);有 ML 基础更好。

考核与工作量

3 个 fully applied homework + 一个 quarter-long project,重点是 build、optimize、evaluate。具体以当季官网为准。

适合谁

想成为 AI engineer/agent 工程师的人;想从传统后端/ML 转向 LLM 应用的人;创业者。

学习建议

和 CS 224V 互补:224V 偏研究/形式化,329Z 偏工程/eval。作业不要只跑通 demo,重点是把 eval 做扎实。

相关课程

官方课程描述(英文原文)

The shift from monolithic language models to compound AI systems - systems with multiple interacting components including LLMs, retrievers, tools, and optimizers -n represents a fundamental change in how AI applications are built for people. This course teaches students how to engineer agentic systems: the full spectrum from simple LLM pipelines to compound AI systems to autonomous agents. Students will learn to pick what types of problems to focus on, decompose problems, select appropriate components, collect and curate data, build evaluations, and reason about the design tradeoffs that arise when building these systems in practice. Students first build core components (RAG, tool use, agent loops) from scratch, then learn how frameworks like DSPy abstract these patterns. Through three fully applied homework assignments and a quarter-long project, students will gain hands-on experience building, optimizing, and evaluating agentic systems.