VectorOptions

VectorOptions数据类型定义,表示向量字段类型的属性参数。

数据结构

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

名称

类型

是否必选

描述

data_type

VectorDataType

向量数据类型。当前仅支持float32。

dimension

int32

向量维度。最大值为2048。

metric_type

VectorMetricType

向量之间距离度量的算法,支持欧氏距离(euclidean)、余弦相似度(cosine)、点积(dot_product)。