AI Assistant Help

Data Handling

How we handle your code and data

When you use AI features, AI Assistant 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, AI Assistant 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.

In DataGrip, AI Assistant doesn't share or get access to the data in your database.

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

Review the data sent to external services

AI Assistant logs prompts that are sent to the LLM provider. You can review them in the ai-assistant-requests.md file after enabling the corresponding registry key.

Enable the registry key to review the requests log

  1. In the main menu, go to Navigate | Search Everywhere or press Shift twice to open the search window.

  2. Type Registry and press Enter.

  3. In the list that opens, find the llm.requests.logging.mode key using Ctrl+F.

  4. In the Value field:

    • Select LLM_CHAT to review the chat output.

    • Select HTTP_REQUESTS to check requests, such as model selection, chat structure (order and content of messages), prompt content, final formatting, and model parameters.

  5. Click Close and restart AI Assistant to apply the changes.

Open AI Assistant requests log

Before opening the requests log, make sure you have enabled the corresponding registry key.

  1. In the main menu, go to Navigate | Search Everywhere or press Shift twice to open the search window.

  2. Type Open AI Assistant Requests Log in Editor and press Enter.

    Action in Search Everywhere for opening AI Assistant requests log
  3. Review log in the ai-assistant-requests.md file that opens.

    File with AI Assistant requests log

    Logs are stored during the current AI Assistant session.

Clean up AI Assistant requests log

  1. In the main menu, go to Navigate | Search Everywhere or press Shift twice to open the search window.

  2. To clean up the entire AI Assistant requests log, type Clean Up AI Assistant Requests Log and press Enter.

    Action in Search Everywhere for cleaning up AI Assistant requests log

    To clean up the requests log only for the current project, type Clean Up AI Assistant Requests Log for Current Project and press Enter.

Last modified: 11 April 2025