All Products
Search
Document Center

Tablestore:VectorOptions

Last Updated:Feb 06, 2025

VectorOptions specifies the properties of Vector fields.

Data structure

message VectorOptions {
    optional VectorDataType data_type = 1;
    optional int32 dimension = 2;
    optional VectorMetricType metric_type = 3;
}

Parameter

Type

Required

Description

data_type

VectorDataType

Yes

The data type of the vector. Only float32 is supported.

dimension

int32

Yes

The number of vector dimensions. Maximum value: 2048.

metric_type

VectorMetricType

Yes

The algorithm that you want to use to measure the distance between vectors. Valid values: euclidean, cosine, and dot_product.