# Query database in natural language with QueryData

> [!WARNING]
>
> **Preview**
>
>
> This feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
> [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

QueryData lets you translate natural language questions into dialect-specific
queries for the data in your Firestore with MongoDB compatibility database for use in your applications and
AI agents. You provide database-specific information in the form of context sets
to improve query generation accuracy.

## Context sets

A context set is a collection of database-specific information that enables
QueryData to generate queries with high accuracy. A
context set includes templates, facets, and value searches that help QueryData
understand your database schema and the business logic of your applications.

To learn more, see the following resources:

- [Context sets overview](https://docs.cloud.google.com/gemini/data-agents/querydata/firestore-mongodb-compatibility/context-sets-overview.md.txt)
- [Build context sets using the context engineering agent](https://docs.cloud.google.com/gemini/data-agents/querydata/firestore-mongodb-compatibility/build-context-sets.md.txt)
- [Manage context sets in Firestore Studio](https://docs.cloud.google.com/gemini/data-agents/querydata/firestore-mongodb-compatibility/manage-data-agents.md.txt)

## QueryData

QueryData writes queries for your database by using context sets, translating
natural language questions into accurate MongoDB-compatible Query Language (MQL) queries.

To learn more, see the following resources:

- [QueryData overview](https://docs.cloud.google.com/gemini/data-agents/querydata/firestore-mongodb-compatibility/data-agent-overview.md.txt)
- [Test QueryData in Firestore Studio](https://docs.cloud.google.com/gemini/data-agents/querydata/firestore-mongodb-compatibility/inspect-data-agent.md.txt)
- [Integrate QueryData with an application](https://docs.cloud.google.com/gemini/data-agents/querydata/firestore-mongodb-compatibility/integrate-applications-data-agent.md.txt)