全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

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

文档导读
纯净模式常规模式

纯净模式

点击可全屏预览文档内容
文档反馈