---
title: "Label spec using text prompts"
slug: "create-label-spec-with-text"
updated: 2025-08-18T12:12:33Z
published: 2025-08-18T12:12:33Z
canonical: "docs.akridata.ai/create-label-spec-with-text"
---

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

# Label spec using text prompts

Label specification (Labeling spec) is an entity that captures the details of the labeling task for the classes to be labeled with text and image inputs to describe the class. This is an input to a labeling job. This article explains creating a label spec with only text prompts. Text prompt information is sufficient primarily for natural image datasets comprising common objects (like vehicles, people, etc).

1. On the left navigation pane, navigate to **Labeling** > **Specs**. ![](https://cdn.document360.io/3e9d4528-fbc6-4948-a804-8ee7068e7ac3/Images/Documentation/labelling-specs.jpg)
2. Click the **Add Spec** button on the top-right corner. ![](https://cdn.document360.io/3e9d4528-fbc6-4948-a804-8ee7068e7ac3/Images/Documentation/labeling-specs-page.jpg)
3. In the **Spec Type** window, select **Classification** or **Detection**, and click **Submit**. ![](https://cdn.document360.io/3e9d4528-fbc6-4948-a804-8ee7068e7ac3/Images/Documentation/spec-type.jpg)
  - Select **Classification** to generate a single class label for an image.
  - Select **Detection** to generate class labels for multiple objects along with localization information represented using bounding boxes.
4. In the **New Spec** screen, enter **Spec Description**. Spec Type is prefilled based on your selection in the previous step.

![](https://cdn.document360.io/3e9d4528-fbc6-4948-a804-8ee7068e7ac3/Images/Documentation/labeling-new-specs.jpg)
5. Under the class section, click **Add Class** to add a new class and describe it with text and image information.
6. Enter a **Class Name**. This name is passed to the underlying models to refer to the class, and hence, for best results, it must contain commonly used English name identifiers for the object.
7. Enter a **Display Name** for the class. This name represents the class in the output presentation and can differ from the Class name. The Display name has no impact on the quality of results.
8. Class names can be ambiguous(e.g., apple as a brand Vs. apple as a fruit). With the intent to disambiguate and gather additional descriptions for the class, every class needs to go through the ‘Analyze’ action, where large language models(LLMs) are used. To trigger this analysis, click the **Analyze** button. ![](https://cdn.document360.io/3e9d4528-fbc6-4948-a804-8ee7068e7ac3/Images/Documentation/new-label-spec.jpg)
  1. The analysis returns descriptive prompt options. The below shows two prompts to disambiguate the meaning of ‘cat’. Select the **Prompt** that best matches the Class Name, and click **Analyze**again to further expand the textual description for the class. ![](https://cdn.document360.io/3e9d4528-fbc6-4948-a804-8ee7068e7ac3/Images/Documentation/label-spec-prompt.jpg)

The system populates suggestions for **Description** and **Superclass** and up to five extra prompts that further describe the chosen class.
  2. Review the ‘Extra Prompts’ and disable if some don’t accurately describe your intended class.
  3. Review the suggested ‘Description’ and suggested ‘SuperClass’ and accept these if appropriate by clicking the **thumbs-up** icon against the respective suggestions. ![](https://cdn.document360.io/3e9d4528-fbc6-4948-a804-8ee7068e7ac3/Images/Documentation/label-spec-extra-prompt.jpg)
9. Once the class description is acceptable, click the **Approve** button. ![](https://cdn.document360.io/3e9d4528-fbc6-4948-a804-8ee7068e7ac3/Images/Documentation/approve-button.jpg)
10. Add more classes.
  1. Click **Add Class**or the **+** (plus) sign, as shown. ![](https://cdn.document360.io/3e9d4528-fbc6-4948-a804-8ee7068e7ac3/Images/Documentation/label-spec-add-class(1).jpg)
  2. Repeat the steps to add more than one class to the page based on your image data, and click **Approve** for each class. Once the classes are approved, they appear under the Approved tab, as shown below: ![](https://cdn.document360.io/3e9d4528-fbc6-4948-a804-8ee7068e7ac3/Images/Documentation/label-spec-approved.jpg)
11. Click **Save** enter a **Spec Name,** and then click the **"Save"** button. ![](https://cdn.document360.io/3e9d4528-fbc6-4948-a804-8ee7068e7ac3/Images/Documentation/labeling-spec-spec-name.jpg) The label spec is listed on the **Labeling Specs** page, with a status of Ready.
