An open API service indexing awesome lists of open source software.

https://github.com/dpguthrie/braintrust-playground


https://github.com/dpguthrie/braintrust-playground

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# Braintrust Playground

A collection of cookbooks demonstrating Braintrust's evaluation and dataset management capabilities.

## Setup

1. Install dependencies:
```bash
uv sync
```

2. Set up environment variables:
```bash
cp .env.example .env
# Edit .env with your API keys
```

## Development

This project uses:
- Python 3.12+
- uv
- Braintrust for experiment tracking
- Pydantic for data validation

## Makefile Commands

The project includes a Makefile to simplify common tasks:

```bash
# Show available commands and their descriptions
make help

# Run agent evaluation for a specific cookbook
make run-evals code_conversion

# Create example dataset in Braintrust
make push-datasets
```

### Command Details

- `make help`: Displays all available commands with their descriptions
- `make run-evals `: Runs agent evaluation for the specified cookbook
- Example: `make run-evals code_conversion`
- Evaluates model outputs against ground truth
- Generates metrics and scores
- Creates evaluation reports
- `make push-datasets`: Creates example dataset in Braintrust using `code_conversion/push_datasets.py`
- Pushes dataset versions to Braintrust's platform
- Enables tracking and versioning of your datasets
- Makes datasets available for experiments

## License

MIT