# Metrics

## Creating Metrics with Dynamiq

Welcome to the first chapter dedicated to **Metrics Creation** using Dynamiq. Effective evaluation begins with the right metrics, and this guide will provide you with the knowledge you need to create, customize, and implement metrics that enhance the performance of your AI-driven solutions.

<figure><img src="/files/8iaPny4iwPEzOKaffSKS" alt=""><figcaption></figcaption></figure>

In this chapter, we will cover the various types of metrics available in Dynamiq, breaking them down into three main categories:

1. **LLM-as-a-Judge Metrics**: Customize your evaluations by defining LLM prompts tailored to specific evaluation goals. Discover how to create effective metric prompts that assess various criteria, such as accuracy, relevance, and more.
2. **Predefined Metrics**: Leverage a set of complex, predefined metrics designed to evaluate the quality of answers in Retrieval-Augmented Generation (RAG) and agentic applications. Learn about the built-in metrics available to you and how to utilize them for your specific needs.
3. **Custom Python Code Metrics**: For advanced users, Dynamiq allows the creation of custom metrics using Python code. This provides the flexibility to programmatically implement evaluation methods tailored to your unique requirements.

### What to Expect in the Subpages

In the upcoming subpages, you’ll find detailed information on each metric category, including:

* Step-by-step guides on **how to create and customize metrics**.
* Examples and best practices for **implementing each metric type**.
* Tips on how to integrate your metrics into your evaluation workflows effectively.

By the end of this chapter, you will have a comprehensive understanding of how to create metrics that meet your specific evaluation needs, empowering you to drive continuous improvement in your AI applications.

Let’s dive in!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.getdynamiq.ai/evaluations/metrics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
