galileo
experiments
run_experiment
Run an experiment with the specified parameters.
There are two ways to run an experiment:
- Using a prompt template, prompt settings, and a dataset
- Using a runner function and a dataset
When using a runner function, you can also pass a list of dictionaries to the function to act as a dataset.
Arguments:
experiment_name
: Name of the experimentprompt_template
: Template for promptsprompt_settings
: Settings for prompt runsproject
: Project namedataset
: Dataset object, list of records, or dataset namedataset_id
: ID of the datasetdataset_name
: Name of the datasetmetrics
: List of metrics to evaluatefunction
: Optional function to run with the experiment
Raises:
ValueError
: If required parameters are missing or invalid
Returns:
Experiment run results