name: agentuity-cli-cloud-vector-get description: 通过键获取特定的向量条目。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “<namespace> <key>” metadata: command: “agentuity cloud vector get” tags: “read-only fast requires-auth”
云向量获取
通过键获取特定的向量条目
先决条件
- 已通过
agentuity auth login完成身份验证 - 需要项目上下文(从项目目录运行或使用
--project-id)
用法
agentuity cloud vector get <namespace> <key>
参数
| 参数 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
<namespace> |
字符串 | 是 | - |
<key> |
字符串 | 是 | - |
示例
获取特定的产品向量:
bunx @agentuity/cli vector get products chair-001
从知识库获取文档:
bunx @agentuity/cli vector get knowledge-base doc-123
获取用户画像嵌入向量:
bunx @agentuity/cli vector get embeddings user-profile-456
输出
返回JSON对象:
{
"exists": "boolean",
"key": "string",
"id": "string",
"metadata": "object",
"document": "string",
"similarity": "number"
}
| 字段 | 类型 | 描述 |
|---|---|---|
exists |
布尔值 | 向量是否存在 |
key |
字符串 | 向量键 |
id |
字符串 | 向量ID |
metadata |
对象 | 向量元数据 |
document |
字符串 | 原始文档文本 |
similarity |
数字 | 相似度分数 |