You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -90,6 +90,24 @@ Once site admins create tags, other users in your organization can assign tags t
90
90
91
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
92
93
+
## Specific and dynamic context
94
+
95
+
<Callouttype="info">Sourcegraph 6.0 adds Beta support for the `@` mention menu in the prompt library.</Callout>
96
+
97
+
When writing prompts, you can leverage both specific and dynamic context through the `@` mention system.
98
+
99
+

100
+
101
+
Type `@` to open a dropdown menu that lets you reference specific context like symbols, directories, files, repositories and web URLs.
102
+
103
+
When selecting a web URL, type out the domain, including the `https://` prefix, for example, https://sourcegraph.com.
104
+
105
+
For dynamic context that adapts based on what the user is working on, the prompt editor provides special mentions for the current selection, current file, current repository, current directory, and open tabs.
106
+
When a user runs a prompt template containing dynamic context mentions, they are automatically resolved to the appropriate specific context based on the user's current workspace state.
107
+
To add dynamic context, click on one of the buttons below the prompt editor. We will soon move the buttons into the `@` mention menu as well.
108
+
109
+
This powerful combination allows prompt authors to create templates that can intelligently access both explicitly defined context and contextually relevant information at runtime.
0 commit comments