Skip to content

Commit

Permalink
Add docs for prompts tags
Browse files Browse the repository at this point in the history
  • Loading branch information
MaedahBatool committed Dec 16, 2024
1 parent 930083c commit 784fdc0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/cody/capabilities/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

<Callout type="info">Prompt tags are supported in Sourcegraph Enterprise, and only site admins can create them.</Callout>

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:
Expand Down

0 comments on commit 784fdc0

Please sign in to comment.