Building a Scalable AI Feature Evaluation System

notion · Tech · 2023 · source Agentic: yes · promotional bias: high · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Evaluation infrastructure for production AI features

Notion needed evaluation practices that could keep 70 engineers aligned while AI features moved from simple prompt-and-judge flows to agents with many possible paths, large traces, multilingual edge cases, and rapid frontier-model adoption.

Constraints:

Architecture

Notion uses Braintrust as a core evaluation and observability layer for Notion AI. Feedback and traces feed evaluation datasets, LLM-as-judge checks, custom-code evaluation screens, and searchable trace infrastructure. The team runs regression and frontier evals, builds targeted datasets for issues such as multilingual adherence, uses Brainstore to search massive traces for tool calls and error patterns, and treats evaluation output as the basis for most AI team work.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  notion-ai[Notion AI] --> braintrust[Braintrust]
  notion-ai[Notion AI] --> frontier-models[Frontier Models]
  braintrust[Braintrust] --> evaluation-datasets[Evaluation Datasets]
  evaluation-datasets[Evaluation Datasets] --> llm-judge[LLM Judge]
  braintrust[Braintrust] --> custom-evaluation-code[Custom Evaluation Code]
  custom-evaluation-code[Custom Evaluation Code] --> data-specialist[Data Specialist]
  braintrust[Braintrust] --> brainstore[Brainstore]
  brainstore[Brainstore] --> llm-traces[LLM Traces]
  llm-traces[LLM Traces] --> braintrust[Braintrust]
  frontier-models[Frontier Models] --> braintrust[Braintrust]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Notion AI AI product surface for search, writing, summarization, workflow automation, and agentic actions. Braintrust, Frontier Models
Braintrust Evaluation and observability platform for traces, feedback, datasets, and experiments. Notion AI, Evaluation Datasets, LLM Judge, Custom Evaluation Code, Brainstore
Evaluation Datasets Curated issue-specific and regression/frontier datasets built from traces and feedback. Braintrust, LLM Judge
LLM Judge Model-based evaluator used for targeted quality checks such as language adherence. Evaluation Datasets, Braintrust
Custom Evaluation Code Notion-specific UI and code layered onto Braintrust to inspect, label, and route data. Braintrust, Data Specialist
Data Specialist Human evaluator who labels data and adds it to the right evaluation set. Custom Evaluation Code
Brainstore Trace database and search indexing infrastructure for large-context LLM traces. Braintrust, LLM Traces
LLM Traces Customer interactions, tool calls, error codes, and prompt traces from Notion AI. Brainstore, Braintrust
Frontier Models New model releases evaluated and deployed quickly when they improve specific use cases. Notion AI, Braintrust

Data flow

Customer traces and feedback enter Braintrust. Engineers search traces, build targeted datasets for failures, apply custom evaluation code and LLM judges, compare regression and frontier model behavior, and use the resulting feedback to decide which model capabilities to deploy and which product issues to fix.

3 supporting quotes
“Now, 80% of what the AI team does is based on evaluating from feedback and traces in Braintrust; tinkering, measuring, and understanding if they are moving in the right direction.”article, stated
“With Braintrust's search functionality and evaluation mechanisms, Notion can create a dataset of all the times in which language adherence failed to meet expectations. And then they can use LLMs as a judge to ensure that Notion AI never regresses on that in the future.”article, stated
“the team needed to search not just customer interactions but specific tool calls, error codes, and patterns within massive traces.”article, stated

Why this architecture

Notion relies on evaluation infrastructure because agentic AI behavior is combinatorial, customer issues hide inside large traces, and frontier models change faster than fixed evaluation methods. Braintrust gave the team custom evaluation code and trace search without forcing a rigid data representation.

3 supporting quotes
“agents are doing path-finding, adjusting based on their own results, and navigating a huge number of possible evaluation paths.”article, stated
“Notion's data has unique structure and requirements that off-the-shelf evaluation tools cannot address. For Notion, Braintrust is perfect because it's not too opinionated. They can start with a template and figure out how to represent their data in the best way possible.”article, stated
“As Notion's AI prompts grew from thousands of tokens to hundreds of thousands, the team needed to search not just customer interactions but specific tool calls, error codes, and patterns within massive traces. Standard search was too slow.”article, stated

Models used: GPT-2 · frontier reasoning models · LLM judges

Scale

Alternatives considered (roads not taken)

Use vibe checks at team scale

Rejected because: At 70 engineers and agentic path complexity, subjective checks no longer worked.

“When operating with 70 engineers at scale, vibe checks no longer work. Now, 80% of what the AI team does is based on evaluating from feedback and traces in Braintrust; tinkering, measuring, and understanding if they are moving in the right direction.”article, stated

Rely on regression evals alone

