Docs Home / Compass / Interact with Your Data

Query with Natural Language用自然语言查询

You can use MongoDB Compass to ask natural language questions about your data. Compass uses AI to generate filter queries and aggregations based on the prompts you provide.您可以使用MongoDB Compass来询问有关数据的自然语言问题。Compass使用AI根据您提供的提示生成筛选查询和聚合。

Use Cases用例

You may want to use natural language to query in Compass to:您可能希望在Compass中使用自然语言进行查询,以:

  • Ask plain text questions about your data.询问有关数据的纯文本问题。
  • Create an initial query or aggregation pipeline that you can modify to suit your requirements.创建一个初始查询或聚合管道,您可以对其进行修改以满足要求。
  • Learn how to write complex queries with multiple aggregation stages.学习如何编写具有多个聚合阶段的复杂查询。

Behavior行为

  • Compass natural language querying is available starting in version 1.40.x.Compass自然语言查询从1.40.x版本开始可用。
  • Natural language querying utilizes Azure Open AI as its current provider. This provider may be subject to change in the future.自然语言查询使用Azure Open AI作为其当前的提供者。此提供商将来可能会发生变化。
  • The MongoDB Compass natural language querying feature is on a rolling release schedule. As a result, some users may temporarily have functionality that other users do not.MongoDB Compass自然语言查询功能正在滚动发布。因此,一些用户可能暂时具有其他用户没有的功能。

Get Started开始使用

Details详情

When you query your data using natural language in Compass, the text of your prompts and details about your MongoDB schemas are sent to Microsoft and OpenAI for processing. Your data is not stored on any third party storage systems or used to train AI models.当您在Compass中使用自然语言查询数据时,提示文本和有关MongoDB模式的详细信息将发送给Microsoft和OpenAI进行处理。数据不会存储在任何第三方存储系统中,也不会用于训练AI模型。

This software uses generative artificial intelligence. It is experimental and may give inaccurate results. Your use of this software is subject to MongoDB's:该软件使用生成式人工智能。这是实验性的,可能会给出不准确的结果。您对本软件的使用受MongoDB的约束: