Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -3% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 11% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 29% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 31% | 0% |
| case-13 | ✗→✓ | ▲ Improved | -53% | 0% |
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.
typescriptimport { 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# 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], )
bashnpm install braintrust autoevals # or pip install braintrust autoevals
autoevals; LLM-based quality scoringbraintrust.traced() for production observability; same dashboard as evalsOther measured skills in the registry, with their headline benchmark lift.