> For the complete documentation index, see [llms.txt](https://docs.datumo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datumo.com/documentation/documentation-en/evaluation/how-to-use/4.-add-and-manage-metrics.md).

# 4. Add & manage Metrics

## What is a Metric?

> Metric is “***How*** to evaluate (How)” is the unit that defines it.\
> It is the concept that defines how the evaluation results will actually be calculated or determined.

***

## How to add & manage Metrics

### 1. Select a Metric creation method

You can directly add a custom prompt or choose a provided template.

<figure><img src="/files/pqXxZmo8eB8WwPmVdPGs" alt=""><figcaption></figcaption></figure>

### 2. Enter a custom prompt

If using a custom prompt, directly enter the prompt to use for evaluation. If using a custom prompt, directly enter the prompt to use for evaluation.

<figure><img src="/files/pU9xrsVIWij5t8WfGtmC" alt=""><figcaption></figcaption></figure>

### 3. Key Mapping

Check the values required by the Metric and map the necessary keys for evaluation.

<figure><img src="/files/zuliop4Qb8oh13jt302Y" alt=""><figcaption></figcaption></figure>

### 4. Evaluation Quality Preview

The evaluation quality of the configured Metric `+Add Query/Response` by adding data `Run Test` can be checked through the Preview when executed.

<figure><img src="/files/HHlXevDWREqaJn39RgCh" alt=""><figcaption></figcaption></figure>

***

### 🔗 Related documents

* E-1. Creating and managing Criteria — How to configure Criteria, Subgroup, and Task
* E-2. Task Management — How to manage Task basic information, Schema, Metric, and Benchmark Set
* E-3. Managing Benchmark Sets — How to upload Benchmark Sets and generate AI-based data
* E-5. Run Eval — How to run an evaluation Run and check history
* E-6. Eval Result — How to check evaluation results and manage Errors and Retries
* E-7. Dashboard — How to visualize and analyze evaluation results
