Session brief
AI Agents, Meet Test Driven Development
Overview
This talk introduces a test-driven development (TDD) approach for building reliable AI agentic workflows. It argues that while AI models are improving, success in production hinges on robust engineering practices. The presentation outlines a structured process for experimenting, evaluating, scaling, and continuously monitoring AI solutions, emphasizing the need for a systematic approach to manage complexity and ensure reliability.
Who should watch
- AI Engineers
- Product Managers
- Builders developing AI solutions
- Teams struggling with productionizing AI agents
- Those seeking to improve the reliability and quality of AI applications
Key takeaways
- Companies that adopt a test-driven development approach build more reliable AI systems.
- The evolution of AI models has slowed, shifting focus to techniques for orchestrating models, integrating data, and effective production deployment.
- Key techniques for building robust AI include advanced prompting (e.g., Chain of Thought), Retrieval Augmented Generation (RAG), and managing long context.
- A TDD approach involves distinct stages: experimentation with different models and prompts, evaluation against a dataset balancing cost, latency, and quality, and continuous monitoring post-deployment.
- For evaluation, it's crucial to use ground truth data where possible, or LLMs to evaluate other models, and employ flexible testing frameworks with custom metrics.
- Production deployment requires logging all LLM calls, tracking inputs/outputs and latency, handling API reliability with retries and fallbacks, and using version control with staged rollouts.
- Agentic workflows can be categorized into levels (L0-L4) based on their reasoning, tool use, and autonomy, with L1 and L2 representing current production-grade and innovative areas respectively.
- A practical example demonstrated an SEO agent that automates keyword research, content analysis, and drafting, incorporating an LLM-based editor for evaluation.
Notable quotes
*For an AI product that actually works in production, success isn't just about the models anymore; it's about how you build around it.*
*Developers want more code, developers want more control and flexibility, and they want to own their definitions in their codebase.*
Unofficial community note. Prefer the recording for nuance.