Skip to content

Commit f36ce09

Browse files
authored
Quick style fixes to annotation queue guide for docs consistency (#1330)
This is a PR to improve docs consistency style across the site. Annotation queues guide page: improved procedural content, improved language, added reference links throughout, added ALT text, removed unnecessary screenshots. ## Preview https://langchain-5e9cc07a-preview-stylee-1762526219-1282d06.mintlify.app/langsmith/annotation-queues
1 parent 9237952 commit f36ce09

File tree

3 files changed

+44
-38
lines changed

3 files changed

+44
-38
lines changed

src/langsmith/annotation-queues.mdx

Lines changed: 44 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,86 +3,92 @@ title: Use annotation queues
33
sidebarTitle: Use annotation queues
44
---
55

6-
Annotation queues are a powerful LangSmith feature that provide a streamlined, directed view for human annotators to attach feedback to specific runs. While you can always annotate traces inline, annotation queues provide another option to group runs together, then have annotators review and provide feedback on them.
6+
_Annotation queues_ provide a streamlined, directed view for human annotators to attach feedback to specific [runs](/langsmith/observability-concepts#runs). While you can always annotate [traces](/langsmith/observability-concepts#traces) inline, annotation queues provide another option to group runs together, then have annotators review and provide [feedback](/langsmith/observability-concepts#feedback) on them.
77

88
## Create an annotation queue
99

10-
![](/langsmith/images/create-annotation-queue.png)
10+
To create an annotation queue:
1111

12-
To create an annotation queue, navigate to the **Annotation queues** section through the homepage or left-hand navigation bar. Then click **+ New annotation queue** in the top right corner.
12+
1. Navigate to the **Annotation queues** section on the left-hand navigation panel of the [LangSmith UI](https://smith.langchain.com).
13+
1. Click **+ New annotation queue** in the top right corner.
1314

14-
![](/langsmith/images/create-annotation-queue-new.png)
15+
![Create Annotation Queue form with Basic Details, Annotation Rubric, and Feedback sections.](/langsmith/images/create-annotation-queue-new.png)
1516

1617
### Basic Details
1718

18-
Fill in the form with the **name** and **description** of the queue. You can also assign a **default dataset** to queue, which will streamline the process of sending the inputs and outputs of certain runs to datasets in your LangSmith workspace.
19+
1. Fill in the form with the **Name** and **Description** of the queue. You can also assign a **default dataset** to queue, which will streamline the process of sending the inputs and outputs of certain runs to datasets in your LangSmith [workspace](/langsmith/administration-overview#workspaces).
1920

2021
### Annotation Rubric
2122

22-
Begin by drafting some high-level instructions for your annotators, which will be shown in the sidebar on every run.
23+
1. Draft some high-level instructions for your annotators, which will be shown in the sidebar on every run.
24+
1. Click **+ Desired Feedback** to add feedback keys to your annotation queue. Annotators will be presented with these feedback keys on each run.
25+
1. Add a description for each, as well as a short description of each category, if the feedback is categorical.
2326

24-
Next, click "+ Desired Feedback" to add feedback keys to your annotation queue. Annotators will be presented with these feedback keys on each run. Add a description for each, as well as a short description of each category if the feedback is categorical.
27+
![Annotation queue rubric form with instructions and desired feedback entered.](/langsmith/images/create-annotation-rubric.png)
2528

26-
![annotation queue rubric](/langsmith/images/create-annotation-rubric.png)
29+
For example, with the descriptions in the previous screenshot, reviewers will see the **Annotation Rubric** details in the right-hand pane of the UI.
2730

28-
Reviewers will see this:
29-
30-
![rubric for annotators](/langsmith/images/rubric-for-annotators.png)
31+
![The rendered rubric for reviewers from the example instructions.](/langsmith/images/rubric-for-annotators.png)
3132

3233
### Collaborator Settings
3334

34-
There are a few settings related to multiple annotators:
35-
36-
* **Number of reviewers per run**: This determines the number of reviewers that must mark a run as "Done" for it to be removed from the queue. If you check "All workspace members review each run," then a run will remain in the queue until all workspace members have marked it "Done".
35+
When there are multiple annotators for a run:
3736

38-
* Reviewers cannot view the feedback left by other reviewers.
39-
* Comments on runs are visible to all reviewers.
37+
- **Number of reviewers per run**: This determines the number of reviewers that must mark a run as **Done** for it to be removed from the queue. If you check **All workspace members review each run**, then a run will remain in the queue until all [workspace](/langsmith/administration-overview#workspaces) members have marked their review as **Done**.
4038

41-
* **Enable reservations on runs**: We recommend enabling reservations. This will prevent multiple annotators from reviewing the same run at the same time.
39+
- Reviewers cannot view the feedback left by other reviewers.
40+
- Comments on runs are visible to all reviewers.
4241

43-
1. **How do reservations work?**
42+
- **Enable reservations on runs**: When a reviewer views a run, the run is reserved for that reviewer for the specified **Reservation length**. If there are multiple reviewers per run as specified above, the run can be reserved by multiple reviewers (up to the number of reviewers per run) at the same time.
4443

45-
When a reviewer views a run, the run is reserved for that reviewer for the specified "reservation length". If there are multiple reviewers per run as specified above, the run can be reserved by multiple reviewers (up to the number of reviewers per run) at the same time.
44+
<Tip>
45+
We recommend enabling reservations. This will prevent multiple annotators from reviewing the same run at the same time.
46+
</Tip>
4647

47-
2. **What happens if time runs out?**
48+
If a reviewer has viewed a run and then leaves the run without marking it **Done**, the reservation will expire after the specified **Reservation length**. The run is then released back into the queue and can be reserved by another reviewer.
4849

49-
If a reviewer has viewed a run and then leaves the run without marking it "Done", the reservation will expire after the specified "reservation length". The run is then released back into the queue and can be reserved by another reviewer.
50+
<Note>
51+
Clicking **Requeue** for a run's annotation will only move the current run to the end of the current user's queue; it won't affect the queue order of any other user. It will also release the reservation that the current user has on that run.
52+
</Note>
5053

51-
<Note>
52-
Clicking "Requeue at end" will only move the current run to the end of the current user's queue; it won't affect the queue order of any other user. It will also release the reservation that the current user has on that run.
53-
</Note>
54+
As a result of the **Collaborator settings**, it's possible (and likely) that the number of runs visible to an individual in an annotation queue differs from the total number of runs in the queue compared to another user's queue size.
5455

55-
Because of these settings, it's possible (and likely) that the number of runs visible to an individual in an annotation queue differs from the total number of runs in the queue as well as anyone else's queue size.
56+
You can update these settings at any time by clicking on the pencil icon <Icon icon="pencil"/> in the **Annotation Queues** section.
5657

57-
You can update these settings at any time by clicking on the pencil icon in the **Annotation Queues** section.
58+
## Assign runs to an annotation queue
5859

59-
![](/langsmith/images/annotation-queue-edit.png)
60+
To assign runs to an annotation queue, do one of the following:
6061

61-
## Assign runs to an annotation queue
62+
- Click on **Add to Annotation Queue** in top right corner of any [trace](/langsmith/observability-concepts#traces) view. You can add any intermediate [run](/langsmith/observability-concepts#runs) (span) of the trace to an annotation queue, but not the root span.
6263

63-
To assign runs to an annotation queue, either:
64+
![Trace view with the Add to Annotation Queue button highglighted at the top of the screen.](/langsmith/images/add-to-annotation-queue.png)
6465

65-
1. Click on **Add to Annotation Queue** in top right corner of any trace view. You can add ANY intermediate run (span) of the trace to an annotation queue, not just the root span. ![](/langsmith/images/add-to-annotation-queue.png)
66+
- Select multiple runs in the runs table then click **Add to Annotation Queue** at the bottom of the page.
6667

67-
2. Select multiple runs in the runs table then click **Add to Annotation Queue** at the bottom of the page. ![](/langsmith/images/multi-select-annotation-queue.png)
68+
![View of the runs table with runs selected. Add to Annotation Queue button at the botton of the page.](/langsmith/images/multi-select-annotation-queue.png)
6869

69-
3. [Set up an automation rule](/langsmith/rules) that automatically assigns runs which pass a certain filter and sampling condition to an annotation queue.
70+
- [Set up an automation rule](/langsmith/rules) that automatically assigns runs that pass a certain filter and sampling condition to an annotation queue.
71+
- Navigate to the **Datasets & Experiments** page and select a dataset. On the dataset's page select one or multiple [experiments](/langsmith/evaluation-concepts#experiment). At the bottom of the page, click **<Icon icon="pencil"/> Annotate**. From the resulting popup, you can either create a new queue or add the runs to an existing one.
7072

71-
4. Select one or multiple experiments from the dataset page and click **Annotate**. From the resulting popup, you may either create a new queue or add the runs to an existing one: ![](/langsmith/images/annotate-experiment.png)
73+
![Selected experiments with the Annotate button at the bottom of the page.](/langsmith/images/annotate-experiment.png)
7274

7375
<Check>
74-
It is often a very good idea to assign runs that have a certain user feedback score (eg thumbs up, thumbs down) from the application to an annotation queue. This way, you can identify and address issues that are causing user dissatisfaction. To learn more about how to capture user feedback from your LLM application, follow [this guide](/langsmith/attach-user-feedback).
76+
It is often a good idea to assign runs that have a particular type of user feedback score (e.g., thumbs up, thumbs down) from the application to an annotation queue. This way, you can identify and address issues that are causing user dissatisfaction. To learn more about how to capture user feedback from your LLM application, follow the guide on [attaching user feedback](/langsmith/attach-user-feedback).
7577
</Check>
7678

7779
## Review runs in an annotation queue
7880

79-
To review runs in an annotation queue, navigate to the **Annotation Queues** section through the homepage or left-hand navigation bar. Then click on the queue you want to review. This will take you to a focused, cyclical view of the runs in the queue that require review.
81+
To review runs in an annotation queue:
8082

81-
You can attach a comment, attach a score for a particular feedback criteria, add the run a dataset and/or mark the run as reviewed. You can also remove the run from the queue for all users, despite any current reservations or settings for the queue, by clicking the **Trash** icon next to "View run".
83+
1. Navigate to the **Annotation Queues** section through the left-hand navigation bar.
84+
1. Click on the queue you want to review. This will take you to a focused, cyclical view of the runs in the queue that require review.
85+
1. You can attach a comment, attach a score for a particular [feedback](/langsmith/observability-concepts#feedback) criteria, add the run to a dataset or mark the run as reviewed. You can also remove the run from the queue for all users, despite any current reservations or settings for the queue, by clicking the **Trash** icon <Icon icon="trash"/> next to **View run**.
8286

83-
The keyboard shortcuts shown can help streamline the review process.
87+
<Tip>
88+
The keyboard shortcuts that are next to each option can help streamline the review process.
89+
</Tip>
8490

85-
![](/langsmith/images/review-runs.png)
91+
![View or a run with the Annotate side panel. Keyboard shortcuts visible for options.](/langsmith/images/review-runs.png)
8692

8793
## Video guide
8894
<iframe
-25.6 KB
Binary file not shown.
-32.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)