← All sessions, cheat sheets & labs
Week 5 · Field guide · Eval platform

Braintrust

A managed home for eval-driven development: datasets, scorers, experiment history, and a UI where the whole team compares runs.

eval-driven platformcommercial (free tier)hosted

What it is

Evals as tracked experiments.

Braintrust is a managed platform for eval-driven development. It gives you datasets, scorers, experiment tracking, a prompt playground, and a UI to compare runs against each other. It folds evals together with observability, so the failing traces you capture in production and the experiments you run to fix them live in one place, visible to engineers and non-engineers alike.

The one job

Run and compare evals as tracked experiments with a team UI.

Every eval run becomes a versioned experiment you can diff against the last one. That history is what turns "it feels better" into "run 14 beat run 13 on these scorers."

Reach for it when

Skip it when

A minimal look

A scorer over a model output.

import { Eval } from "braintrust";
import OpenAI from "openai";
const openai = new OpenAI();

Eval("support-bot", {
  data: () => [{ input: "refund window?", expected: "30 days" }],
  task: async (input) => {                      // call the model under test
    const r = await openai.responses.create({ model: "gpt-5", input });
    return r.output_text;
  },
  scores: [({ output, expected }) => output.includes(expected) ? 1 : 0], // tracked as experiment
});

The principle it teaches

Course principle

Close the loop. Failed production traces become dataset rows become regression guards, and the next release has to beat the last on those rows. Braintrust is the managed version of that flywheel. That is Session 9's loop, hosted.

Where it fits your labs

This is a Week 5 tool. When Lab 5 grows from a one-off eval into the flywheel, where captured failures continuously feed the dataset, Braintrust is the platform that keeps the datasets, scorers, and experiment history in one shared place.

Use in
Lab 5 and the eval flywheel: datasets, scorers, and tracked experiments in one UI.
week 5
Pairs with
A tracing tool feeding real production failures into your datasets.