Create a Dataphin unstructured dataset

Updated at:

You can use natural language prompts to instruct code agents, such as Qoder and CodeX, to create Dataphin unstructured datasets. These datasets act as input and output containers for unstructured data processing, providing both file storage and a corresponding metadata table. This article describes the feature's capabilities, prerequisites, and usage examples. It also details the expected results and includes an appendix of input parameters.

Overview

This feature allows you to use natural language prompts to create a dataset for your unstructured data. A dataset combines file storage with a metadata table and serves as an input and output container for tasks like document parsing, image analysis, audio and video processing, and knowledge base construction. Simply describe your use case and data modality, and the code agent handles the design, checks for reusable assets, creates the dataset, and verifies the result.

Applicable scenarios:

  • Prepare input or output datasets for unstructured data workflows.

  • Create datasets that include a metadata table to store the results of parsing, chunking, and vectorization.

  • Create vector datasets, such as those using Milvus, for scenarios like knowledge base retrieval.

Note

Limitations: A dataset name must be unique within a project. The scenario, storage type, and content type fields cannot be modified after a dataset is created and must be confirmed beforehand. Deleting a dataset is a high-risk operation. There is no recycle bin, and the system does not automatically check for downstream dependencies. Before you delete a dataset, you must manually confirm that no workflows are referencing it.

Prerequisites

  • Define the purpose of the dataset, its content modality (for example, text, image, audio, or video), and your selections for file storage and metadata storage.

  • If you plan to use the dataset in a real-time scenario, you must first create a real-time metadata table in the Dataphin UI. This feature does not support the creation of real-time metadata tables.

Examples

Describe your requirements to the code agent using natural language. You can copy and use the following examples directly:

  • "Create an unstructured dataset to store product PPT files and their parsed metadata. Use PostgreSQL for metadata storage."

  • "Create a new vector dataset for knowledge base retrieval. Use Milvus for metadata storage, and include a primary key field and a vector field."

  • "First, check if there is a reusable text dataset in the project. If not, create a new one for me."

Interaction process:

  1. After you describe the dataset's purpose, the code agent typically confirms the name, content modality, and your choices for file storage and metadata storage, and then provides a design draft.

  2. The code agent usually searches the project for a reusable dataset first. If the agent finds a matching dataset, it uses it directly.

  3. If a new dataset is required, the code agent shows you the design draft and key configuration settings for your approval before creating it.

  4. After creating the dataset, the code agent reads back the configuration to verify that the key fields and table structure are correct.

Results

After the operation completes, you can expect the following results:

  • Response: The result of the creation request, which typically includes identifiers for the new dataset.

  • Status: After the dataset is created, it is ready for use as an input or output for unstructured data workflows.

  • Verification: You can view the new dataset, including its version and table structure, in the Dataset List in Dataphin.

Note

A success message from the command line only indicates that the system has accepted the request. The final status is shown in the Dataphin UI.

Appendix: Input parameters

The following table lists the parameters that may be required when creating an unstructured dataset. This is for reference only. In practice, the code agent automatically identifies the necessary information from your prompts and will ask for any missing details. The system automatically generates parameters that you do not need to provide.

Parameter

Required

Description

Example

tenant ID

Conditionally

If multiple tenants share the same service endpoint, you must specify the tenant to which the project belongs.

1234567890123456789

project ID

Yes

The Dataphin project to which the dataset belongs.

N/A

dataset name

Yes

The name of the dataset. The name must be unique within a project.

N/A

scenario

No

Specifies whether the scenario is offline or real-time. The default is offline. This setting cannot be changed after creation.

offline

storage type

No

Specifies the storage type: file storage, metadata storage, or hybrid. This setting cannot be changed after creation.

Hybrid

content type

No

The data modality, such as text, image, audio, or video. This setting cannot be changed after creation.

Text

file storage configuration

Conditionally

The data source for file storage, production path, and mount path. This parameter is required if the storage type includes file storage.

N/A

metadata storage configuration

Conditionally

The data source for metadata storage, such as PostgreSQL or Milvus, and the table name. This parameter is required if the storage type includes metadata storage.

N/A

table structure

Conditionally

The column definitions for the metadata table, including the column name, data type, primary key, and vector index. The definitions must match the actual database table.

N/A