diff --git a/doc/user/gitlab_duo_chat/examples.md b/doc/user/gitlab_duo_chat/examples.md index 2112a4e6fa7e15453995476c9ec9a7b2a4d57f86..739bff09074a21aeae70ab9e21864cdc9ec88419 100644 --- a/doc/user/gitlab_duo_chat/examples.md +++ b/doc/user/gitlab_duo_chat/examples.md @@ -217,3 +217,16 @@ You can ask about a specific GitLab epic. For example: NOTE: If the epic contains a large amount of text (more than 40,000 words), GitLab Duo Chat might not be able to consider every word. The AI model has a limit to the amount of input it can process at one time. + +## Delete or reset the conversation + +To delete all conversations permanently and clear the chat window: + +- In the text box, type `/clear` and select **Send**. + +To start a new conversation, but keep the previous conversations visible in the chat window: + +- In the text box, type `/reset` and select **Send**. + +In both cases, the conversation history will not be considered when you ask new questions. +Deleting or resetting might help improve the answers when you switch contexts, because Duo Chat will not get confused by the unrelated conversations. diff --git a/doc/user/gitlab_duo_chat/index.md b/doc/user/gitlab_duo_chat/index.md index 2eb0e0397ae2ba685a4514a67583b263cdad63dc..8c4384a5b29d609c0682d90313da49e63293dd7a 100644 --- a/doc/user/gitlab_duo_chat/index.md +++ b/doc/user/gitlab_duo_chat/index.md @@ -169,34 +169,6 @@ read the blog post: [View examples of how to use GitLab Duo Chat](../gitlab_duo_chat/examples.md). -## Get code explained, refactored, or generate tests - -In VS Code, JetBrains IDEs, or in the Web IDE, you can -have code explained, refactored, or generate test for it. - -1. Select code in your editor. -1. In the **Chat** box, type one the following slash commands: - - [`/explain`](../gitlab_duo_chat/examples.md#explain-code-in-the-ide) - - [`/refactor`](../gitlab_duo_chat/examples.md#refactor-code-in-the-ide) - - [`/tests`](../gitlab_duo_chat/examples.md#write-tests-in-the-ide) - -Alternatively, use the context menu to perform these tasks. - -When you use a slash command, you can also add additional instructions, for example: `/tests using the Boost.Test framework`. - -## Delete or reset the conversation - -To delete all conversations permanently and clear the chat window: - -- In the text box, type `/clear` and select **Send**. - -To start a new conversation, but keep the previous conversations visible in the chat window: - -- In the text box, type `/reset` and select **Send**. - -In both cases, the conversation history will not be considered when you ask new questions. -Deleting or resetting might help improve the answers when you switch contexts, because Duo Chat will not get confused by the unrelated conversations. - ## Give feedback Your feedback is important to us as we continually enhance your GitLab Duo Chat experience.