create_experiment
project_id: Optional project Id. Takes preference over the GALILEO_PROJECT_ID environment variable. Leave empty if using projectexperiment_name: Name of the experiment. Required.project: Optional project name. Takes preference over the GALILEO_PROJECT environment variable. Leave empty if using project_id
ValueError: Ifexperiment_nameis not provided, or if the project cannot be resolved fromproject_idorproject.HTTPValidationError: If there’s a validation error in returning an ExperimentResponse.
ExperimentResponse: The created experiment response.
get_experiment
project_id: Optional project Id. Takes preference over the GALILEO_PROJECT_ID environment variable. Leave empty if usingprojectexperiment_name: Name of the experiment. Required.project_name: Optional project name. Takes preference over the GALILEO_PROJECT environment variable. Leave empty if usingproject_id
ValueError: Ifexperiment_nameis not provided, or if the project cannot be resolved fromproject_idorproject.HTTPValidationError: If there’s a validation error in returning an ExperimentResponse.
ExperimentResponse results or ``None`` if not found.:
get_experiments
project_id: Optional project Id. Takes preference over the GALILEO_PROJECT_ID environment variable. Leave empty if usingprojectproject_name: Optional project name. Takes preference over the GALILEO_PROJECT environment variable. Leave empty if usingproject_id
HTTPValidationError: If there’s a validation error in returning a list of ExperimentResponse
List of ExperimentResponse results:
run_experiment
- Using a prompt template, prompt settings, and a dataset
- Using a runner function and a dataset
experiment_name: Name of the experimentprompt_template: Template for promptsprompt_settings: Settings for prompt runsproject: Optional project name. Takes preference over the GALILEO_PROJECT environment variable. Leave empty if using project_idproject_id: Optional project Id. Takes preference over the GALILEO_PROJECT_ID environment variable. Leave empty if using projectdataset: 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 experimentexperiment_tags: Optional dictionary of key-value pairs to tag the experiment with
ValueError: If required parameters are missing or invalid
Experiment run results: