DataGrip 2023.3 Help

AI Assistant

Install the AI Assistant plugin

This functionality relies on the AI Assistant plugin, which you need to install and enable.

  1. Press Control+Alt+S to open the IDE settings and then select Plugins.

  2. Open the Marketplace tab, find the AI Assistant plugin, and click Install (restart the IDE if prompted).

AI Assistant provides AI-powered features for software development. It can explain code, answer questions about code fragments, provide code suggestions, commit messages, and much more.

The AI Assistant plugin will not be active and will not have access to your code unless you acquire a JetBrains AI Service license and give your explicit consent to JetBrains AI Terms of Service.

JetBrains AI Service licensing

The AI Assistant plugin is powered by the JetBrains AI Service. This service transparently connects you, as a product user, to different large language models (LLMs) and enables specific AI-powered features within many JetBrains products.

If you have an active DataGrip subscription, you can acquire the AI Assistant license at the JetBrains AI Service website. Before acquiring the license, you can sign up for a limited trial. The AI Assistant license or your free trial will be linked to your JetBrains Account.

For more information about licensing plans and features' availability, refer to the FAQ at JetBrains AI Service website.

If you need any help regarding your license, you can contact our support team.

Enable AI Assistant plugin

Activate AI Assistant license

After acquiring the AI Assistant license, you need to activate it in DataGrip to enable AI Assistant.

  1. If you are not logged in to JetBrains account, in the main menu, go to Help | Register.

    In the Licenses dialog, select AI Assistant and click Log in to JetBrains Account.

    Licenses dialog with an option to log in to JetBrains account

    On the JetBrains Account website that opens, enter your credentials. After the authorization, close the page and go back to DataGrip.

  2. In the same Licenses dialog, click Activate to activate the AI Assistant license.

    Licenses dialog with AI Assistant activation option

    If your license is not shown on the list, click Refresh license list.

  3. After activating the license, click the More tool windows icon More tool windows on the toolbar and select Ml llm icons ai assistant AI Assistant to open the AI Assistant tool window.

    AI Assistant icon
  4. Click Start Using AI Assistant.

    Start using AI Assistant

For more information about enabling and disabling AI Assistant on a company level, refer to How to enable AI Assistant for companies.

You can disable AI Assistant any time you want.

Start free trial

Before acquiring the license, you can sign up for a limited trial.

  1. If you are not logged in to JetBrains account, in the main menu, go to Help | Register.

    In the Licenses dialog, select AI Assistant and click Log in to JetBrains Account.

    Licenses dialog with an option to log in to JetBrains account

    On the JetBrains Account website that opens, enter your credentials. After the authorization, close the page and go back to DataGrip.

  2. On the toolbar, click the More tool windows icon More tool windows and select Ml llm icons ai assistant AI Assistant to open the AI Assistant tool window. Then click Start Free Trial.

Use AI Assistant features

Here is how you can work with AI Assistant:

How we handle your code and data

When you use AI features, DataGrip needs to send your requests and pieces of your code to the LLM (Large Language Model) provider. Besides the prompts you type, it may send additional details, such as file types, frameworks used, and any other information that may be necessary for providing context to the LLM.

In addition, DataGrip builds with the AI Assistant plugin perform opt-in collection of detailed data about the usage of AI features, including the full communication between you and the LLM (both text and code fragments). This data is kept strictly confidential and is used by JetBrains for product improvement purposes only. It is never shared with any external parties, and it will not be used for training any ML models that generate code or text, or revealed in any form to any other users. The option that controls detailed data collection can be found in the IDE Settings under Tools | AI Assistant | Data Sharing | Allow detailed data collection and is disabled by default.

For more information about our data collection policies, refer to Data Collection and Use Policy.

Last modified: 08 December 2023