dpguthrie GitHub avatar

mastering-ai-observability-workshop

dpguthrie

A local workshop app that uses Braintrust to build a trace-backed agent improvement flywheel for AI support agents.

Stars

16

7-day growth

No data

Forks

1

Open issues

0

License

No data

Last updated

2026-06-29

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It provides a complete, hands-on workflow for iteratively improving AI support agents using real traces and evals, with pre-seeded data and a step-by-step guide.

Who it is for

  • AI/ML engineers building support agents
  • Developers using Braintrust for evaluation
  • Workshop facilitators or participants in AI agent workshops
  • Teams implementing trace-driven agent improvement loops

Use cases

  • Running evaluation datasets to measure support agent performance
  • Importing and analyzing production-like traces to identify issues
  • Drafting new evaluation cases from trace patterns
  • Switching models and testing improvements via command-line evals

Strengths

  • Integrates with Braintrust Gateway for live model calls and tool/function calling
  • Provides ready-made commands to seed database, run evals, and push scorers
  • Includes sample traces and evaluation datasets for immediate experimentation
  • Offers a dedicated workshop guide (WORKSHOP.md) and a custom Topics facet prompt

Considerations

  • Requires a Braintrust API key and Gateway configuration to run live model calls
  • Focused on support agent use case; not general-purpose for other agent types
  • Local setup dependencies (uv sync, .env file) may add initial friction

README quick start

AI Evals World's Fair Support Flywheel

This repo is the local workshop app for building a trace-backed agent improvement flywheel with Braintrust.

Start Here

uv sync --extra dev
cp .env.example .env
uv run python scripts/seed_db.py
make ready
make chat-ui

Open .

Live model calls use Braintrust Gateway and require BRAINTRUST_API_KEY plus AGENT_DEFAULT_MODEL in .env. Pick a Gateway-configured chat model that supports tool/function calling; make ready runs a live support-agent tool-call smoke before the workshop flow. JUDGE_MODEL is optional and falls back to AGENT_DEFAULT_MODEL.

Core Commands

make create-eval-dataset  # seed Braintrust eval dataset from evals/cases.jsonl
make eval              # run the eval from the Braintrust dataset
make configure-topics  # enable the workshop Topics facets
make push-scorers      # push hosted scorer definitions to Braintrust
make import-sample-traces  # import the shared sanitized trace bundle
make draft-cases       # optional: create review-draft dataset rows from traces
make ready             # check env, database, catalog hint, and live model tool calls
make ready-skip-model  # check local readiness without the live model call
make traces            # dynamically write production-like traces to Braintrust
make traces-reset      # reseed before writing production-like traces
make test              # unit and web smoke tests

The starter eval cases in evals/cases.jsonl use Braintrust dataset row shape: input, optional expected, and metadata. make eval reads from the Braintrust dataset named by EVAL_DATASET.

Seed data lives in data/seed.json. Eval and trace commands reuse an existing valid local DB by default; use the reset commands when you want a clean seed.

To try a different model for one eval:

AGENT_DEFAULT_MODEL=gpt-4o bt eval evals/eval_support_agent.py --no-input

Workshop Guide

Description

AIE World's Fair content for the Mastering AI Observability workshop with Braintrust

Related repositories

Similar projects matched by category, topics, and programming language.

lopopolo
Featured
lopopolo GitHub avatar

harness-engineering

Harness Engineering is a methodology for improving coding agent outputs by carefully crafting the environment around them—providing curated context, tools, and executable constraints that encode an organization’s nonfunctional requirements and cumulative lessons.

AI & Machine LearningAI Agents
2,390
slvDev
Featured
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI & Machine LearningLarge Language Models
1,960
littledivy
Featured
littledivy GitHub avatar

mimic

mimic captures traffic from any iOS or web app and automatically generates a Python client library that lets you call the app's API like a regular library.

AI & Machine Learning
1,482