Skip to content

feat(evals): Forward/pick up bt eval <...> --sample N flag#532

Merged
Luca Forstner (lforst) merged 3 commits into
mainfrom
lforst/eval-sample-flag
Jun 30, 2026
Merged

feat(evals): Forward/pick up bt eval <...> --sample N flag#532
Luca Forstner (lforst) merged 3 commits into
mainfrom
lforst/eval-sample-flag

Conversation

@lforst

Copy link
Copy Markdown
Member

Builds on braintrustdata/bt#247

When doing init_dataset() with the --sample N flag, it will sample the rows.

Comment thread py/src/braintrust/logger.py Outdated
"""

state = state or _state
sample_rate = getattr(builtins, "__bt_eval_sample_rate", None)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wonder if we should generalize this to __bt_eval_internal_btql so the cli can send more arbtirary stuff?

@lforst Luca Forstner (lforst) merged commit 7fb224c into main Jun 30, 2026
82 checks passed
@lforst Luca Forstner (lforst) deleted the lforst/eval-sample-flag branch June 30, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants