> For the complete documentation index, see [llms.txt](https://docs.dbnl.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dbnl.com/v0.31.x/workflow/segments.md).

# Segments

Segments are saved filters on [Log](/v0.31.x/workflow/logs.md) data corresponding to a specific behavioral signal discovered manually or from an [Insight](/v0.31.x/workflow/insights.md).

All Segments are computed and published to the [Segments Dashboard](/v0.31.x/workflow/dashboards.md#segments-dashboard) as part of the [DBNL Data Pipeline](/v0.31.x/configuration/data-pipeline.md) and adapt future analytics by informing DBNL that the saved Segment is a meaningful bifurcation of the [Logs](/v0.31.x/workflow/logs.md) data.

## When to Create Segments

Create a segment when you've identified a meaningful behavioral pattern you want to track over time, such as:

* **Error conditions**: Logs containing specific error types or failure patterns
* **High-value interactions**: User sessions with purchases, conversions, or key actions
* **Quality issues**: Low-scoring responses that need monitoring
* **User cohorts**: Specific user groups (power users, new users, etc.)
* **Performance bottlenecks**: Requests exceeding latency thresholds
* **Experiment cohorts**: Specific [experiment variants](/v0.31.x/workflow/logs.md#experiment-filters) for comparing configurations (e.g., model A vs model B)

Once saved, segments are automatically analyzed in future pipeline runs, generating dedicated metrics and appearing on dashboards.

## Creating Segments

Segments can be created in three ways:

1. From an [Insight](/v0.31.x/workflow/insights.md) that specifies a Segment corresponding to the behavioral signal observed
2. Anywhere a filter is constructed on the [Explorer](/v0.31.x/workflow/explorer.md) or [Logs](/v0.31.x/workflow/logs.md) pages
3. Manually from the Segments page on the sidebar

Segments can be modified or deleted from the Segments page on the sidebar.

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