Dropbox tunes its Dash chat agent with LLM judges and DSPy
Dropbox calibrated LLM judges against human labels, then used the DSPy framework and its GEPA optimizer to rewrite the system prompt of the chat agent in Dropbox Dash.
DropboxUnited StatesEnterprise softwareIn production
- Scenario
- Automated prompt optimization with LLM judges
- Business function
- Software engineering
- Kind of solution
- Knowledge assistant
- Who built it
- Built in-house
- Organization
- Enterprise, 1,000 to 9,999 employees
- AI types
- Generative AI, Agentic AI, Conversational AI
tl;drIncomplete answers in Dash chat fell 26% after DSPy and calibrated judges optimized its prompt.See the results
Dropbox uses LLM judges and the open-source DSPy framework to optimize the system prompt of the chat agent in Dropbox Dash, its AI assistant for company knowledge1. The judges score how the agent handles each chat, and an optimizer turns those scores into new prompts1.
The work ran in two stages. Engineers first calibrated the judges against a small set of human-labeled chats, then used the improved judges to optimize the agent’s prompt with DSPy’s GEPA optimizer1.
By June 2026, the optimized prompt was live in Dash chat. Against the previous production prompt, it cut incomplete answers by 26% and missed key aspects of requests by 13%1. Total token usage fell by 5.4%1.
Before the deployment
Dash brings together company knowledge from documents, messages, and meetings, and users ask the Dash chat agent questions about it1. By October 2025, the Dash team already graded answers with LLM judges, because overlap metrics gave high ROUGE scores to answers that skipped citations4.
- Evaluation gates: Every pull request ran about 150 canonical queries through automatic judges, with results in under 10 minutes4.
- Human audits: For each release, engineers reviewed 5-10% of the regression suite by hand4.
- Manual prompt work: Engineers reviewed failures, proposed prompt edits, tested them, and iterated. The process was hard to scale and gave no reliable sign that a change would improve production quality1.
- Pace: Engineers made five manual prompt changes in the month before the automated loop1.
Agent answers made the judging harder. A good answer depends on intent, context selection, tool calls such as search, and grounding across several steps, so the judges have to read the whole trajectory1.
DSPy had already worked on another Dash judge. By March 2026, GEPA had adapted the Dash relevance judge from OpenAI’s o3 to the cheaper gpt-oss-120b. Against the original hand-written prompt, the optimized prompt cut disagreement with human ratings by 45%2.
What was built
The solution is a feedback loop: human labels improve the judges, the judges produce evaluation signals at scale, and those signals improve the agent1. People, judges, and optimizers divide the work:
- Human evaluators: Score sampled internal chats and their trace logs on a 1-5 scale for intent following, semantic relevance, tool calling, instruction following, and context selection. They add reasoning notes and failure codes, such as stale evidence or missing context1.
- LLM judges: Review each chat after it ends. A judge infers the user’s intent, inspects the trace and evidence, and returns a score with failure codes and reasoning notes1.
- Judge optimizers: GEPA and MIPROv2 in DSPy propose judge prompt changes and test them against the human labels. They can rewrite a judge, move it to another model, or fix one failure mode, such as over-scoring outdated information1.
- Agent optimizer: GEPA proposes new system prompts for the chat agent from the judges’ scores and reasoning on replayed chats1.
- Guardrails: Most edits to the agent’s prompt are small, targeted instruction updates. Automated checks review each candidate for structure, completeness, caching behavior, and size limits1.
“Investing in effective LLM judges is incredibly important. A lot of times that initial prompt is all people do.”
The judge optimizers use both kinds of human feedback. The scores show when a judge disagrees with people, and the notes explain why1. Optimization of the agent targets concrete failure modes: wrong context selection, incomplete answers, missed ambiguity, incorrect search-tool use, and loss of multi-turn context1.
Technology and architecture
- AI component
- Data
- Trigger or control
- Feedback
DSPy is an open-source framework for optimizing AI systems from evaluation feedback1. GEPA is a prompt optimizer that reflects on sampled trajectories in natural language to diagnose problems and propose prompt updates5. In this deployment, GEPA turns the judges’ scores and reasoning into the next candidate prompt1.
| Layer | What they used | Role | Source |
|---|---|---|---|
| Checker model | LLM judges | Score each chat trajectory for relevance, tool use, context selection and completeness, with failure codes and reasoning notes | 1 |
| Prompt and context management | GEPA | Proposes each new system prompt from the judges’ scores and reasoning on replayed chats | 1, 5 |
| Prompt and context management | MIPROv2 | Proposes and tests judge prompt changes against the human-labeled examples | 1 |
| Framework or library | DSPy | Runs the optimization algorithms against the human labels and the judges’ scores | 1 |
| Task agent | Dash chat agent | Answers users’ questions from company documents, messages and meetings, by using search and read-document tools | 1 |
| Offline evaluation | Offline counterfactual replay | Replays each candidate prompt on representative historical internal chats for the judges to score | 1 |
| Labeling and annotation | Human-labeled internal chats | Give the judges a benchmark of human scores, reasoning notes and failure codes | 1 |
| Guardrails | Automated prompt review checks | Check each candidate prompt for structure, completeness, caching behavior and size limits | 1 |
Data inputs
- Labeled chats: Internal chats with their final responses and trace logs, scored by human evaluators across five dimensions1.
- Reasoning notes and failure codes: The evaluators’ account of why an answer succeeded or failed, with failure codes that sort recurring problems1.
- Replay set: Representative historical Dropbox internal chats, on which each candidate prompt runs1.
- Company knowledge: Documents, messages, and meetings that the agent reaches through search and read-document tools1.
How one candidate prompt moves through the loop
- GEPA proposes a candidate system prompt for the chat agent1.
- The offline replay runs the candidate on representative historical internal chats. The same replay infrastructure diagnoses production failures1.
- The evaluation pipeline scores the agent’s outputs. The judges return structured reasoning with each score1.
- GEPA uses the scores and reasoning to propose the next update. The loop repeats until the data supports a launch candidate1.
- The team compares the candidate with the production prompt on the same examples and tests whether the gains are statistically meaningful1.
- Automated checks review the candidate’s structure, completeness, caching behavior, and size before launch1.
Results
By June 2026, the optimized prompt had replaced the previous production prompt in Dash chat. Improvements appeared within the first 24 hours after launch1.
| Metric | Before | After | Scope and timeframe | Reported by |
|---|---|---|---|---|
| Incomplete answers | Previous production prompt | 26% fewer | Dash chat agent, first 24 hours after launch | Dropbox, measured1 |
| Missed key aspects of a request | Previous production prompt | 13% fewer | Dash chat agent | Dropbox, measured1 |
| Total token usage | Previous production prompt | 5.4% lower | Dash chat agent | Dropbox, measured1 |
| Prompt candidates | Five manual changes in the prior month | six prompt candidates | First two weeks of the loop | Dropbox, measured1 |
- Incomplete answers: Answer quality measures whether a response was complete, useful, grounded, and well-formed. Incomplete answers fell by 26%1.
- Missed key aspects: Semantic relevance measures whether the agent understood the request and addressed the right parts of it. Missed key aspects fell by 13%1.
- Efficiency: Total token usage dropped by 5.4%, and average completion length fell by 9.8%, without a loss in answer quality1.
- Pace of exploration: The loop generated six prompt candidates in its first two weeks, against five manual changes in the prior month1.
Lessons learned
All figures are Dropbox’s own, from its engineering blog1, 2. Each compares a new prompt with the existing production prompt on the same examples, and the team tested the gains for statistical significance1.
Calibrating the judges first paid off beyond the judges. The human labels with reasoning notes and failure codes also served debugging, error analysis, and roadmap planning1.
Dropbox names guardrails as one of the biggest lessons of the work. Small, targeted edits and automated review checks kept candidate prompts maintainable and production-safe as optimization became more automated1.
The optimizer can game its metric. In early relevance-judge runs, it overfit by copying keywords and usernames into prompts, and some candidates changed the rating scale. The team added guardrails against both2.
The judges have a floor. Josh Clemm said that zero disagreement might be impossible because human labelers also disagree on relevance3. A cheaper model has a floor too: after optimization, gemma-3-12b was still too weak for the highest-quality judge paths2.
The team ties the gains to the strength of its evaluations. It warns that weak evaluation signals can lead to brittle improvements, while strong evaluations, representative data, and expert review help changes generalize1.
Case study scorecard
- 26% Fewer incomplete answers1
- 13% Fewer missed key aspects of a request1
- 5.4% Lower total token usage1
- six prompt candidates Prompt candidates in the first two weeks1
Sources by publication date
- Organization 4
- Press, academic, and regulators 1
Build this solution yourself
Analysis
What you need
- Human labels with reasons: You need chats scored by people, with notes and failure codes, because the judges are calibrated to them and the notes tell the optimizer why a judge is wrong1.
- A replay of real traffic: You need representative historical chats with traces and a way to replay a prompt on them, because every candidate is scored there before launch1.
- A production baseline and named failure modes: You need the current prompt’s results on the same examples, because each candidate must beat it on failures such as incomplete answers1.
- Limits on what the optimizer can change: You need checks on the size and structure of each edit, because unconstrained optimizers overfit to their examples1, 2.
Reference architecture
Knowledge assistant
A knowledge assistant answers a question that staff ask in their own words, by using the organization's own documents, and shows the sources of the answer. The search index returns the passages that best match a question, and a language model writes the answer from them. Content curators prepare the content beforehand, and the person who asked checks the answer and decides what to do with it.
- Chat interface
- Assistant platform
- Search index
- Knowledge content
- Content ingestion
- Embedding and ranking models
- Language model
- Answer ratings
- Business system
- Test set of sample questions (documented in this case study)
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers who built it
- European Commission: European Commission's DG INTPA gives staff an AI assistant. More than 2,000 DG INTPA staff have sent the AI assistant over 400,000 queries since March 2026.
- NSI Luxembourg: AskNSI answers 83% of employee queries at NSI Luxembourg. AskNSI automatically answers 83% of employee queries at NSI Luxembourg.
- West Midlands Police: West Midlands Police halts Copilot after AI hallucination. West Midlands Police switched Copilot off after it put a non-existent match in a police report.
- Vanderlande: Vanderlande's AI assistant handles IT self-service requests. Vanderlande's VIGO assistant now takes self-service IT requests that used to reach the help desk.
- Target Corporation: How Target rolled out an AI chatbot to nearly 2,000 stores. Target store staff used Store Companion more than 50,000 times after its chainwide rollout.
- CM.com: How CM.com staff search company policies with AI agent Norma. CM.com saw policy awareness rise as staff sent policy search prompts to its Norma agent.
Cite this case study
Enterprise AI Case Studies. "Dropbox tunes its Dash chat agent with LLM judges and DSPy." Updated Nov 25, 2026. https://case-studies.ai/case-studies/engineering-and-research/ER-053-dash-chat-prompt-optimization-dropbox/
@misc{csai-er-053,
author = {{Enterprise AI Case Studies}},
title = {{Dropbox tunes its Dash chat agent with LLM judges and DSPy}},
year = {2026},
note = {Updated 2026-11-25},
url = {https://case-studies.ai/case-studies/engineering-and-research/ER-053-dash-chat-prompt-optimization-dropbox/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
How we used DSPy to turn AI evaluations into better responses in Dash chat
Supporting excerpts (35)
Agent quality—how well our chat agent helps users accomplish their goals—is evaluated using a suite of large language model-as-judge evaluations.
Rather than judging only a final response, they inspect the full trajectory an agent takes to satisfy a user’s goal: how it interprets intent, gathers context, uses tools, handles ambiguity, grounds its answer, and completes the task.
First, we used it to improve the judges themselves, calibrating them against a small set of human-labeled examples so their scores better matched human judgment. Then, we used those improved judges to optimize the chat agent’s system prompt.
This created a feedback loop: human labels improved the judges, the judges produced scalable evaluation signals, and those signals improved the agent.
DSPy is an open-source framework for optimizing AI systems using evaluation feedback.
A good agent response might depend on multiple knowledge sources, including documents, prior messages, meeting notes, or tool calls such as search and read documents.
The AI features in Dropbox bring together company knowledge from documents, messages, meetings, and other sources. Users can then ask questions in one place and get answers from the Dash chat agent.
We sampled a set of internal chats, including the final responses and trace logs showing how the agent arrived at them, then asked human evaluators to review each example across five dimensions: user intent following, semantic relevance (how well the answer addressed the user's request), tool calling, instruction following, and context selection.
Several metrics were scored on a 1–5 scale. Evaluators also recorded reasoning notes explaining their scores and assigned failure codes for issues such as stale evidence, missing context, unsupported claims, incomplete coverage, or failure to personalize.
Annotations also helped with debugging, error analysis, roadmap planning, and prioritizing improvements to the agent system.
The reasoning notes captured why a response succeeded or failed, while the failure codes provided a structured way to categorize recurring problems.
The judge needed to follow a specific workflow (retrospectively, or reviewing traces after the chats ended): infer the user's intent, inspect the conversation, review the trace and supporting evidence, reason about context selection and tool use, and then assign a score along with failure codes and reasoning notes.
To improve judge performance, we used DSPy and optimization algorithms such as GEPA and MIPROv2.
These algorithms automatically proposed prompt changes and tested them against our human-labeled examples to identify improvements.
In some cases, we allowed DSPy to rewrite a judge's instructions from the ground up. In others, we adapted an existing judge to a different underlying model while preserving the same evaluation behavior. We also supported targeted optimization, where the goal was to correct specific failure modes, such as over-scoring outdated information or underweighting missing context, without changing the overall rubric or evaluation process.
The scores told us when a judge disagreed with humans, while the feedback helped explain why.
These annotations were useful to optimize the judge’s prompts to minimize disagreements between the LLM judge and the human labelers
But before we could trust those judges, we needed to know whether their evaluations aligned with human judgment.
Our chat agent’s prompt optimization used to be a largely manual process. Engineers reviewed failures, proposed prompt edits, tested them, and iterated. While this helped in individual cases, it was difficult to scale and hard to know whether a change would reliably improve production quality.
We replaced that workflow with an automated, evaluation-driven loop built on labeled examples, production-aligned scorers, and offline counterfactual replay. For each GEPA round, a candidate prompt is replayed on representative historical Dropbox internal chats, and the resulting agent outputs are scored by the evaluation pipeline. Those scores, along with structured judge reasoning, become the feedback signal GEPA uses to propose the next prompt update.
This grounds prompt optimization in realistic agent behavior rather than abstract examples or ad hoc judgments.
The same replay infrastructure used to diagnose production failures is now part of the optimization loop itself, so each candidate is evaluated against representative interactions before being considered for launch. Optimization focused on concrete failure modes, including wrong context selection, incomplete answers, missed ambiguity, incorrect search-tool use, and loss of multi-turn context.
repeated the process until the data supported a launch candidate.
Answer quality measures whether the response was complete, useful, grounded, and well-formed.
semantic relevance measures whether the agent understood the user's request and addressed the right parts of it.
For each new prompt, we compared its performance against the existing production prompt using the same set of examples.
We used statistical tests to check whether the observed improvements were likely to reflect a real change, rather than random variation in the evaluation results.
In the first two weeks, we generated six prompt candidates automatically, compared with five manual prompt changes in the prior month, nearly doubling the pace of exploration.
The launch results were measurable: a 26% reduction in incomplete answers and a 13% reduction in missed key aspects, with improvements appearing within the first 24 hours.
Total token usage dropped by 5.4%, while average completion length decreased by 9.8%. Importantly, these efficiency gains did not come at the expense of answer quality.
One of the biggest lessons from this work is that automated prompt optimization needs strong guardrails. We intentionally constrained most agent prompt edits to small, targeted instruction updates and added automated review checks for prompt structure, completeness, caching behavior, and size limits.
These safeguards helped ensure that candidate prompts remained maintainable and production-safe as the optimization process became more automated.
More broadly, this experiment showed that prompt optimization brings traditional machine learning discipline to prompt engineering.
we treated prompts as measurable, optimizable artifacts rather than static instructions.
As with traditional ML systems, weak evaluation signals can lead to brittle improvements, while strong evaluations, representative data, and expert review help changes generalize and keep regressions under control.
- Source 2:
How we optimized Dash's relevance judge with DSPy
Supporting excerpts (16)
Relevance judges are used across multiple pipelines like ranking, training data generation, and offline evaluation.
manual prompt tuning got us to a functioning judge, but quality plateaued early and every model swap—or even a small prompt edit—risked regressions in unexpected cases.
Our best-performing relevance judge was built on the most powerful proprietary model at the time (OpenAI’s o3).
We chose gpt-oss-120b, an open model that offered a strong balance between cost and performance.
We used DSPy’s GEPA optimizer (a method that iteratively improves prompts by analyzing where the model disagrees with humans and generating feedback) to adapt and optimize the relevance-judging program for a specific target model—in this case, gpt-oss-120b.
Comparing the best-performing DSPy-optimized prompt to the original manually written prompt, we reduced NMSE by 45 percent (from 8.83 to 4.86).
Model adaptation time dropped from one to two weeks of manual iteration to one to two days.
we were also able to label 10–100 times more data at the same cost.
In the baseline configuration, more than 40 percent of gemma-3-12b’s responses were malformed JSON.
After DSPy optimization, malformed outputs dropped by more than 97 percent
Although gemma-3-12b was ultimately too weak for our highest-quality production judge paths
In early experiments, we observed that the optimizer could overfit by copying specific keywords, usernames, or verbatim document phrases directly into prompts.
To address this, we added explicit guardrails to forbid direct inclusion of example-specific content.
We also found that candidate prompts sometimes modified key task parameters, such as changing the rating scale from 1–5 to 1–3 or 1–4.
Dropbox hosted a Bay Area DSPy Meetup at our San Francisco office on Wednesday, March 18, 2026
Dropbox engineers shared how we’re using LLM judges and DSPy to optimize prompts and improve reliability in production.
- Source 3:
Engineering VP Josh Clemm on how we use knowledge graphs, MCP, and DSPy in Dash
Supporting excerpts (5)
Josh Clemm, vice president of engineering for Dropbox Dash
Investing in effective LLM judges is incredibly important. A lot of times that initial prompt is all people do.
It might be impossible to get to zero disagreements. Even humans—multiple humans—will disagree on the relevance set.
LLMs as a judge have very crystal clear rubrics and evals.
We have over 30 different prompts today throughout the Dash stack, whether that's in the ingest path, LLMs as a judge, some offline evals, as well as our online agentic platform approach.
- Source 4:
A practical blueprint for evaluating conversational AI at scale
Supporting excerpts (5)
Every pull request kicked off about 150 canonical queries, which were judged automatically and returned results in under 10 minutes.
For each release, human engineers manually reviewed 5–10% of the regression suite.
That’s when we adopted Braintrust, an evaluation platform we’ll dive into shortly.
We’d see high ROUGE scores even when an answer skipped citing its source, strong BERTScore results alongside hallucinated file names
So we asked a better question: What if we used LLMs themselves to grade the outputs?
- Source 5:
GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning
Supporting excerpts (2)
we introduce GEPA (Genetic-Pareto), a prompt optimizer that thoroughly incorporates natural language reflection to learn high-level rules from trial and error.
GEPA samples trajectories (e.g., reasoning, tool calls, and tool outputs) and reflects on them in natural language to diagnose problems, propose and test prompt updates
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.