Docs Home / Compass / Interact with Your Data / Query with Natural Language

Enable Natural Language Querying

You can enable Compass natural language querying by toggling the Use Generative AI setting. Natural language queries can be a helpful starting point and assist you in learning to write MongoDB queries.

About this Task

To enable natural language querying in Compass, follow the steps below.

Before you Begin

To enable the generation of queries and aggregations in Compass, you must:

Note

You can also enable Natural Language Querying using the configuration file. For details, see Configuration File Settings.

Steps

1

Open settings

Operating SystemDescriptionKeyboard Shortcut
Windows / LinuxIn the top menu bar, click Edit.Ctrl + ,
macOSIn the top menu bar, click MongoDB Compass. + ,
2

Enable AI Features

You only need to enable AI features if it is your first time using natural language querying.

  1. Select Artificial Intelligence.
  2. Click the Enable AI Features check box.
3

(Optional) Read MongoDB's GenAI FAQs

For more information about generative AI usage with MongoDB Compass, see:

Next Steps

Prompt a Natural Language Query