doc/user/gitlab_duo_chat/_index.md
{{< details >}}
{{< /details >}}
{{< collapsible title="Model information" >}}
{{< /collapsible >}}
{{< history >}}
{{< /history >}}
GitLab Duo Chat is an AI assistant that accelerates development with contextual, conversational AI. This non-agentic Chat:
<i class="fa-youtube-play" aria-hidden="true"></i> Watch an overview
<!-- Video published on 2024-04-18 -->Learn about the new GitLab Duo Agentic Chat.
You can use GitLab Duo Chat in:
You can also use GitLab Duo Chat in these IDEs by installing an editor extension:
[!note] If you have GitLab Self-Managed: Use GitLab 17.2 and later for the best user experience and results. Earlier versions may continue to work, but the experience might be degraded.
{{< history >}}
paneled_view. Enabled by default.paneled_view removed.{{< /history >}}
Prerequisites:
To use Chat in the GitLab UI:
To ask a new, unrelated question, type /reset and select Send to clear the context.
The 25 most recent messages are retained in the chat history.
On the GitLab Duo sidebar, select GitLab Duo Chat history ({{< icon name="history" >}}).
{{< history >}}
duo_chat_multi_thread. Disabled by default.duo_chat_multi_thread removed.{{< /history >}}
In GitLab 17.10 and later, you can have an unlimited number of simultaneous conversations with Chat.
Create a new Chat conversation by doing either of the following:
/new and press <kbd>Enter</kbd> or select Send.A new Chat conversation replaces the previous one.
Under the Chat text box, turn off the Agentic toggle.
To view all of your conversations, view the Chat history.
To switch between conversations, in your Chat history, select the appropriate conversation.
In the GitLab UI, to search for a specific conversation in the chat history, in the Search for a thread text box, enter your search term.
Every conversation persists an unlimited number of messages. However, only the last 25 messages are sent to the LLM to fit the content in the LLM's context window.
Conversations created before this feature was enabled are not visible in the Chat history.
To delete a conversation:
By default, individual conversations expire and are automatically deleted after 30 days of inactivity.
However, administrators can change this expiration period.
{{< history >}}
{{< /history >}}
To use GitLab Duo Chat in the Web IDE on GitLab:
If you have selected code in the editor, this selection is included with your question to GitLab Duo Chat.
For example, you can select code and ask Chat, Can you simplify this?.
To check your GitLab Duo configuration diagnostics and system settings, including system versioning, feature state management, and feature flags:
{{< history >}}
{{< /history >}}
Prerequisites:
To use GitLab Duo Chat in the GitLab for VS Code extension:
If you have selected code in the editor, this selection is included with your question to GitLab Duo Chat.
For example, you can select code and ask Chat, Can you simplify this?.
{{< history >}}
{{< /history >}}
To open GitLab Duo Chat in the editor window, use any of these methods:
After Quick Chat opens:
/ to display all available commands./re to display /refactor and /reset.To check the health of your GitLab Duo configuration:
To close GitLab Duo Chat:
Prerequisites:
To use GitLab Duo Chat in the GitLab for Visual Studio extension:
If you have selected code in the editor, this selection is sent along with your question to the AI. This way you can ask questions about this code selection. For instance, Could you refactor this?.
{{< history >}}
{{< /history >}}
Prerequisites:
To use GitLab Duo Chat in the GitLab Duo plugin for JetBrains IDEs:
To open GitLab Duo Chat in a chat window, use any of these methods:
After GitLab Duo Chat opens:
/ to display all available commands./re to display /refactor and /reset.{{< history >}}
{{< /history >}}
To open GitLab Duo Chat in the editor window, use any of these methods:
After Quick Chat opens:
/ to display all available commands./re to display /refactor and /reset.{{< history >}}
{{< /history >}}
Prerequisites:
To use GitLab Duo Chat in the GitLab for Eclipse plugin:
{{< history >}}
{{< /history >}}
You can configure how long conversations persist before they expire and are automatically deleted.
Prerequisites:
When you use Chat in a supported IDE, you can use keyboard shortcuts.
Different language models can be the source for GitLab Duo Chat.
For each Chat conversation, input and output length is limited:
Your feedback is important as GitLab continually enhances the GitLab Duo Chat experience. Feedback helps customize Chat for your needs and improve its performance for everyone.
To give feedback about a specific response, use the feedback buttons in the response message. Or, you can add a comment in the feedback issue.