DropboxIlya Yakovlev,Andrew Cheung,Binoy Dash,Simran Jumani,Dmitriy Meyerzon
How we used DSPy to turn AI evaluations into better responses in Dash chat
Summary
Dropbox improved its Dash chat agent by establishing an automated optimization loop powered by DSPy and LLM-as-judge evaluations. Engineers first calibrated their LLM judges against human-annotated interaction traces, then used those judges to systematically optimize the agent's system prompts via offline counterfactual replay. This automated workflow reduced incomplete responses by 26% while decreasing overall token consumption.
Takeaways
Agent evaluation requires scoring multi-step execution trajectories—including intent recognition, tool selection, and grounding—using structured failure codes and reasoning notes rather than just judging final outputs.
A two-stage DSPy optimization pipeline can first calibrate LLM judges against human ratings (using algorithms like GEPA and MIPROv2) and then use those calibrated judges to optimize the agent's prompt.
Automating prompt optimization with offline counterfactual replays doubled experimentation velocity, reduced incomplete answers by 26%, and cut overall token usage by 5.4%.
Source and freshness
- Source
- dropbox.tech
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.