From 784fdc0736470813b5d17aa60542e14b7bb00f96 Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Mon, 16 Dec 2024 12:02:27 -0800 Subject: [PATCH] Add docs for prompts tags --- docs/cody/capabilities/commands.mdx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/cody/capabilities/commands.mdx b/docs/cody/capabilities/commands.mdx index a951ccbe..171b5258 100644 --- a/docs/cody/capabilities/commands.mdx +++ b/docs/cody/capabilities/commands.mdx @@ -67,6 +67,29 @@ Once the prompt is visible, it's ready to be used by: To edit a prompt, click the Edit button next to the prompt in the Prompt Library and make the necessary changes. You can also use this interface to **Transfer Ownership** of the prompt or delete it from this view. +## Prompt tags + +Prompt tags are supported in Sourcegraph Enterprise, and only site admins can create them. + +Site admins can categorize prompts and create **tags**. This helps you keep your prompts organized, especially when there are many prompts to use and manage. + +- Go to **Tools > Prompt Library** from your Enterprise Sourcegraph instance +- From the left sidebar click **Manage** next to the **tags** list +- All the new and existing tags are listed here. You can also search for a specific tag by typing its name in the search box +- Click **New tag**, type the **Tag name** and hit the **Create** button + +![prompt-tags](https://storage.googleapis.com/sourcegraph-assets/Docs/prompts-tags.png) + +Once created, it will appear in the **Tags** list and in the sidebar of the Prompt Library. To manage your prompt tags, you can **edit**, **delete**, or **copy link to prompts with this tag**. + +### Assigning tags to prompts + +Once site admins create tags, other users in your organization can assign tags to their prompts. While creating or editing a prompt, there is a drop-down selector **Add prompt to...** to assign tags to the prompt. + +![assign-prompt-tags](https://storage.googleapis.com/sourcegraph-assets/Docs/assign-prompt-tags.png) + +You can assign multiple tags to a prompt and group them based on their functionality, category, or any other criteria for your organization. In addition, with tags assigned to prompts, you can filter prompts by tags in the Prompt Library. + ## Run prompts You can run prompts via: