Skip to content

feat: Add experiment dataset filter to experiment metadata#1898

Merged
max-braintrust merged 11 commits intomainfrom
forward-internal-btql-to-experiment
Apr 24, 2026
Merged

feat: Add experiment dataset filter to experiment metadata#1898
max-braintrust merged 11 commits intomainfrom
forward-internal-btql-to-experiment

Conversation

@max-braintrust
Copy link
Copy Markdown
Contributor

@max-braintrust max-braintrust commented Apr 23, 2026

Stores _internal_btql filters for experiment datasets in the experiment metadata.

Right now we don’t persist those filter options, so we lose the ability to reconstruct the exact subset of rows an experiment ran against. If we save them with the experiment, we can recreate the same row set later instead of having to guess.

This unlocks a few useful things:

  • Re-running an experiment on the exact same data it originally saw.
  • Showing the BTQL filter used by an experiment in the Braintrust UI.
  • Anything else that depends on reconstructing the precise rows that were initially fed into an experiment.

@lforst Luca Forstner (lforst) changed the title Add experiment dataset filter to experiment metadata feat: Add experiment dataset filter to experiment metadata Apr 24, 2026
Copy link
Copy Markdown
Member

@lforst Luca Forstner (lforst) left a comment

Choose a reason for hiding this comment

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

It would be great if you could still add to the PR description how a user would use this or how this is used in the product!

@max-braintrust max-braintrust merged commit 7bf8034 into main Apr 24, 2026
47 of 49 checks passed
@max-braintrust max-braintrust deleted the forward-internal-btql-to-experiment branch April 24, 2026 23:50
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