Rejected because: A frontier model can pass regression evals while behaving differently in ways that matter for deployment decisions.

“When a new frontier model comes out, it might pass a regression eval at 100%, similar to the last model. This gives a good sense of broad performance, but may not be fine-grained enough for implementation in Notion's product.”article, stated
“To understand how a new model functions differently than prior models, Notion runs a frontier eval that can immediately identify what it does differently, so they can start deploying it for those specific use cases.”article, stated

Use standard search over customer interactions

Rejected because: Notion needed performant search over tool calls, error codes, and patterns within huge traces.

“the team needed to search not just customer interactions but specific tool calls, error codes, and patterns within massive traces. Standard search was too slow.”article, stated

Patterns

eval-driven-development (evaluation)

Notion bases most AI team work on feedback and traces in Braintrust rather than ad hoc checks.

“80% of what the AI team does is based on evaluating from feedback and traces in Braintrust”article, stated

llm-as-judge (evaluation)

Notion uses LLM judges to prevent regressions in targeted capabilities like language adherence.

“they can use LLMs as a judge to ensure that Notion AI never regresses on that in the future.”article, stated

observability-tracing (observability)

Searchable traces expose customer interactions, tool calls, error codes, and patterns for debugging.

“specific tool calls, error codes, and patterns within massive traces.”article, stated

canary-rollout (release)

Frontier evals identify where new models differ so Notion can deploy them for specific use cases quickly.

“Notion runs a frontier eval that can immediately identify what it does differently, so they can start deploying it for those specific use cases.”article, stated

Tradeoffs

Build both regression and frontier evals

Chose Regression plus frontier evaluation over Regression evals alone.

Rationale: Regression evals catch breakage, while frontier evals reveal model-specific improvements for deployment choices.

“Regression evals catch breakage, but frontier evals reveal where new models genuinely improve, enabling faster deployment.”article, stated

Customize evaluation infrastructure

Chose Custom code and Notion-specific data representation on Braintrust over Off-the-shelf evaluation workflows.

Rationale: Notion's horizontal product data required custom UI and labeling flows while still using Braintrust primitives.

“Notion's data has unique structure and requirements that off-the-shelf evaluation tools cannot address.”article, stated
“Being able to add custom code on top of Braintrust means they can execute even faster.”article, stated

Rebuild systems around new model capabilities

Chose Six-month rebuild mindset over Keeping old architecture despite frontier model shifts.

Rationale: New reasoning capabilities required different prompting and system structure.

“be willing to start over every six months.”article, stated
“When models came out that could self-heal on their own tool results, we rebuilt Notion AI”article, stated

Gotchas (what bit them)

Agentic evaluation has combinatorial path complexity.

Root cause: Agents adjust based on their own results and can navigate many evaluation paths.

Resolution: Notion moved beyond simple prompt-and-judge setups into trace-backed, dataset-driven evaluation.

“one prompt, maybe two chained together, with a simple LLM judge and expected output.”article, stated
“that's kind of a combinatorial explosion in evaluation.”article, stated

Some high-priority quality problems are rare and hard to find.

Root cause: Issues like multilingual language adherence affect subsets of customers and may not show in broad metrics.

Resolution: Braintrust search and evaluation mechanisms let Notion build targeted datasets from failure cases.

“find the needle-in-a-haystack problems that might not happen at scale for every customer, but which are high priority for a subset of customers.”article, stated
“create a dataset of all the times in which language adherence failed to meet expectations.”article, stated

Existing databases broke down for large LLM trace search.

Root cause: Prompts expanded to hundreds of thousands of tokens and developers needed specific trace/tool/error searches.

Resolution: Notion adopted Brainstore's LLM-trace indexing infrastructure.

“As Notion's AI prompts grew from thousands of tokens to hundreds of thousands”article, stated
“when their existing databases started breaking, it became a problem.”article, stated

Evaluation

Notion uses Braintrust feedback and traces, regression evals, frontier evals, targeted failure datasets, LLM judges, custom evaluation code, and Brainstore trace search to guide AI development.

Metrics: regression eval pass rate · frontier eval differences · language adherence failures · trace search over tool calls and error codes · 80% AI team work from feedback and traces

3 supporting quotes
“Notion runs evals that catch regressions, and evals that measure frontier performance.”article, stated
“With Braintrust's search functionality and evaluation mechanisms, Notion can create a dataset of all the times in which language adherence failed”article, stated
“The way that Notion builds is primarily based on observability and using evals to understand the problems they need to address for customers.”article, stated

Outcomes

The source emphasizes 70 engineers, prompt traces growing to hundreds of thousands of tokens, and model deployment within hours of release.

“a comprehensive framework that keeps 70 engineers aligned while deploying frontier models within hours of release.”article, stated
“that eval alone was probably one of the top improvements that they've had in quality in the past year.”article, stated