Agentuity云向量获取工具 agentuity-cli-cloud-vector-get

这是一个用于Agentuity云平台的命令行工具,专门用于从向量数据库中根据指定的命名空间和键来检索向量条目。它支持查询产品向量、知识库文档和用户嵌入等多种数据,返回包含元数据、原始文本和相似度分数的JSON格式结果。该工具需要身份验证和项目上下文,适用于向量检索、AI应用开发和RAG(检索增强生成)系统集成等场景。 关键词:Agentuity, 云平台, 向量数据库, 向量检索, CLI工具, 命令行, 身份验证, 项目上下文, 命名空间, 键值查询, JSON输出, 相似度分数, 元数据, 文档检索, RAG应用, AI开发

RAG应用 0 次安装 0 次浏览 更新于 2/28/2026

name: agentuity-cli-cloud-vector-get description: 根据键获取特定的向量条目。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “<命名空间> <键>” metadata: command: “agentuity cloud vector get” tags: “只读 快速 需要认证”

云向量获取

根据键获取特定的向量条目

先决条件

  • 已通过 agentuity auth login 完成身份验证
  • 需要项目上下文(从项目目录运行或使用 --project-id

用法

agentuity cloud vector get <命名空间> <键>

参数

参数 类型 必填 描述
<命名空间> 字符串 -
<键> 字符串 -

示例

获取特定的产品向量:

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": "布尔值",
  "key": "字符串",
  "id": "字符串",
  "metadata": "对象",
  "document": "字符串",
  "similarity": "数字"
}
字段 类型 描述
exists 布尔值 向量是否存在
key 字符串 向量键
id 字符串 向量ID
metadata 对象 向量元数据
document 字符串 原始文档文本
similarity 数字 相似度分数