IDataConnection interface (DataPlatformType), which supports both SQL databases and vector stores. Connections are stored in the dataconnections Cosmos container with full ACL support.
Supported Databases
| Database | DataPlatformType | Adapter | Notes |
|---|---|---|---|
| PostgreSQL | postgres | pg | Including Azure Database for PostgreSQL |
| SQL Server | mssql | mssql | Including Azure SQL Database |
| MySQL | mysql | mysql2 | Including Azure Database for MySQL |
| Oracle | oracle | oracledb | Oracle Database 12c+ |
| Snowflake | snowflake | snowflake-sdk | Cloud data warehouse |
| BigQuery | bigquery | @google-cloud/bigquery | Google Cloud analytics |
| Amazon Athena | athena | @aws-sdk/client-athena | Serverless query service |
| ClickHouse | clickhouse | @clickhouse/client | Column-oriented OLAP |
| IBM DB2 | db2 | ibm_db | Enterprise database (see DB2 Guide) |
| Azure Cosmos DB | cosmosdb | @azure/cosmos | NoSQL document database |
| Databricks | databricks | databricks-sql | Lakehouse / SQL warehouse |
| Trino | trino | trino-client | Distributed SQL query engine |
Supported Vector Stores
| Vector Store | DataPlatformType | Notes |
|---|---|---|
| Pinecone | pinecone | Managed vector database |
| Weaviate | weaviate | Open-source vector database |
| Qdrant | qdrant | High-performance similarity engine |
| Chroma | chroma | Open-source embedding database |
| Elasticsearch | elasticsearch | Full-text + vector search |
| OpenSearch | opensearch | AWS-managed search and analytics |
| pgvector | pgvector | PostgreSQL vector extension |
| Redis | redis | In-memory vector search |
Vector store connections are used by the Vector Retriever data source type and Flow Designer vector store tool nodes. See Vector Store Integration for details.
Advanced Features
| Feature | Description | How to Use |
|---|---|---|
| Query Result Caching | 5-minute cache for frequently asked questions | Automatic for identical questions on same connection |
| Query Explanation Mode | Get an explanation of how a query would work without executing it | Use explainNaturalLanguageQuery() tool or pass explain: true |
| Multi-turn Context | Follow-up questions reference previous queries in the same session | Pass sessionId parameter to maintain context |
| Cache Management | Clear cache for a connection or all connections | Use clearQueryCache(connectionId?) tool |
How It Works
- Configure a connection — In Admin → Data Platform Connections ([
#/admin/databases], setting keydatabaseConnections), create a connection with host, port, credentials, and schema/catalog - Attach to a chat — Select the connection on the chat configuration
- Schema discovery — The system introspects the database schema (tables, columns, types, relationships)
- Query generation — The AI receives the schema context and generates SQL from the user’s natural language question
- Execution — The generated SQL is executed against the connection and results are formatted for display
- Visualization — Results can be rendered as tables or Recharts visualizations (bar, line, pie, area charts)
Security
- Read-only by default — Connections are configured with read-only intent where possible
- Schema filtering — Admins select which schemas/tables are visible to the AI
- API key auth — Data Platform Tools use a separate API key (
sqlToolsApiKey) for authentication - Row limits — Query results are capped to prevent excessive data transfer
Database SDK Versions
| Database/Platform | NPM Package | Version |
|---|---|---|
| Snowflake | snowflake-sdk | ^2.4.2 |
| PostgreSQL | pg | ^8.20.0 |
| MySQL | mysql2 | ^3.22.3 |
| SQL Server | mssql | ^11.0.1 |
| Oracle | oracledb | ^6.10.0 |
| ClickHouse | @clickhouse/client | ^1.18.2 |
| BigQuery | @google-cloud/bigquery | ^8.1.1 |
| Athena | @aws-sdk/client-athena | ^3.1015.0 |
Recharts Visualizations
When AI determines that query results are suitable for visualization, it can generate Recharts chart specifications inline in the chat response. Supported chart types:- Bar charts — Categorical comparisons
- Line charts — Trends over time
- Pie charts — Proportional data
- Area charts — Filled line charts for volume data