Skip to main content
Export your annotated data to use in external evaluation frameworks, custom analysis pipelines, reporting, or training workflows. Braintrust provides multiple export methods to fit your needs.
Download data directly from the Braintrust dashboard:

Export logs

  1. Navigate to the Logs page.
  2. Apply filters to select the data you want.
  3. Select the export icon.
  4. Choose format (JSON or CSV).
  5. Download the file.

Export datasets

  1. Navigate to your dataset.
  2. Apply filters if needed.
  3. Select the export icon.
  4. Choose format.
  5. Download the file.

Export experiments

  1. Open an experiment.
  2. Select the export icon.
  3. Choose format.
  4. Download results including inputs, outputs, scores, and metadata.

Common export workflows

Build training datasets

Export annotated examples for fine-tuning:
curl -X POST https://api.braintrust.dev/btql \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "SELECT input, expected FROM project_dataset('"'<PROJECT_ID>'"', '"'<DATASET_ID>'"') WHERE expected IS NOT NULL",
    "fmt": "json"
  }'

Extract user corrections

Export traces where users provided corrections:
curl -X POST https://api.braintrust.dev/btql \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "SELECT input, output, expected, metadata.user_id FROM project_logs('"'<PROJECT_ID>'"') WHERE expected IS NOT NULL AND metadata.user_correction = true",
    "fmt": "json"
  }'

Generate reports

Export performance data for reporting:
curl -X POST https://api.braintrust.dev/btql \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "SELECT created, scores.user_rating, scores.accuracy, metadata.model FROM project_logs('"'<PROJECT_ID>'"') WHERE created > now() - interval 7 day",
    "fmt": "parquet"
  }'

Preserve annotations

When exporting, all annotations are preserved:
  • Tags: Included in the exported data
  • Comments: Available in the metadata
  • Expected values: Exported with each record
  • Scores: All score values included
  • Metadata: Custom fields maintained
This ensures your annotations remain useful in external tools.

Next steps