Documentation Index
Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt
Use this file to discover all available pages before exploring further.
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_idexperiment_group: Optional name of an experiment group to assign this experiment to. If a group with this name does not exist in the project, the API auto-creates it.experiment_group_id: Optional UUID of an existing experiment group. If the group does not exist in this project, the SDK raisesgalileo.NotFoundError(HTTP 404, API error_code 3520). If bothexperiment_group_idandexperiment_groupare provided, the API uses the ID and silently ignores the name.
ValueError: Ifexperiment_nameis not provided or if the project cannot be resolved fromproject_idorproject.galileo.NotFoundError: Ifexperiment_group_idis provided but the group does not exist in the project.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
GET /projects/{id}/experiments). When experiment_group or
experiment_group_id is provided, returns only experiments assigned to that group
(calls POST /projects/{id}/experiments/search and pages internally).
Arguments
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_idexperiment_group: Optional experiment-group name to filter by. Returns only experiments assigned to a group with this name. Mutually compatible withexperiment_group_id: if both are provided, both filters are sent and the API resolves precedence.experiment_group_id: Optional experiment-group UUID to filter by. Returns only experiments assigned to this group.
HTTPValidationError: If there’s a validation error in returning a list of ExperimentResponsehttpx.HTTPStatusError: If the search endpoint returns a non-2xx response (only when a group filter is set).
List of ExperimentResponse results. When a filter is set, the list is scoped to the:
list_experiment_groups
POST /projects/{project_id}/experiment-groups/query and pages through
every group internally. The full list is returned in a single call; customers
do not need to handle pagination tokens.
The project can be specified by providing exactly one of the project name (via the
project_name parameter or the GALILEO_PROJECT environment variable) or the
project ID (via the project_id parameter or the GALILEO_PROJECT_ID
environment variable).
Arguments
project_id: Optional project ID. Takes preference over theGALILEO_PROJECT_IDenv var.project_name: Optional project name. Takes preference over theGALILEO_PROJECTenv var.
ValueError: If the project cannot be resolved.httpx.HTTPStatusError: If the API returns a non-2xx response.
list[ExperimentGroupResponse]: All experiment groups in the project.
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 runs. Accepts aPromptRunSettingsinstance or a plaindictwith matching field names, which will be coerced toPromptRunSettingsautomatically.project: 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 withon_error: Optional callback invoked with the exception when a flush error occurs. Only applies to the function flow — ignored in the prompt-template flow (a warning is logged if provided there). Creation errors always propagate regardless of this callback. If None, flush errors are logged as warnings. Defaults to None.experiment_group: Optional name of an experiment group to assign this run to. If a group with this name does not exist in the project, the API auto-creates it. If neitherexperiment_groupnorexperiment_group_idis provided and the run has a dataset, the API auto-creates a group named"<dataset_name> Experiment Group"; otherwise the run lands in the project’s system “Ungrouped” group.experiment_group_id: Optional UUID of an existing experiment group. If the group does not exist in this project, the SDK raisesgalileo.NotFoundError(HTTP 404, API error_code 3520) before the run is created. If bothexperiment_group_idandexperiment_groupare provided, the API uses the ID and silently ignores the name.
ValueError: If required parameters are missing or invalid.galileo.NotFoundError: Ifexperiment_group_idis provided but the group does not exist in the project.
Experiment run results: