Chip Huyen, author of “Designing Machine Learning Systems” and AI engineering expert, joins Gergely Orosz to discuss the emerging field of AI engineering and how it differs from traditional ML engineering.
What is AI Engineering?
Chip defines the emerging discipline:
AI Engineering vs ML Engineering
- ML Engineering: Training models, feature engineering, model optimization
- AI Engineering: Building applications on top of foundation models
- Key difference: AI engineers often don’t train models, they use them
The New Stack
- Foundation models (GPT, Claude, etc.) as building blocks
- Prompt engineering as a core skill
- RAG, fine-tuning, and orchestration
- Evaluation and monitoring
Building AI Products
The Reality of AI Products
- Most AI products are wrappers around foundation models
- The hard part is product design, not model training
- User experience matters more than model performance
Common Patterns
- Chat interfaces: Most common but not always best
- Embedded AI: AI features within existing products
- Autonomous agents: Emerging but challenging
What Makes AI Products Succeed
- Clear use case
- Appropriate expectations
- Good failure handling
- Continuous improvement
The AI Engineering Skillset
Technical Skills
- Prompt engineering
- RAG implementation
- Fine-tuning (when needed)
- Evaluation design
- System architecture
Non-Technical Skills
- Product thinking
- User empathy
- Communication
- Experimentation mindset
Evaluation: The Hard Problem
Chip emphasizes evaluation challenges:
Why It’s Hard
- No ground truth for many tasks
- Subjective quality judgments
- Edge cases are infinite
- User satisfaction ≠ model metrics
Approaches
- Human evaluation (expensive but necessary)
- LLM-as-judge (useful but imperfect)
- A/B testing in production
- User feedback loops
RAG: The Dominant Pattern
Discussion on Retrieval-Augmented Generation:
Why RAG Works
- Grounds responses in real data
- Reduces hallucinations
- Enables domain-specific knowledge
- More controllable than fine-tuning
RAG Challenges
- Retrieval quality is crucial
- Chunking strategies matter
- Context window limitations
- Latency considerations
Fine-tuning: When and Why
Chip’s perspective on fine-tuning:
When to Fine-tune
- Specific output format needed
- Domain-specific terminology
- Consistent style requirements
- Performance optimization
When NOT to Fine-tune
- RAG can solve the problem
- Data is limited
- Requirements change frequently
- Cost is a concern
The Future of AI Engineering
Short-term Trends
- Better tooling and frameworks
- More specialized models
- Improved evaluation methods
- Cost reduction
Long-term Questions
- Will AI engineering merge back into software engineering?
- How will the role evolve as models improve?
- What skills will remain valuable?
Career Advice
For those entering AI engineering:
- Build things: Practical experience matters most
- Understand the stack: From prompts to infrastructure
- Focus on evaluation: It’s the hardest and most valuable skill
- Stay curious: The field changes rapidly
On the Hype
Chip’s balanced view:
“There’s real value in AI, but also real limitations. The best AI engineers understand both.”
- Hype attracts investment and talent
- But also creates unrealistic expectations
- Focus on solving real problems
Chip Huyen,《设计机器学习系统》作者和AI工程专家,与Gergely Orosz讨论新兴的AI工程领域以及它与传统ML工程的区别。
什么是AI工程?
Chip定义这个新兴学科:
AI工程 vs ML工程
- ML工程:训练模型、特征工程、模型优化
- AI工程:在基础模型之上构建应用
- 关键区别:AI工程师通常不训练模型,而是使用它们
新技术栈
- 基础模型(GPT、Claude等)作为构建块
- 提示工程作为核心技能
- RAG、微调和编排
- 评估和监控
构建AI产品
AI产品的现实
- 大多数AI产品是基础模型的包装器
- 难点是产品设计,而非模型训练
- 用户体验比模型性能更重要
常见模式
- 聊天界面:最常见但不总是最好
- 嵌入式AI:现有产品中的AI功能
- 自主代理:新兴但具有挑战性
AI产品成功的要素
- 清晰的用例
- 适当的期望
- 良好的失败处理
- 持续改进
AI工程技能集
技术技能
- 提示工程
- RAG实现
- 微调(需要时)
- 评估设计
- 系统架构
非技术技能
- 产品思维
- 用户同理心
- 沟通
- 实验心态
评估:难题
Chip强调评估挑战:
为什么困难
- 许多任务没有真实标准
- 主观质量判断
- 边缘情况无限
- 用户满意度 ≠ 模型指标
方法
- 人工评估(昂贵但必要)
- LLM作为评判者(有用但不完美)
- 生产中的A/B测试
- 用户反馈循环
RAG:主导模式
关于检索增强生成的讨论:
为什么RAG有效
- 将响应基于真实数据
- 减少幻觉
- 支持领域特定知识
- 比微调更可控
RAG挑战
- 检索质量至关重要
- 分块策略很重要
- 上下文窗口限制
- 延迟考虑
微调:何时以及为什么
Chip对微调的看法:
何时微调
- 需要特定输出格式
- 领域特定术语
- 一致的风格要求
- 性能优化
何时不微调
- RAG可以解决问题
- 数据有限
- 需求频繁变化
- 成本是问题
AI工程的未来
短期趋势
- 更好的工具和框架
- 更专业的模型
- 改进的评估方法
- 成本降低
长期问题
- AI工程会合并回软件工程吗?
- 随着模型改进,角色将如何演变?
- 哪些技能将保持价值?
职业建议
对于进入AI工程的人:
- 构建东西:实践经验最重要
- 理解技术栈:从提示到基础设施
- 专注于评估:这是最难也最有价值的技能
- 保持好奇:领域变化迅速
关于炒作
Chip的平衡观点:
“AI有真正的价值,但也有真正的局限性。最好的AI工程师理解两者。”
- 炒作吸引投资和人才
- 但也创造不切实际的期望
- 专注于解决真正的问题