Pick a metric
The Metric select is searchable. It lists preset and custom Galileo LLM-as-judge metrics available to your organization, plus saved custom prompts from the current Luna Studio project. The picker is organized into three groups:- Galileo presets — built-in scorers from the Galileo catalog.
- Custom Galileo metrics — custom metrics already created in Galileo.
- Saved custom prompts — prompts previously authored in Luna Studio.
Inspect a selected template
Once you pick a template, the form expands to show a read-only Metric details panel:- Output type — the metric’s return shape (Boolean, Categorical etc.). See Output types.
- Input level — where the metric evaluates data, such as an LLM span or trace.
- Metric shape — the dataset contract persisted with the metric, such as Input only, Output only, Input/output pair, RAG, or With tools.
- Prompt — the LLM-as-judge prompt the template uses, in a read-only textarea.
Write a custom prompt
For metrics that don’t fit a template, click the dropdown’s Use custom prompt option (with a+ icon). The form switches into editable mode.
In custom mode, you fill in:
Output types in detail
Other Galileo output types are not trainable in Luna Studio yet. The output type also constrains what label values your test set can use during validation. See Test sets.
Input levels in detail
Session does not appear as a selectable input level for custom metrics because generic full-session fine-tuning and registration are not supported in Luna Studio yet.
Metric shapes
For RAG,
output can also be present when the metric prompt needs it. Luna Studio displays Full trace as unavailable under the Trace input level and omits Session because those contracts cannot currently complete the UI fine-tune-and-register workflow.
The standalone Luna SDK supports advanced full-trace and full-session label-only workflows. Those SDK workflows do not make the same shapes trainable or registerable in the Luna Studio UI.
Prompt-writing tips
- Be specific. Define exactly what counts as a positive vs negative result.
- Give examples. One or two short examples per outcome class is plenty.
- Constrain the output. End the prompt with something like “Respond with only
trueorfalse.” for Boolean metrics. - Avoid open scales. “Score 1–10” is harder for an LLM judge to keep consistent than a binary or 3-class categorical.
Where to go next
Step 2 — Test set
Pick the labelled dataset Luna evaluates against.
Test sets
Schema rules and best practices for evaluation data.