Annotation tasks

Updated at:

This topic describes how to create and optimize annotation tasks (manually or with AI), view data statistics, validate optimizations, and manage annotation dimensions.

Overview

An annotation task allows you to use human annotators or AI to confirm the accuracy of your Alibaba Cloud Chatbot responses. You can use dimension templates to define custom evaluation criteria and dimensions, then annotate and optimize the chatbot's conversation quality. The system first batch-generates bot answers in a test environment based on the bot's knowledge and a test set of utterances that you upload. Then, human annotators or AI complete the annotation, optimization, and validation. Annotation tasks help you understand the chatbot's current performance to ensure a quality end user experience and provide data to guide chatbot optimization.

Create an annotation task

Note

Annotation tasks use data from the previous day (T-1 data). This means you cannot create tasks using real-time data. To annotate real-time data or individual records, go to Log Annotation.

Manual annotation

  1. Log on to the Alibaba Cloud Chatbot console. Go to your chatbot's workspace and choose Tuning > Annotation Task to open the annotation task management page.

    image

  2. Click New Annotation Task to open the dialog box. Select Manual Annotation and configure the parameters.

    • Task Name: The name of the annotation task. The system generates a default name in the format: Annotation Task-[Current Time].

    • Annotation Dimension: The system provides four built-in dimension templates: Q&A Satisfaction, Rewrite Satisfaction, Recall Satisfaction, and Generation Satisfaction. Q&A Satisfaction is selected by default. You can create custom annotation dimensions based on your business needs in Annotation Dimension Management.

    • Data Source: The source of user utterances for the evaluation task. You can choose from Online Logs, Offline Import, or a golden test set.

      • Online Logs: Q&A data from the production environment. This data can come from the Test Window or from end users. The Test Window refers to conversations with the bot within the product's test window. End users refers to conversations with real, online users. You can filter the data by the following conditions:

        • Time Range: The period during which the conversations occurred. You can select All or specify a Custom Time Range.

        • Sampling: Includes three modes: Full Annotation, Proportional Sampling, and Custom Amount.

          • Full Annotation: Annotates all conversation data from the selected time range.

          • Proportional Sampling: Annotates a specified percentage of the conversation data.

          • Custom Amount: Randomly samples a specified number of conversations from the data.

        • Filter Annotated Sessions: When enabled, the system filters out previously annotated sessions before sampling. When disabled, the system samples from all data in the selected time range.

          • Note

            If all data within the selected time range has already been used to create annotation tasks and you enable the Filter Annotated Sessions switch, the task creation will fail.

            image

        • User Satisfaction: You can filter by All, like, or dislike. These ratings are provided by end users for the bot's answers during conversations.

        • Bot Reply Type: You can select All or No Answer Only.

          • All: Selects all Q&A data from the online logs for annotation.

          • No Answer Only: Selects only Q&A data where the bot provided no answer.

        • Transferred to Agent: Selects sessions that include at least one transfer to a human agent. You can select All, Yes, or No.

      • Offline Import: Import evaluation data from a local file.

        • Test Environment: When disabled, the system uses the production environment to run batch jobs on the data.

        • Service Simulation: When enabled, an API plugin returns its configured mock value instead of data retrieved from the live API. For more information, see API plugin.

          Note

          The imported file must have an .xls or .xlsx extension and cannot exceed 20 MB. The uploaded data must follow the required format. Download the standard template to enter your data. The utterance field is required. Other fields are optional. Do not add irrelevant content in other columns. For format details, refer to the standard template for the golden test set.

      • Golden test set: Import evaluation data from a golden test set. You can select an existing set or create a new one. For more information, see golden test set.

  3. Click OK to create the annotation task.

  4. In the annotation task list, you can click Export or Delete in the Actions column for a specific task.

    image

AI annotation

AI annotation automatically labels selected conversations with over 90% accuracy. You can then review the results. Your remaining AI annotation quota for the current month is displayed on this page.

Note

AI annotation is not supported in the Trial Edition. The Agile and Standard editions provide a free quota of 400 AI annotations. The Enterprise, Platform, and Flagship editions provide a free quota of 1,000 AI annotations.

image

In the New Annotation Task window, select AI Annotation and configure the parameters as described in the Manual annotation section. AI annotation currently supports only data sources that provide an expected answer. When optimizing a task created with AI annotation, you only need to label each session according to the selected annotation dimensions.

image

