Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
object
user
string
*
user
Required
string
The user you want to know to which variant belongs.
feature_flags
array
*
feature_flags
Required
array
The feature flags related to the experiment you are currently running. Note that you can run multiple experiments at the same time and you can run multiple feature flags on the same model.
This endpoint provides the necessary information for A/B testing. Given a user and a list of experiments or feature flags, the endpoint returns the variants assigned to the user. Since multiple feature flags can target the same user population, a user may belong to multiple variants.
A variant is an object that includes all the fields required to identify and use the specific version of the LLM assigned to the user. It contains a flag ID, which allows you to map the variant back to its corresponding feature flag.
user
string
required
The user you want to know to which variant belongs.
feature_flags
string[]
required
The feature flags related to the experiment you are currently running. Note that you can run multiple experiments at the same time and you can run multiple feature flags on the same model.
The name of the feature flag. If the variant refers to an experiment, this string contains the experiment name.
variant
object
The variant data.
kind
string
The kind of the variant. It could be one of the following values:
prompt: if the variant was about adding a system prompt
model: if the variant was about switching the underlying LLM model
rag: if the variant was about adding an extra or new RAG source
prompt
string
Optional parameter, returend only when the kind is prompt. It contains the system prompt to be appended to the LLM input.
model_id
string
Optional parameter, returend only when the kind is model. It contains the model ID to be used for processing the user input.
config_params
object[]
Configuration parameters needed for the chosen variants. These parameters are created in the feature flag / experiments section of the Nebuly platform.