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

# Annotation Queues

> Organize production traces into annotation queues in AI Studio to review LLM outputs and apply human feedback annotations in bulk.

Annotation Queues organize Traces into review workflows so [Annotations](https://docs.orq.ai/ai-studio/observability/annotations.md) can be applied in bulk in **AI Studio**. To define annotations and apply them individually, through the API and SDK, or the CLI, see [Annotations](https://docs.orq.ai/ai-studio/observability/annotations.md).

## Create Annotation Queues

Annotation Queues help you organize and apply annotations effectively to relevant incoming Traces.

> [tab] AI Studio
>
> To create an Annotation Queue, head to **AI Studio > Annotation Queue**.
>
> Choose **Create Annotation Queue**.
>
> The following fields are configurable:
>
> * The **Name** of the queue
> * The **Description** of the Annotation Queue
> * The **Project** that owns the queue, chosen from **Select a project**. The queue shows the [**Annotations**](https://docs.orq.ai/ai-studio/observability/annotations.md#create-annotations) defined on that project.
>
> ![Create Annotation Queue panel with a Name field, a Description field, and a required Project selector set to Default, with Cancel and Create buttons.](https://mintcdn.com/orqai/xcLYpNxifrsLt2a_/images/creating-annotation-queue.png?fit=max\&auto=format\&n=xcLYpNxifrsLt2a_\&q=85\&s=565b565b828df137e583279a666d37fd)
>
> Create Annotation Queue panel with Name, Description, and Project fields.

## Fill Annotation Queues

Once a queue exists, fill it with the Traces to review. Traces can be added automatically or manually.

> [tab] Automatically
>
> Use [Trace Automations](https://docs.orq.ai/ai-studio/observability/automations.md) to route Traces into a queue based on configured rules. Add an **Add to Annotation Queue** action to an automation and select the target queue. As matching Traces arrive, they are added to the queue without manual effort, which keeps a steady stream of relevant Traces ready for review.
>
> ![Edit Automation panel with a metadata filter on request\_id, an Add to Annotation Queue action selecting an annotation queue, and an Apply Evaluator action marked Coming soon.](https://mintcdn.com/orqai/lqVyDy-llJ4XuTsl/images/annotation-queue-fill-automation.png?fit=max\&auto=format\&n=lqVyDy-llJ4XuTsl\&q=85\&s=5201f33466f9df74a07bfe64dded526f)
>
> An automation with an Add to Annotation Queue action routing matching Traces into a queue.

> [tab] Manually
>
> Open a Trace, select a span, and choose **Add to annotation queue** to send it to a queue one at a time. This is useful for ad hoc review of specific Traces that are worth a closer look.
>
> ![Trace detail view with a selected claude-haiku span showing Add to dataset, Add to annotation queue, and Try Prompt buttons, with Add to annotation queue highlighted.](https://mintcdn.com/orqai/lqVyDy-llJ4XuTsl/images/annotation-queue-fill-manual.png?fit=max\&auto=format\&n=lqVyDy-llJ4XuTsl\&q=85\&s=256bfb756e505a16610f403461f2d44b)
>
> The Add to annotation queue button on a selected span in the Traces view.

## Use Annotation Queues

Open an Annotation Queue to step through its Traces one at a time in the review screen.

![Annotation Queue review screen showing Item 7 of 43 in the header, a left panel with Inputs, Metrics (Latency, Cost, tokens), and Task (Model claude-haiku-4-5, Provider anthropic), a center panel with the System instructions, User input, and Assistant output, and a right Annotations panel with a comment field and a rating with good and bad buttons. A dataset selector and Add to dataset button sit at the bottom.](https://mintcdn.com/orqai/lqVyDy-llJ4XuTsl/images/annotation-queue.png?fit=max\&auto=format\&n=lqVyDy-llJ4XuTsl\&q=85\&s=96c8157b2f81322f102c9bc137d97916)

Annotation Queue review screen. Left: Inputs, Metrics, and Task. Center: the full interaction. Right: the Annotations panel.

The screen is divided into three panels:

* **Left**: details for the selected Trace.

  * **Inputs**: the variables mapped to inputs, when configured.
  * **Metrics**: latency, cost, and token usage.
  * **Task**: the model, provider, and other configuration parameters.

  The header shows the current position, the total number of items in the queue, and how many have already been reviewed.
* **Center**: the full interaction for the selected Trace.
* **Right**: the **Annotations** panel with the [**Annotations**](https://docs.orq.ai/ai-studio/observability/annotations.md#create-annotations) defined on the queue's project, such as a rating with categorical buttons or an open comment field. Selecting a value saves immediately and marks the Trace as reviewed.

Navigate between items with **`K`** (previous) and **`J`** (next), or use the up and down buttons at the top left.

When a data point is worth reusing, select **Add to dataset** to send the Trace to a [Dataset](https://docs.orq.ai/ai-studio/optimize/datasets.md) for use in a future [Experiment](https://docs.orq.ai/ai-studio/optimize/experiments.md).

> [!NOTE]
>
> Adding a Trace to a Dataset copies annotations only when **Copy annotations** is selected. The annotation values stay on the originating Trace as well, where they remain queryable via the **Orq MCP**.

Evaluator results shown in the review screen can also be corrected, not just annotated.

![Evaluators panel listing agent\_jailbreak\_detection and agent\_response\_relevance, both marked No, showing the pencil icon used to open the correction popover.](https://mintcdn.com/orqai/nflqfhu6mcOarrbT/images/evaluation-correction.gif?s=f5ab855dba2c6ea6987aac1f296bf368)

Correcting an Evaluator result in the review screen.

See [Correct an Evaluator Result](https://docs.orq.ai/ai-studio/observability/traces.md#correct-an-evaluator-result) on the Traces page for the full flow.

## Delete or Clear Annotation Queues

Select the <kbd /> menu on a queue row and choose **Delete** to remove the queue together with its items. The same menu offers **Edit** for the queue's name, description, and project.

To empty a queue while keeping it and its configuration, clear it:

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X DELETE "https://my.orq.ai/v2/annotation-queues/$ANNOTATION_QUEUE_ID/clear" \
  -H "Authorization: Bearer $ORQ_API_KEY"
```

```typescript TypeScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
import { Orq } from "@orq-ai/node";

const orq = new Orq({
  apiKey: process.env.ORQ_API_KEY,
});

await orq.annotationQueues.clear({ annotationQueueId: "<annotation_queue_id>" });
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY"),
) as orq:
    orq.annotation_queues.clear(annotation_queue_id="<annotation_queue_id>")
```

```bash CLI theme={"theme":{"light":"github-light","dark":"github-dark"}}
orq annotation-queues clear $ANNOTATION_QUEUE_ID
```

Clearing is irreversible: every item is removed from the queue and its item count resets to zero. The Annotations already applied to those Traces stay on the Traces.

See [Delete All Items](https://docs.orq.ai/reference/annotation-queues/delete-all-items.md) and [Delete an Annotation Queue](https://docs.orq.ai/reference/annotation-queue/delete-an-annotation-queue.md) for the request and response details.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.