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
Copy file name to clipboardExpand all lines: docs/cody/capabilities/chat.mdx
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# Chat
2
2
3
-
<pclassName="subtitle">Use Cody's chat to get contextually-aware answers to your questions.</p>
3
+
<pclassName="subtitle">Chat directly with AI to ask questions about your code, generate code, and edit code.</p>
4
4
5
-
Cody **chat**allows you to ask coding-related questions about any part of your codebase or specific code snippets. You can do it from the **Chat** panel of the supported editor extensions (VS Code, JetBrains) or in the web app.
5
+
You can **chat**with Cody to ask questions about any part of your codebase or specific code snippets. You can do it from the chat panel of the supported editor extensions (VS Code, JetBrains) or from the web app.
6
6
7
-
Key functionalities in the VS Code extension include support for multiple simultaneous chats, enhanced chat context configurability through @-mentions, detailed visibility into the code that Cody read before providing a response, and more.
7
+
Cody has context of your open file and repository by default, and you can use '@' to add context on specific files, symbols, remote repositories, or other non-code artifacts.
8
8
9
9
You can learn more about the IDE support for these functionalities in the [feature parity reference](/cody/clients/feature-reference#chat).
10
10
@@ -17,24 +17,30 @@ To use Cody's chat, you'll need to have the following:
17
17
18
18
## How does chat work?
19
19
20
-
Cody answers questions by searching your codebase and retrieving context relevant to your questions. Cody uses several methods to search for context, including keyword search and embeddings search. Finding and using context allows Cody to make informed responses based on your code rather than being limited to general knowledge. When Cody retrieves context to answer a question, it will tell you which code files it read to generate its response.
20
+
Cody answers questions by searching your codebase and retrieving context relevant to your questions. Cody uses several methods to search for context like Sourcegraph's native search API and keyword search. Finding and using context allows Cody to make informed responses based on your code rather than being limited to general code knowledge. When Cody retrieves context to answer a question, it will tell you which code files it read to generate its response.
21
21
22
22
Cody can assist you with various use cases such as:
23
23
24
24
- Generating an API call: Cody can analyze your API schema to provide context for the code it generates
25
25
- Locating a specific component in your codebase: Cody can identify and describe the files where a particular component is defined
26
26
- Handling questions that involve multiple files, like understanding data population in a React app: Cody can locate React component definitions, helping you understand how data is passed and where it originates
27
27
28
+
Let's learn how Cody chat works with the IDE extensions (VS Code, JetBrains) and the web app.
29
+
30
+
<Tabs>
31
+
<Tabtitle="VS Code">
32
+
This is tab for VS Code
33
+
</Tab>
34
+
</Tabs>
35
+
28
36
## Ask Cody your first question
29
37
30
-
Let's use Cody VS Code extension's chat interface to answer your first question.
38
+
Let's use Cody chat interface to answer your first question.
31
39
32
40
- Click the Cody icon in the sidebar to view the detailed panel
33
41
- Next, click the icon for **New Chat** to open a new chat window
34
42
- Write your question or instruction to Cody and then press **Enter**.
35
43
36
-
For example, ask Cody "What does this file do?"
37
-
38
44
Cody will take a few seconds to process your question, providing contextual information about the files it reads and generating the answer.
0 commit comments