Logging experiments
Experiments belong to projects, with one project containing many experiments. Each experiment has a single Log stream with multiple traces. When you use a dataset with an experiment, each row in the dataset is logged as a separate trace in the experiment’s Log stream. When you are starting to plan your experiments, ensure you have created the relevant project to run them in.Initial setup
To log experiments to Galileo, you need to configure the SDK to connect to Galileo using an API key and optionally a URL for a custom deployment, as well as setting the project name to log the experiments to.API key
To get started running experiments with Galileo, you need to configure your API key, and optionally the URL of your Galileo deployment if you are using a custom-hosted, or self-deployed version. These are set as environment variables. In development you can use a.env
file for these, for a production deployment make sure you configure these correctly for your deployment platform.
If you are using the free version of Galileo, there is no need to set the
GALILEO_CONSOLE_URL
environment variable.Environment variable | Description |
---|---|
GALILEO_API_KEY | Your Galileo API key. |
GALILEO_CONSOLE_URL | For custom Galileo deployments only, set this to the URL of your Galileo Console to log to. If this is not set, it will default to the hosted Galileo version at app.galileo.ai. |
Project
The project can be configured as an environment variable, or directly in code.Environment variable | Description |
---|---|
GALILEO_PROJECT | The Galileo project to log to. If this is not set, you will need to pass the project name in code. |
Next steps
Experiments SDK
Run Experiments
Learn how to run experiments in Galileo using the Galileo SDKs
Use Datasets in Code
Learn about more datasets, the data driving your experiments.
Prompts
Learn how to create and use prompts in experiments
Metrics
Metrics Reference Guide
A list of supported metrics and how to use them in experiments.
Local Metrics
Create and run custom metrics directly in code.
Custom Code-Based Metrics
Create reusable custom metrics right in the Galileo Console.
Custom LLM-as-a-Judge Metrics
Create reusable custom metrics using LLMs to evaluate your response quality