Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
activity

GitHub Action

Braintrust eval

v1.0.11

Braintrust eval

activity

Braintrust eval

Automatically run evals on your AI project using Braintrust

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Braintrust eval

uses: braintrustdata/[email protected]

Learn more about this action in braintrustdata/eval-action

Choose a version

Braintrust eval action

This project enables you to run Braintrust evals as part of your CI/CD workflow in Github, using Github actions. To use this action, simply include the following step in an action file:

- name: Run Evals
  uses: braintrustdata/eval-action@v1
  with:
    api_key: ${{ secrets.BRAINTRUST_API_KEY }}
    runtime: node

You can configure the following variables:

  • api_key: Your Braintrust API key.
  • root: The root directory containing your evals (defaults to '.'). The root directory must either have node or python configured.
  • paths: Specific paths, relative to the root, containing evals you'd like to run.
  • runtime: Either node or python

How it works

The action runs braintrust eval and collects experiment results, which are posted as a comment in the PR alongside a link to Braintrust. For example:

Example braintrust eval report

Say Hi Bot (HEAD-1714341466)

Score Average Improvements Regressions
Levenshtein 0.83 (+3pp) 🟢 8 🔴 4
Duration 1s (0s) 🟢 16 🔴 1

Example workflow templates

To see examples of fully configured templates, see the examples directory: