braintrust
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "braintrust" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-dd35e5a915e2e9a63ab0488423678ea719af89dd294bb31bdb5e65a3e044766f. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
As a Braintrust expert, assist developers with systematic evaluation and observability for AI applications: comparing model versions, tracking experiments, recording production traces, and measuring quality metrics, aiming to bring testing rigor to AI development.
Introduction source: third_party · TerminalSkills · 1.0.0 Reference
SkillPi interpretation
- Testing
- Not tested
Browse files
Frontmatter
name: braintrust
description: >-
You are an expert in Braintrust, the evaluation and observability platform
for AI applications. You help developers run systematic evaluations, compare
model versions, track experiments, log production traces, and measure
quality metrics — with a focus on making AI development as rigorous as
traditional software testing.
license: Apache-2.0
compatibility: ''
metadata:
author: terminal-skills
version: 1.0.0
category: AI & Machine Learning
tags:
- evaluation
- llm
- testing
- observability
- experiments
- loggingBraintrust — AI Evaluation and Observability
You are an expert in Braintrust, the evaluation and observability platform for AI applications. You help developers run systematic evaluations, compare model versions, track experiments, log production traces, and measure quality metrics — with a focus on making AI development as rigorous as traditional software testing.
Core Capabilities
import { Eval, init } from "braintrust";
init({ apiKey: process.env.BRAINTRUST_API_KEY });
// Run evaluation
await Eval("support-chatbot", {
data: () => [
{ input: "How do I reset my password?", expected: "Go to Settings > Security > Reset Password" },
{ input: "What's the pricing?", expected: "Plans start at $29/month" },
{ input: "I need a refund", expected: "Contact support at help@example.com" },
],
task: async (input) => {
const response = await callChatbot(input);
return response.text;
},
scores: [
// Built-in scorers
Factuality, // Does output match expected facts?
ClosedQA, // Is the answer correct given context?
// Custom scorer
(output, expected) => {
const containsKey = expected.toLowerCase().split(" ")
.some(word => output.toLowerCase().includes(word));
return { name: "keyword_match", score: containsKey ? 1 : 0 };
},
],
});
// Results visible in Braintrust dashboard with diffs, regressions, improvements
# Python
from braintrust import Eval
Eval(
"rag-pipeline",
data=lambda: [{"input": q, "expected": a} for q, a in test_pairs],
task=lambda input: rag_pipeline.query(input),
scores=[Factuality, Relevance],
)
Installation
npm install braintrust autoevals
# or
pip install braintrust autoevals
Best Practices
- Eval-driven development — Write evals first, then iterate on prompts/models; measure before optimizing
- Built-in scorers — Use Factuality, ClosedQA, Relevance from
autoevals; LLM-based quality scoring - Custom scorers — Add domain-specific metrics; combine with built-in for comprehensive evaluation
- Experiments — Each eval run is an experiment; compare side-by-side in dashboard
- Production logging — Use
braintrust.traced()for production observability; same dashboard as evals - CI integration — Run evals in CI; fail builds on quality regressions
- Dataset management — Store test datasets in Braintrust; version and share across team
- A/B comparison — Compare two model versions on the same dataset; statistical significance reported
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 AI 评估和观测的专业能力
- 解决开发者系统性评估、模型比较等核心痛点
- 属于 AI 开发领域的高价值工具
Highlights
- description 完整且位置正确
- 触发词覆盖 Braintrust 平台相关场景
- 边界清晰不易与其他 Skill 重叠
Highlights
- 结构清晰包含核心能力、安装、最佳实践等章节
- 提供端到端代码示例
- frontmatter 完整且文档长度适中
Highlights
- 提供明确的安装命令和 API 使用示例
- 代码示例完整参数正确
- 工具来源明确覆盖主要使用场景
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 76, 78 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 33
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.