Optimize an annotation task

  1. Log on to the Alibaba Cloud Chatbot console. Go to your chatbot's workspace and choose Annotation Center > Annotation Task to open the annotation task management page.

  2. In the task list, click Annotate in the Actions column for a task to open the annotation interface.

    Note

    After an annotation task is created, the system needs time to generate bot responses. This process takes longer for larger datasets. While the system generates responses, the task status is Executing. Once generation is complete, the status changes to Annotating, and you can begin the annotation process.

    image

  3. In the annotation interface, label the conversations based on your business needs. The interface has three modules:

    image

    1. Search and filter module: You can filter conversations by keyword, chatId, or sessionId, by annotation status (Unannotated/Annotated), or by conversation turn.

    2. Conversation details module: Displays the user's question and the bot's corresponding answer. You can click the image icon to add the current conversation to a golden test set for future re-annotation and continuous optimization.

    3. Annotation module: Label the conversation's Q&A satisfaction by selecting Satisfied, Unsatisfied, Fair, or Skip. The system suggests optimization plans based on your selection, including adding high-frequency knowledge, recall intervention, and AI-powered optimization. For more information, see Manual optimization or AI-powered optimization.

  4. Click Complete and End Task. A dialog box appears showing the task's progress (for example, annotated calls vs. total calls, and Q&A satisfaction data). After you complete the task, you can no longer annotate it, but you can still perform AI-powered optimizations.

    image

  5. Click OK to finish the annotation.

Manual optimization

  • If you label a conversation as Satisfied, you can add high-frequency knowledge for further optimization. This links to the high-frequency question management page, where you can improve performance by adding or refining knowledge for frequently asked questions. For details, see High-Frequency Q&A.

  • If you label a conversation as Unsatisfied or Fair, you can add high-frequency knowledge or perform a recall intervention.

    • Recall intervention: Forces the bot to use a specific piece of knowledge to answer an utterance. This is useful when the bot fails to retrieve the correct configured knowledge.

      • User Query: The user utterance that the bot failed to answer correctly.

      • Match Type: The type of knowledge required to answer the utterance.

      • Matching Knowledge: The specific knowledge that should be used to answer the utterance.

      image

AI-powered optimization

If you label a conversation as Unsatisfied or Fair in the annotation module, you can use AI-powered optimization. This feature generates optimization suggestions and detailed analysis. It also automatically provides scored recommendations. Optimization methods include adding an entity and SQL intervention.

  1. In the annotation module, select Unsatisfied or Fair, and then click AI-powered Optimization to open the optimization page.

  2. Select an Expected Optimization Target, enter the Expected Answer, and click AI-powered Optimization to begin.

    • Expected Optimization Target: The knowledge base type you want the bot to use for optimization. You can choose Document or Data Table.

      • Document: If you adopt the recommendation, a new entity name or entity member will be added.

      • Data Table: If you adopt the recommendation, an SQL intervention will be performed.

    • Expected Answer: Enter the desired answer. The AI uses this to analyze the root cause of the problem and recommend an appropriate optimization method.

    image

  3. Select the required content and click Adopt to add the entity name or entity member.

    image

Optimization validation

After optimizing an annotation task, you can validate the results.

image

  1. In the Actions column for the annotation task, click Optimization Validation. Enter a task name and select a validation scope.

  • Task Name: The name of the optimization validation task. The system generates a default name in the format: Annotation Task-[Current Time].

  • Validation Scope: Select the same annotation dimension used in the original task.

  1. Click OK to create the optimization validation task.

  2. Click Label in the Actions column of an optimization validation task to open the labeling page for the task. For more information about the labeling operations, see the Optimization Validation Task section in this document.

    image

Data statistics

After an annotation task is complete, click Data Statistics in the Actions column to view the annotation data.

image

image

Manage annotation dimensions

image

image

  1. On the Annotation Task page, click Annotation Dimension Management to open the dimension template management page.

  2. Click New Annotation Dimension. In the dialog box, enter a Dimension Name, Scale, Dimension Description, and Description based on your business needs.

    • Dimension Name: The name of the dimension used to evaluate the bot's conversation quality, such as "Answer Satisfaction" or "Answer Redundancy".

    • Scale: The number of rating levels for evaluating the conversation on this dimension. The maximum scale is 5. For example, if you set the scale to 3, you can add 3 corresponding descriptions.

    • Dimension Description: A detailed explanation of the dimension.

    • Add Description: The specific label for each level of the scale.

      • Dimension Name: For example, set the evaluation dimension name to "Answer Satisfaction".

      • Scale: For example, set the scale to 3.

      • Description: You can then enter three descriptions for the scale levels, such as Satisfied, Fair, and Poor.

  3. Click Create to create the dimension template.

  4. For a custom annotation dimension, you can click View, Edit, or Delete in the Actions column to manage the template. Built-in annotation dimensions can only be viewed.