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 | Yes | The data type of the vector. Only float32 is supported. | |
dimension | int32 | Yes | The number of vector dimensions. Maximum value: 2048. |
metric_type | Yes | The algorithm that you want to use to measure the distance between vectors. Valid values: euclidean, cosine, and dot_product. |