Evals for High-Stakes AI Agents — Doneyli De Jesus & Annabell Schäfer, Langfuse
- Source
- youtube.com
- Publisher
- AI Engineer
- Author
- AI Engineer
- Date
Context
Annabell Schäfer and Doneyli De Jesus of Langfuse, an open-source platform for tracing, monitoring and evaluating AI applications, use an AI Engineer workshop to show how a team can keep a change to a customer-facing agent from shipping on gut feel. Their method turns a domain expert's plain comments into named failure modes, scores each one automatically, and reruns those scores whenever the agent's prompt changes. Schäfer opens with why ordinary monitoring falls short: a support agent tells a customer it has issued a refund, latency and system status look fine, but the refund tool was never called, and the team may learn of it only when the customer returns weeks later. A trace, the record of every model call and tool call the agent made, is what exposes that gap.
The demonstration is a fictional banking assistant built on that tracing. Before a trace is stored, a masking function redacts personal data such as a card number a customer typed into the chat, which De Jesus calls a very big requirement for financial institutions. The team builds datasets of questions and expected outputs that work like software test cases, and the expected output can be a behavior, such as declining to give investment advice, rather than a fixed answer. To find what the agent gets wrong, De Jesus puts a sample of production traces into an annotation queue where a risk expert gives a quick score and a comment, for example that a citation is missing. An then groups many such comments into recurring categories, so the expert never has to invent a taxonomy. Each category becomes a score, such as whether an answer cites the source the expert expected or keeps a formal register.
Scoring mixes two kinds of evaluator. An LLM judge, one model grading another model's output, handles qualities that need interpretation, while code checks such as a regular expression or an exact match return the same result every time for the same input. De Jesus recommends a balance of both because a model-based judge can itself be wrong. The pieces meet in a CI job on GitHub: saving a new prompt version in Langfuse triggers a run of the dataset against the changed agent, and the job reports pass or fail against a minimum threshold set for each score. In the demo he leaves a passing result sitting rather than merging it, and describes opening a pull request or merging automatically only as possible next steps.
Everything shown uses fictional data, so the workshop demonstrates a workflow, not measured gains, and dashboard figures such as 1,400 interactions in a week handled without a human for under $7 come from the demo. De Jesus describes applying the same approach for a real in a separate talk, where he says domain experts at a top-five bank set the thresholds and a calculator tool carried a small model past the bank's accuracy bar. Schäfer's closing advice is that a can instrument the , find candidate failure modes and run experiments, but people with domain knowledge still have to define good behavior and curate the cases it is tested against. This explanation is based on a machine transcript of the workshop.
- Large language model — A model trained on large amounts of data to process and generate language.
- Client — The program that sends a request to a server and receives its response.
- Agent mode — A mode in which one agent can inspect, edit, run commands, and iterate toward an outcome.
- Application — Software arranged so that a person can use it; in this course, the software around a model that accepts your request, prepares the context and shows the reply.






