文档中心 对象存储(KS3) 常用工具 工具汇总 KS3Util命令行工具 KS3 Vectors 命令 向量 get-vectors

get-vectors

最近更新时间:2026-11-11 10:30:20

get-vectors 命令用于查询向量数据。

命令格式

ks3util vectors-api get-vectors --vector-bucket-name value --index-name value --keys value [options]

参数说明

参数

说明

--vector-bucket-name

向量桶名称。

--index-name

向量索引名称。

--index-krn

向量索引 KRN,与 --vector-bucket-name + --index-name 二选一。

--keys

目标向量主键列表,逗号分隔,1-100 个,如 key1,key2。

--return-data

返回向量数据,默认不返回。

--return-metadata

返回向量元数据,默认不返回。

使用示例

按 key 查询向量数据。

ks3util vectors-api get-vectors --vector-bucket-name examplebucket --index-name index1 --keys k1,k2

按 key 查询并返回向量数据与元数据。

ks3util vectors-api get-vectors --vector-bucket-name examplebucket --index-name index1 --keys k1,k2 --return-data --return-metadata

按索引 KRN 查询向量数据。

ks3util vectors-api get-vectors --index-krn krn:ksc:ks3vectors:beijing:uid:bucket/examplebucket/index/index1 --keys k1,k2

上一篇:put-vectors
下一篇:list-vectors
以上内容是否对您有帮助?
有帮助
没帮助