RAG datasets (formerly Data Connections) provide a unified entry point for enterprise databases, document systems, and object storage
This page describes RAG datasets (formerly Data Connections). The new Connector for agent scenarios supports more systems and exposes them to agents over MCP. Legacy data connections must be migrated before September 30, 2026 — see Data Connection Migration.
Dataset Types
Datasets are categorized into two types based on how data is stored and accessed: Platform-Hosted and Streaming.
| Access Pattern | Dataset | Data Storage Method | Use Cases |
|---|---|---|---|
| Platform-Hosted | Files | Stored on platform | Upload and manage unstructured documents (PDF, Word, Markdown, etc.) |
| Platform-Hosted | Tables | Stored on platform | Import and query structured tabular data (CSV, Excel, etc.) |
| Streaming | MySQL | Data remains in original database; accessed in real time | Connect to a MySQL database and execute SQL queries |
| Streaming | PostgreSQL | Data remains in original database; accessed in real time | Connect to a PostgreSQL database and execute SQL queries |
| Streaming | PolarDB-X 2.0 | Data remains in original database; accessed in real time | Connect to Alibaba Cloud PolarDB-X 2.0 distributed database |
Prerequisites
- Account Permissions: Alibaba Cloud primary account or RAM user with dataset management permissions.
- Data Source Preparation (by dataset type):
| Dataset | Required Preparation |
|---|---|
| Files / Tables | Files ready for upload |
| MySQL | A MySQL database instance (Alibaba Cloud RDS or self-managed), accessible over public or private network |
| PostgreSQL | A PostgreSQL database instance where the wal_level parameter is set to logical |
| PolarDB-X 2.0 | An Alibaba Cloud PolarDB-X 2.0 instance located in a region that supports private network access |
Creating a Dataset
Navigate to the console at Data Ingestion → Dataset, click Create Dataset, select the dataset type, and complete the configuration as described below.
- Files
- Tables
- MySQL
- PostgreSQL
- PolarDB-X 2.0
The Files dataset manages unstructured documents (e.g., PDF, Word).
- Select Files as the dataset type.
- Enter a Dataset Name and Description. The description helps improve application invocation accuracy—include details about data content and intended usage.
- Under Storage Location, select Use Platform Storage: Data is stored in platform-provided storage space, with a limit of up to 100,000 files or 1 TB. Free tier available for limited time.
Importing Data
After creating a dataset, import data into it.
Files Dataset
- From the Dataset list page, click Details for the target dataset to open its detail page, then navigate to the Files tab.
- In the left-hand Category tree, select an existing category or click + to create a new one.
- Click Import Data, choose Local Import, and upload files.
- Select a Parsing Method (default or custom); the system automatically parses uploaded files.
Database Datasets
For database datasets (MySQL / PostgreSQL / PolarDB-X 2.0), data remains in the original database—no manual import is required. Once the dataset is created, data can be queried in real time directly from applications.
Data Import API
In addition to console operations, you can manage data imports programmatically using APIs. See API Reference — Data Import.
The Data Import API (
/api/v1/connector/dash/) uses the same workspace domain and authentication method as other APIs. For details, see API Overview.