In DashVector, vectors in a collection can be partitioned for management. Partitions let you segment vectors into logical groups so that queries target only the relevant subset, reducing search scope and improving performance.
You can create partitions through the DashVector console, SDKs (Python, Java), or the HTTP API.
Prerequisites
Before you begin, ensure that you have:
An activated DashVector service. For more information, see Activate DashVector.
A created cluster. For more information, see Create a collection.
Partition naming rules
Every collection includes a partition named default. This partition is created automatically and cannot be deleted.
Custom partition names must meet the following requirements:
| Requirement | Detail |
|---|---|
| Length | Up to 32 characters |
| Allowed characters | Letters, digits, underscores (_), commas (,), and hyphens (-) |
| Starting character | Must start with a letter |
| Uniqueness | Must be unique within a collection |
Create a partition in the console
Log on to the DashVector console.
In the left-side navigation pane, click Clusters. Find your collection and click Details in the Operation column.

In the left-side bar, click Partition Management.

Click Create partition, enter a partition name, and then click Confirm.

Create a partition by using an SDK
For more information about how to create a partition by using the SDK for Python, see Create a partition.
For more information about how to create a partition by using the SDK for Java, see Create a partition.
Create a partition by using the HTTP API
Send a request to the DashVector HTTP API to create a partition. For the full API specification, see Create a partition (HTTP API).