Skip to content

Commit 784fdc0

Browse files
committed
Add docs for prompts tags
1 parent 930083c commit 784fdc0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/cody/capabilities/commands.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,29 @@ Once the prompt is visible, it's ready to be used by:
6767

6868
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.
6969

70+
## Prompt tags
71+
72+
<Callout type="info">Prompt tags are supported in Sourcegraph Enterprise, and only site admins can create them.</Callout>
73+
74+
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.
75+
76+
- Go to **Tools > Prompt Library** from your Enterprise Sourcegraph instance
77+
- From the left sidebar click **Manage** next to the **tags** list
78+
- 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
79+
- Click **New tag**, type the **Tag name** and hit the **Create** button
80+
81+
![prompt-tags](https://storage.googleapis.com/sourcegraph-assets/Docs/prompts-tags.png)
82+
83+
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**.
84+
85+
### Assigning tags to prompts
86+
87+
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.
88+
89+
![assign-prompt-tags](https://storage.googleapis.com/sourcegraph-assets/Docs/assign-prompt-tags.png)
90+
91+
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.
92+
7093
## Run prompts
7194

7295
You can run prompts via:

0 commit comments

Comments
 (0)