dpguthrie GitHub avatar

mastering-ai-observability-workshop

dpguthrie

一个本地工作坊应用,利用 Braintrust 构建基于追踪的智能体改进飞轮,用于优化 AI 支持代理。

Stars

16

7 天增长

暂无数据

Fork 数

1

开放 Issue

0

开源协议

暂无数据

最近更新

2026-06-29

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它提供了完整的动手实践工作流,通过真实追踪和评估迭代改进 AI 支持代理,并包含预填充数据和分步指南。

适合谁使用

  • 构建 AI 支持代理的 AI/ML 工程师
  • 使用 Braintrust 进行评估的开发者
  • 参与 AI 智能体工作坊的引导者或参与者
  • 实现基于追踪的智能体改进循环的团队

典型使用场景

  • 运行评估数据集以衡量支持代理性能
  • 导入并分析类生产追踪以发现问题
  • 根据追踪模式起草新的评估用例
  • 通过命令行评估切换模型并测试改进

项目优势

  • 集成 Braintrust Gateway,支持实时模型调用和工具/函数调用
  • 提供现成的命令来种子数据库、运行评估和推送评分器
  • 包含样本追踪和评估数据集,可立即实验
  • 提供专门的工作坊指南(WORKSHOP.md)和自定义主题面提示

使用前须知

  • 需要 Braintrust API 密钥和网关配置才能运行实时模型调用
  • 专注于支持代理用例,不适用于其他类型的智能体
  • 本地设置依赖(uv sync、.env 文件)可能增加初始门槛

README 快速开始

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

项目描述

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

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

lopopolo
精选
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 与机器学习AI 智能体
2,390
slvDev
精选
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 与机器学习大语言模型
1,960
littledivy
精选
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 与机器学习
1,482