Skip to main content
The Luna Studio SDK gives you a code-first workflow for building custom Luna metrics. You can generate or label training data, fine-tune a Luna metric, evaluate the results, and register the trained metric in Galileo.

What you can do

Install the SDK

Set up the Python package and optional extras for your LLM provider and deployment environment.

Train a Luna metric

Follow the end-to-end workflow for preparing data, configuring the pipeline, and fine-tuning your metric.

Deploy to Galileo

Register a trained Luna metric so it can be used across the Galileo platform.

Browse tutorials

Pick a hands-on guide for your metric input shape, including spans, traces, and sessions.

Minimal example

Copy this sample config to a YAML file called config.yaml:

Where to go next

Installation

Install the package and choose the right optional extras.

How to train your Luna metric

Understand the full workflow for data generation and training.

Deployment

Learn how to register the trained model in Galileo.

Tutorials

Jump straight to an example that matches your input shape.