|
2 | 2 |
|
3 | 3 | <p className="subtitle">Chat with the AI assistant in your code editor or via the Sourcegraph web app to get intelligent suggestions, code autocompletions, and contextually aware answers.</p> |
4 | 4 |
|
5 | | -<Tabs> |
6 | | - <Tab title="Free/Pro"> |
7 | 5 | You can **chat** with Cody to ask questions about your code, generate code, and edit code. By default, Cody has the context of your open file and entire repository, and you can use `@` to add context for specific files, symbols, remote repositories, or other non-code artifacts. |
8 | 6 |
|
9 | 7 | You can do it from the **chat** panel of the supported editor extensions ([VS Code](/cody/clients/install-vscode), [JetBrains](/cody/clients/install-jetbrains), [Visual Studio](/cody/clients/install-visual-studio)) or in the [web](/cody/clients/cody-with-sourcegraph) app. |
@@ -103,71 +101,3 @@ If Cody's answer isn't helpful, you can try asking again with a different contex |
103 | 101 | - **Public knowledge only**: Cody will not use your own code files as context; it’ll only use knowledge trained into the base model. |
104 | 102 | - **Current file only**: Re-run the prompt again using the current file as context. |
105 | 103 | - **Add context**: Provides @-mention context options to improve the response by explicitly including files, symbols, remote repositories, or even web pages (by URL). |
106 | | -</Tab> |
107 | | - <Tab title="Enterprise Starter/Enterprise"> |
108 | | - |
109 | | -The enhanced chat experience input can be accessed from the chat panel of the supported editor extensions (VS Code and JetBrains) and the web app. It combines light code search, AI-powered chat, and agentic capabilities into a unified developer interface. It's designed to accelerate the entire developer workflow by providing a more intuitive and powerful way to interact with code. |
110 | | - |
111 | | -## Prerequisites |
112 | | - |
113 | | -To use Cody's chat, you'll need the following: |
114 | | - |
115 | | -- [Sourcegraph Enterprise Starter](https://sourcegraph.com/pricing) or [Enterprise account](https://sourcegraph.com/pricing) |
116 | | -- A supported editor extension [VS Code](https://marketplace.visualstudio.com/items?itemName=sourcegraph.cody-ai), [JetBrains](https://plugins.jetbrains.com/plugin/9682-cody-ai-coding-assistant-with-autocomplete--chat) installed or use via Web app |
117 | | - |
118 | | -## Key features |
119 | | - |
120 | | -The enhanced chat experience includes everything in the Free plan, plus the following: |
121 | | - |
122 | | -## Smart search integration |
123 | | - |
124 | | -The smart search integration enhances Sourcegraph's chat experience by providing lightweight code search capabilities directly within the chat interface. This feature simplifies developer workflows by offering quick access to code search without leaving the chat environment. |
125 | | - |
126 | | -The integration delivers personalized search results ranked by your contribution history, with frequently accessed repositories appearing higher in results. Users can view code snippets with relevant context and open files directly in their editor. |
127 | | - |
128 | | -Search results automatically become available as context for follow-up queries, with flexible controls for selecting which results to include. While optimized for keyword-style queries and searching across a few repositories, this integration complements rather than replaces the full [Code Search](/code-search) product, which remains the recommended tool for comprehensive enterprise-wide code search. |
129 | | - |
130 | | -## Context-aware responses |
131 | | - |
132 | | -Search results generated through smart search integration can be automatically used as context for follow-up queries. Here's what happens with each scenario: |
133 | | - |
134 | | -### Search responses |
135 | | - |
136 | | -* Search results can be used directly as context for follow-up queries |
137 | | -* Users can select which search results to include as context using checkboxes |
138 | | -* By default, all search results are added as context |
139 | | -* A context chip shows the number of search results being used (e.g., "10 code search results") |
140 | | -* Users can remove the context chip if they don't want to use it for follow-ups |
141 | | - |
142 | | -### Chat responses |
143 | | - |
144 | | -<Callout type="info">Executing terminal commands for additional context is an experimental feature.</Callout> |
145 | | - |
146 | | -* Performs background searches for context |
147 | | -* Retrieves full context from files, symbols, remote repos, and web pages |
148 | | -* Can execute terminal commands (with permission) for additional context |
149 | | -* Creates personal notes usable across chat sessions |
150 | | -* Pulls in [OpenCtx](/cody/capabilities/openctx) providers for additional context |
151 | | - |
152 | | -## How does chat work? |
153 | | - |
154 | | -The following is a general walkthrough of the chat experience: |
155 | | - |
156 | | -1. The user enters a query in the chat interface |
157 | | -2. By default a user gets a chat response for the query |
158 | | -3. To get integrated search results, toggle to **Run as search** from the drop-down selector or alternatively use `Cmd+Opt+Enter` (macOS) |
159 | | -4. For search: |
160 | | - - Displays ranked results with code snippets |
161 | | - - Shows personalized repository ordering |
162 | | - - Provides checkboxes to select context for follow-ups |
163 | | -5. For chat: |
164 | | - - Delivers AI-powered responses |
165 | | - - Can incorporate previous search results as context |
166 | | -6. Users can: |
167 | | - - Switch between search and chat modes |
168 | | - - Click on results to open files in their editor |
169 | | - - Ask follow-up questions using selected context |
170 | | - - Use `@` to add context for specific files, symbols, remote repositories, or other non-code artifacts |
171 | | - |
172 | | -</Tab> |
173 | | -</Tabs> |
0 commit comments