1:20:40Samuel Colvin demonstrates how to use GEPA to optimize a Pydantic AI agent’s system prompt against a golden dataset of political relations. He walks through deterministic evaluations in Logfire, compares a basic prompt with a stronger human-written prompt, then shows GEPA iteratively proposing prompts that reach 96.7% performance. He explains tradeoffs such as variance, overfitting, model choice, and the difficulty of defining a reliable evaluation. He also demonstrates Logfire managed variables, which let teams update prompts and model settings without redeploying, and discusses using user feedback as an evaluation signal.


