Natural language to MQL as an API
Multiple use cases require the ability to query the data in MongoDB using Natural language. 'AI copilot' is one such use case where the application developer wants to expose a way for the app's users to get data-backed responses from MongoDB, and the users interact with the copilot in conversational language. Examples of this include - Customer service chatbot, medical assistant, etc.
![](https://secure.gravatar.com/avatar/d8bad87853f13a18520874e2cf32ac59?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Kavya commented
This is truly an important feature we would wanna have as well. We have a large number of collections we wanna collate and query across collections all hosted on Atlas. Looking forward for API version soon.
-
Ajay commented
There is strong use case with our set of customer to query data in natural language. We are looking for third party options. I would love to stay at one shop and adopt quickly once this is released by MongoDB. I am ready to try out beta version.
-
Gal commented
We have a large data base and we have a standard UI for filtering and searching it, but most of our users are academic researchers and have more complex needs. We could theoretically create a much more complex UI for filtering, or teach them MQL, but since this feature already exists in compass, it would be wonderful to expose it
-
Abhaya commented
This would be a wonderful addition to the API functionality.
-
Jack commented
It does not seem difficult to envision the business case for MongoDB to expose an API of this sort.
-
AdminPrakul (Admin, MongoDB) commented
Comment from a thread - "use case for an AI medical assistant in which a doctor can submit an ad-hoc query that needs information from multiple mongo collections. Ex. list all patients in last month that did not have an appointment and have a disease. This will search over multiple collections like appointment, patient, doctor, etc. "