You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[
{ "role": "system", "content": "You are a strict grader. Reply with a single label." },
{ "role": "user", "content": "Question: {{input}}\nAnswer: {{output}}\nIs the answer correct?" }
]
metadata.yaml
Details
owner: test-teampurpose: demo
scorers_demo.sh
Details
#!/usr/bin/env bash# Showcase for `bt scorers`. Run `bt auth` and select a project first.# Reads messages.json and metadata.yaml from this directory (@ = read from file).# 1. Minimal score scorer: --choice-scores maps each label to a score in [0,1].
bt scorers create "Correctness" --slug correctness \
--model gpt-5.4-nano \
--messages @messages.json \
--choice-scores '{"correct":1,"incorrect":0}' \
--if-exists replace
# 2. Fully-configured LLM judge (every knob mirrors the web UI).
bt scorers create "Quality judge" --slug quality-judge \
--model gpt-5.4-nano \
--messages @messages.json \
--choice-scores '{"pass":1,"fail":0}' \
--max-tokens 512 --top-p 0.9 \
--template-format mustache \
--pass-threshold 0.7 \
--metadata @metadata.yaml \
--if-exists replace
# 3. Classifier: label output instead of a score. --allow-no-match lets it abstain.
bt scorers create "Safety label" --slug safety-label \
--model gpt-5.4-nano \
--messages @messages.json \
--classifications '["safe","unsafe"]' \
--allow-no-match \
--if-exists replace
# 4. Update in place; only the fields you pass change. -y skips the prompt.
bt scorers update quality-judge --pass-threshold 0.8 -y
bt scorers update quality-judge --patch '{"prompt_data":{"options":{"params":{"top_p":0.95}}}}' -y
# 5. Inspect.
bt scorers list
bt scorers view quality-judge
# Cleanup (optional).# bt scorers delete correctness --force# bt scorers delete quality-judge --force# bt scorers delete safety-label --force
After using the script:
When trying to update a parameter that isn't supported:
❯ bt scorers update --temperature 1
✔ Select scorer · Correctness [slug: correctness]
error: --temperature is not supported by model 'gpt-5.4-nano' unless reasoning effort is 'none'; pass `--reasoning-effort none` or omit `--temperature`
If this seems like a bug, file an issue at https://github.com/braintrustdata/bt/issues/new and include `bt --version`, `bt status --json`, and the command you ran.
Note: the check is done on bt's side, soon even if it passes it will be done in the backend too. The check is imperfect.
LLM overview:
New scorer creation
Adds bt scorers create for prompt-based LLM scorers and classifiers.
Supports messages, model selection, score mappings/classifications, chain-of-thought, pass thresholds, metadata, and --if-exists.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
messages.json:Details
[ { "role": "system", "content": "You are a strict grader. Reply with a single label." }, { "role": "user", "content": "Question: {{input}}\nAnswer: {{output}}\nIs the answer correct?" } ]metadata.yamlDetails
scorers_demo.shDetails
After using the script:

When trying to update a parameter that isn't supported:
Note: the check is done on
bt's side, soon even if it passes it will be done in the backend too. The check is imperfect.LLM overview:
New scorer creation
New update commands
LLM configuration and validation
format.
Input source helpers
Scorer/classifier integration
API additions
Authentication fix
Other behavior