---
title: Trace Cluster Map
description: Identify your LLM application's drifts by viewing its Cluster Map.
breadcrumbs: Docs > LLM Observability > Monitoring > Trace Cluster Map
---

# Trace Cluster Map

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site). ().
{% /alert %}

{% /callout %}

## Overview{% #overview %}

You can identify drifts in your LLM applications by visualizing trace data in clusters on the [Clusters page](https://app.datadoghq.com/llm/clusters). Select an application configured with LLM Observability to view cluster information.

**Note:** Clustering can take up to **24 hours** after data is ingested to be fully processed and visible on the Cluster Map. During this time, spans that are not yet clustered appear under a **"Pending"** cluster.

Cluster Maps display inputs or outputs, grouped by [topic](https://docs.datadoghq.com/llm_observability/evaluations/managed_evaluations/#enter-a-topic). Inputs and outputs are clustered separately. Topics are determined by clustering the selected input or output into text embeddings in high dimensions, then projecting them into a 2D space.

{% image
   source="https://datadog-docs.imgix.net/images/llm_observability/cluster_map/scatter.e7ba1627728d84be9b07ec12e12631a4.png?auto=format"
   alt="The scatter plot displays clusters of traces with color-coded topics and includes a panel listing clusters, trace counts, and failure rates." /%}

You can visualize the clusters by using a **Box Packing** or **Scatter Plot** layout.

- Box Packing gives you a grouped view of each of the clusters and overlays any metrics or evaluations on every trace.
- Scatter Plot, on the other hand, allows you to view the high dimensional text embeddings in a 2D space, although the distance between each trace may be misleading due to projection distortion.

Cluster Maps provide an overview of each cluster's performance across operational metrics, such as error types and latency, or [out-of-the-box or custom evaluations](https://docs.datadoghq.com/llm_observability/terms/#evaluations), enabling you to identify trends such as topic drift and additional quality issues.

{% alert level="info" %}
**Built with Llama**: The Cluster Map uses Llama to generate topic labels based on your instrumented LLM application's inputs and outputs.
{% /alert %}

## Search and manage clusters{% #search-and-manage-clusters %}

Customize your search query by selecting the sorting options to narrow down the clusters based on your specific criteria, such as evaluation metrics or time periods, for more targeted analysis.

1. Select `inputs` or `outputs` from the dropdown menu to see clusters for inputs or outputs grouped by topic.
1. Select an evaluation type or an evaluation score to color-code the clusters. For example, `Output Sentiment` for "What is the sentiment of the output?" or `duration` for "How long does it take for an LLM to generate an output (in nanoseconds)?"
1. Select a field for the clusters to be sorted by: time, duration, or color. Then, select **desc** or **asc** to set the order.

Select a topic cluster from the list to examine how inputs or outputs about specific topics perform against other topics for each metric or evaluation. You can also see individual prompts and responses for each cluster. For example, you can get an overview of your slowest topics when you overlay by `duration`.

{% image
   source="https://datadog-docs.imgix.net/images/llm_observability/cluster_map/QualityClusters_LLMO.cc3ecb0121a8d5c4f04d500e7c4d813a.png?auto=format"
   alt="The box packing layout displays clusters of traces represented by colored circles, and includes a panel listing clusters with topics, trace counts, and failure rates." /%}

## Further Reading{% #further-reading %}

- [Learn about LLM Observability](https://docs.datadoghq.com/llm_observability/)
- [Learn about LLM Observability Key Terms and Concepts](https://docs.datadoghq.com/llm_observability/terms/)
