Applies to:
- Plan - Any
- Deployment - Any
- Use case - Run existing Braintrust scorers on previously generated model outputs by uploading outputs as logs or returning stored outputs from an SDK evaluation
Summary
You can run your existing scorers on pre-generated model outputs by uploading input/output pairs as logs or by running an SDK evaluation that returns stored outputs. The UI experiment flow expects a task, so upload-then-score in Logs is the simplest way to reuse scorers without calling the model again. Include theinput, output, expected, and any metadata your scorers need.
Overview
Braintrust scorers expectinput, output, expected, and per-case metadata for each row they evaluate. When outputs already exist (from a batch run, a third-party model, or a previous session), you can upload them as logs and score them without re-running the model.
The UI experiment flow normally runs a task that calls a model. It does not support a scorer-only pass over an uploaded dataset without a task function.
Score pre-generated outputs
Option 1: upload logs and run scorers from Logs (recommended)
- Prepare rows with the fields your scorers expect:
input,output,expectedwhen applicable, and any metadata keys your scorers read. Add a batch marker likemetadata.sample_batchto filter the rows later. - Use the Python SDK logger to upload the rows. Keep the format consistent with your scorers.
- In the UI, go to Logs and filter by
metadata.sample_batch = 'bedrock-validation-001'or your chosen marker. Select rows and click Score. Choose your existing scorers. - Review results in the Logs table. Teammates can repeat the same selection and scoring steps.
Option 2: run an SDK evaluation that returns stored outputs
-
Create a dataset where each row includes the original
input, anyexpectedvalue, and the stored output inmetadata.run_output. -
Keep the original case input in
input.Eval()passes that value to the task, so read the stored answer throughhooks.metadata: Write a simple task that reads the dataset row and returns the storedoutputwithout calling the model. The task should return the value in the same field your scorers expect as the runoutput. -
Attach your saved scorers to the evaluation and run it. The scorers will receive the returned
output, plusinput,expected, andmetadatafor each case. - To let teammates launch the evaluation from the UI, serve and register it as a remote eval. Keep the remote eval server running while teammates use it.
How to confirm it worked
- In Logs, the selected rows show score spans and numeric or categorical results from your scorers. The scores match your expectations on known examples.
- For SDK evaluations, open the experiment run and confirm the scorers appear in the run and that their outputs match expected values for test cases.
Notes
- Include any
expectedvalues and per-case metadata your scorers rely on when you upload rows. - Use a consistent
metadatakey such assample_batchto find and select the uploaded rows quickly. - Uploading logs does not re-run the model. The scorers evaluate the saved
outputvalues only.