Code 2025
Build a Prompt Learning Loop - SallyAnn DeLucia & Fuad Ali, Arize
Overview
This talk introduces prompt learning, a method for optimizing AI agent prompts by creating a feedback loop that incorporates human and LLM-generated evaluations. The core idea is to move beyond static prompts and leverage detailed feedback, including explanations for failures, to continuously improve agent performance. This approach aims to enhance agent reliability and effectiveness without requiring extensive fine-tuning or architectural changes.
Who should watch
- AI engineers and developers building agents.
- Product managers and builders seeking to improve agent performance.
- Anyone struggling with agent reliability, planning, tool usage, or context engineering.
- Teams looking for lower-lift methods to achieve significant gains in agent capabilities.
Key takeaways
- Agents often fail due to weak environments and instructions, lack of planning, missing tools, or poor context engineering, rather than model limitations.
- Prompt learning refines prompts by using feedback from evaluations and human instructions, focusing on *why* an output is wrong, not just that it is wrong.
- This method significantly improves agent performance, demonstrated by a 15% gain in a coding agent benchmark without code changes, achieving near state-of-the-art performance at a lower cost.
- The concept of "overfitting" in prompt learning is reframed as building expertise, crucial for agents to perform well on specific tasks or codebases.
- Optimizing evaluation prompts is as critical as optimizing agent prompts to ensure reliable signals for improvement.
- Prompt learning can be an iterative, continuous process, adapting to new issues and improving performance over time.
- The approach is effective across various tasks, including coding, and can be adapted for more subjective use cases by defining clear success criteria.
Notable quotes
*The explanations in human instructions or through your own as a judge. That text is really really valuable.*
*It feels like the lowest lift way to get massive improvement gains in your agent.*
*The left loop only works as well as your eval.*
Unofficial community note. Prefer the recording for nuance.