Session
Prompts as Code: Automating Your AI Instructions
Hand-crafting prompts is a trap. You tweak one word, and the whole output breaks. We treat instructions like magic spells when we should treat them like code.
The solution is Automatic Prompt Optimization (APO). APO uses algorithms to systematically search for the best instructions without needing to open up the model. Think of your AI pipeline like a vehicle engine, and the prompts as the fuel mix. Hand-tuning the mix for every single trip takes too long and fails when conditions change. APO acts as the electronic control unit, automatically adjusting the inputs based purely on the output feedback it gets back from the engine.
Writing hard-coded prompt templates is brittle and does not scale. Instead, we use tools like DSPy to compile plain text goals into self-improving pipelines. You define the metrics, and the framework bootstraps the best demonstrations for you. We will also look at how to balance your output quality against API token costs using multi-objective search.
In this session, I will demo only the critical 5%—the exact Lego pieces you need to snap together to make APO work. Stop guessing what the AI wants to hear. Start compiling your prompts. Keep it real. Right tool. Good enough.
Ron Dagdag
Microsoft AI MVP / Research Engineering Manager @ Thomson Reuters
Fort Worth, Texas, United States
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top