Why Building an Eval Platform Is Harder Than It Looks — Braintrust
This talk at the AI Engineer World's Fair focuses on the challenges of building and maintaining AI agent quality platforms. The speaker, Hossein Niazmandi from Braintrust, emphasizes that evals (evaluations) and observability are the two critical pillars for ensuring agents perform reliably in both development and production. He highlights that while simple spreadsheet-based evals are a starting point, achieving true agent quality at scale requires a robust systems problem approach, moving beyond basic UI/UX solutions.
read more
Hossein Niazmandi, Head of Solution Engineering West at Braintrust, delivered a session at the AI Engineer World's Fair titled 'Why building agent quality platforms is hard'. He began by introducing Braintrust as a platform focused on agent quality, aiming to help teams build and maintain confidence in their AI features and agents. The core idea revolves around two key pillars: evals and observability.
Evals are performed before an AI agent reaches production. This stage is crucial for experimentation, testing agent behavior, and building confidence before deployment. Observability, on the other hand, comes into play once the agent is in production, interacting with real users. Its purpose is to take the hypotheses built during offline development and reinforce them through continuous monitoring in live scenarios. Both evals and observability are intimately related to the same problem: understanding and improving agent quality.
Niazmandi then delved into why evals are important. Large Language Models (LLMs) inherently possess extreme variability and are non-deterministic. This flexibility, while powerful, introduces significant risks. AI agents, using LLMs as their 'brain', are increasingly becoming the primary interaction point for customers. Therefore, teams need confidence that their agents will behave reliably and produce expected outcomes. Without proper evals, companies face risks related to brand consistency (inconsistent behaviors), compliance (agents saying or doing the wrong things), and high maintenance costs if systems are difficult to debug or control. The goal of evals is to reduce uncertainty before launch, ensuring a good user experience and predictable agent behavior.
He then addressed a common misconception: 'Evals is just a UI on a spreadsheet, right?' While spreadsheet-based evals can be a first step, they quickly become insufficient. At their simplest, eval systems involve: 1) executing agents against test inputs, 2) viewing outputs or scores, and 3) having a set of input examples to invoke the agent. The main advantage of spreadsheets is zero barrier to entry. However, the disadvantages are significant: it's primarily for documenting, not experimenting, it’s a slow process, and it’s not conducive to team collaboration.
The next evolution for teams is often a Vibe-coded UI. This involves a more durable persistence layer (database) and allows for human review, bringing in product managers and subject matter experts who might not be comfortable with code. This bespoke UI helps integrate more personas into the fold and accelerates iteration cycles. However, it still falls short because it does not encourage dynamic experimentation and primarily acts as a reporting tool. Teams cannot easily dynamically adjust prompts or other parameters, and there's a lack of insight into what's happening in production.
This leads to the concept of The Improvement Loop, which connects observability and evals. The ideal system allows teams to: Observe every input, output, trace, and failure in production; Analyze patterns to understand what's breaking, from whom, and why; Eval these failure patterns by turning them into test cases for offline development; and Improve the agent quality, shipping new configurations without introducing regressions. This creates a continuous hill-climbing cycle for agent quality.
Niazmandi then outlined the challenges of Fitting the flywheel together, specifically highlighting issues with agent tracing platforms: Agent traces are nasty, voluminous, and numerous. Unlike traditional observability where events are steady, deterministic, and small (1-5 KB spans), AI traces involve: high ingestion rates (up to 100k spans/sec), large, continuous writes, huge payloads (50 KB to 10 MB, sometimes GB), semi-structured data shapes with deep nesting and full-text fields, and complex read patterns that require both aggregate high-volume trends and detailed single-trace inspection with interactive filtering and querying. Traditional cloud data warehouses often struggle under this volume and load.
He concluded by emphasizing that measuring agent quality is a systems problem, not a UI/UX problem. The goal for the future is to build a system that delivers insights about the unknown-unknowns of agents, is easy to onboard for both humans and agents, incorporates non-functional requirements like RBAC and data masking, and performs observability by default through an integrated gateway. This ultimate Self-improvement loop, as depicted, will feature coding agents iteratively making changes and suggesting improvements, with humans primarily responsible for reviewing the outcomes and making deployment decisions.