> ## Documentation Index
> Fetch the complete documentation index at: https://docs-platform.arklex.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Metrics

> Define what the LLM judge evaluates. Use built-in metrics or create custom ones with your own rubric.

Metrics define what the LLM judge evaluates during an evaluation run. Arklex includes seven built-in metrics and supports custom metrics you define with a natural-language rubric.

***

## Built-in metrics

Seven built-in metrics use Arklex's default scoring rubrics and are available in every evaluation without configuration:

| Metric                     | What it measures                                                                                                                                               |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Helpfulness**            | Whether responses actually help the user accomplish their goal.                                                                                                |
| **Coherence**              | Whether responses are logically consistent and well-structured across the conversation.                                                                        |
| **Relevance**              | Whether the agent stays on topic and addresses what the user asked.                                                                                            |
| **Verbosity**              | Whether response length is appropriate — not too terse or unnecessarily long.                                                                                  |
| **Faithfulness**           | Whether the agent's claims are grounded in the knowledge it was given, without hallucination.                                                                  |
| **Goal Completion**        | Whether the simulated user's stated goal was fully achieved. Scored 0–1 rather than 1–5, and **always included** in every evaluation — it can't be deselected. |
| **Agent Behavior Failure** | Whether the agent showed any defined failure behaviors (e.g. answering its own follow-up questions, recommending without gathering context).                   |

<Frame>
  <img src="https://mintcdn.com/arklex-06dfaf56/T15Gx3CKdjjM_ozo/images/metrics-built-in.png?fit=max&auto=format&n=T15Gx3CKdjjM_ozo&q=85&s=2a9da1daf08469ed2df4c3b27c592340" alt="The built-in metrics list on the Metrics page" width="3419" height="1967" data-path="images/metrics-built-in.png" />
</Frame>

***

## Create a custom metric

Custom metrics let you score domain-specific behaviors. Navigate to **Metrics** in the sidebar and click **New Metric** (or the **+** icon), then fill in the form:

<ParamField path="Name" type="string" required>
  A short label — e.g. "Identity Verification Compliance" or "Policy Accuracy."
</ParamField>

<ParamField path="Description" type="string">
  A one-sentence description that appears as a tooltip in evaluation results.
</ParamField>

<ParamField path="Type" type="string" required>
  Whether the metric produces a numeric score (**Quantitative**) or a category label (**Qualitative**).
</ParamField>

<ParamField path="Scope" type="string" required>
  Whether to score each assistant turn independently (**Turn**) or the full conversation once (**Conversation**).
</ParamField>

<ParamField path="System Prompt" type="string" required>
  The fixed instruction the judge receives, describing its role and how to apply this metric.
</ParamField>

<ParamField path="User Prompt Template" type="string" required>
  The per-turn or per-conversation prompt the judge uses to produce a score. Reference the conversation content here, and for quantitative metrics, define the scale and what each level means.
</ParamField>

<ParamField path="Type-specific config" type="object">
  For quantitative metrics, set the score range (e.g. 1–5 or 0–1). For qualitative metrics, define the label options the judge can assign.
</ParamField>

<Frame>
  <img src="https://mintcdn.com/arklex-06dfaf56/T15Gx3CKdjjM_ozo/images/metrics-custom.png?fit=max&auto=format&n=T15Gx3CKdjjM_ozo&q=85&s=45030b82a3c1492de3767b51c848152a" alt="The custom metric creation form" width="3419" height="1965" data-path="images/metrics-custom.png" />
</Frame>

<Tip>
  Be specific about score boundaries. Defining what a 1, 3, and 5 look like produces far more reliable scores than a vague instruction like "rate how professional the agent sounds."
</Tip>

Here's an example quantitative, turn-level rubric for a banking agent:

```text theme={null}
Evaluate whether the agent verified the customer's identity before sharing
any account-specific information.

Score 5 if the agent verified identity with at least two factors before
disclosing any account detail.
Score 3 if the agent verified with only one factor before disclosing.
Score 2 if the agent disclosed account details after asking for, but not
confirming, identifying information.
Score 1 if the agent disclosed account details with no verification at all.
```

Click **Save** to create the metric — it's immediately available in the metric selector when creating an evaluation.

***

## Manage custom metrics

Click a metric row to open its detail view.

**Edit** — Change the name, description, or prompt and click **Save**. The updated prompt applies to all future evaluations; previous results aren't retroactively rescored.

**Version history** — Each save creates a new version. View the history from the detail page to see what changed between runs and understand score differences over time.

**Delete** — Use the delete action on the detail page. The metric is removed from future evaluations, while historical results that used it stay unchanged.

***

## Select metrics for an evaluation

When creating an evaluation, the **Metrics** selector lists all available metrics grouped by type — **Custom** first, then the seven **Built-in** metrics. Search by name, or check metrics individually and use **Select All** / **Deselect All**. At least one metric must be selected before an evaluation can run (Goal Completion is always included).

<Frame>
  <img src="https://mintcdn.com/arklex-06dfaf56/T15Gx3CKdjjM_ozo/images/metrics-types.png?fit=max&auto=format&n=T15Gx3CKdjjM_ozo&q=85&s=391a5cc4f6115ccbebd639f3e6cf0695" alt="The metric selector grouped into custom and built-in types" width="3419" height="1964" data-path="images/metrics-types.png" />
</Frame>

***

## Refine a metric automatically

When your team's annotations consistently disagree with the judge's scores on a metric, **Metric Alignment** distills those disagreements into a refined rubric automatically — no manual prompt rewriting. See [Metric Alignment](/metric-alignment) for the full workflow.

***

## FAQ

<AccordionGroup>
  <Accordion title="How do I choose which metrics to include?">
    Start with the built-in metrics most relevant to your agent's purpose — for a banking assistant, Helpfulness, Goal Completion, and Faithfulness are usually the most informative. Add custom metrics for behaviors specific to your use case, like identity verification or policy accuracy.
  </Accordion>

  <Accordion title="Can I use custom metrics alongside built-in ones?">
    Yes — mix and match freely. Each metric is scored independently.
  </Accordion>

  <Accordion title="Does the choice of LLM judge affect scores?">
    Yes. Different models interpret rubrics differently. Use the same judge and model for consistency across runs; if you change judges, treat the results as a separate baseline rather than a direct comparison.
  </Accordion>

  <Accordion title="How many custom metrics should I create?">
    There's no hard limit, but evaluations with more than 10–12 metrics get hard to interpret. Focus on the 3–5 that best capture the behaviors you care about.
  </Accordion>
</AccordionGroup>
