Docs Menu
Docs Home
/
Atlas
/ /

AI and Data Usage Information

Querying with natural language in MongoDB Atlas is powered by Generative AI (Gen AI), and may give inaccurate responses. See our Generative AI FAQ for more information about Gen AI in MongoDB products.

Querying with natural language in Atlas currently uses the Azure OpenAI Service hosted by Microsoft. This is subject to change in the future.

When you query with natural language in Atlas, the query sends the following information to MongoDB and/or the third-party AI provider:

  • The full text of your natural language prompt.

  • The schema of the collection you are querying, including database name, collection name, field names, and types.

  • Sample field values to improve the quality of recommendations.

    Note

    You can prevent Atlas from sending sample field values in the project-level settings. If you disable this setting, you can still use natural language querying, however, responses might be less accurate.

The information that is sent will not be shared with any other third parties or stored by the AI provider. We do not send database connection strings, credentials, rows, or documents from your databases.

You can disable AI-powered features at the project and organization levels.

If you want to use natural language querying but want to prevent Atlas from sending sample field values to MongoDB or third-party providers, you can opt out from sharing field values within a project.

Note

If you disable this functionality, responses from your natural language queries might be less accurate.

To opt out from sharing field values with the Atlas Administration API, send a PATCH request to the settings endpoint with the isDataExplorerGenAISampleDocumentPassingEnabled boolean flag value set to false.

To opt out from sharing field values with the Atlas CLI, run the following command:

atlas projects settings update --disableDataExplorerGenAISampleDocumentPassing
1

Warning

Navigation Improvements In Progress

We're currently rolling out a new and improved navigation experience. If the following steps don't match your view in the Atlas UI, see the preview documentation.

  1. If it's not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.

  2. If it's not already displayed, select your desired project from the Projects menu in the navigation bar.

  3. Next to the Projects menu, expand the Options menu, then click Project Settings.

    The Project Settings page displays.

2

Set the Enable Sending Sample Field Values in Data Explorer Generative AI Features toggle to off.

If you no longer want to use natural language querying on your project, you can turn this feature off in the project-level settings.

To disable natural language querying with the Atlas Administration API, send a PATCH request to the settings endpoint with the isDataExplorerGenAIFeaturesEnabled boolean flag value set to false.

To disable natural language querying with the Atlas CLI, run the following command:

atlas projects settings update --disableDataExplorerGenAIFeatures
1

Warning

Navigation Improvements In Progress

We're currently rolling out a new and improved navigation experience. If the following steps don't match your view in the Atlas UI, see the preview documentation.

  1. If it's not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.

  2. If it's not already displayed, select your desired project from the Projects menu in the navigation bar.

  3. Next to the Projects menu, expand the Options menu, then click Project Settings.

    The Project Settings page displays.

2

Set the Enable Data Explorer Generative AI Features toggle to off.

If you want to prevent users in your organization from using all Atlas features that use generative AI, you can change this setting at the organization level.

To disable AI features for an organization with the Atlas Administration API, send a PATCH request to the settings endpoint with the genAIFeaturesEnabled boolean flag value set to false.

To disable AI features for an organization with the Atlas CLI, specify genAIFeaturesEnabled: false in a JSON configuration file:

{
"genAIFeaturesEnabled": false
}

After you update the genAIFeaturesEnabled field in your configuration file, run the following command to update the organization settings:

atlas api updateOrganizationRoles --file <path-to-config-file>
1

Warning

Navigation Improvements In Progress

We're currently rolling out a new and improved navigation experience. If the following steps don't match your view in the Atlas UI, see the preview documentation.

  1. If it's not already displayed, select your desired organization from the Organizations menu in the navigation bar.

  2. Click the Organization Settings icon next to the Organizations menu.

    The Organization Settings page displays.

2

Set the Enable Atlas features that use generative AI toggle to off.

Back

Prompt Aggregation

On this page