全部產品
Search
文件中心

Tablestore:VectorOptions

更新時間:Jun 18, 2025

VectorOptions資料類型定義,表示向量欄位類型的屬性參數。

資料結構

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

名稱

類型

是否必選

描述

data_type

VectorDataType

向量資料類型。當前僅支援float32。

dimension

int32

向量維度。最大值為4096。

metric_type

VectorMetricType

向量之間距離度量的演算法,支援歐氏距離(euclidean)、餘弦相似性(cosine)、點積(dot_product)。