接口
认证
Authorization: Bearer <jwt> 或 X-API-Key <sk_...>。最小角色:viewer。
路径参数
string
required
工作空间 id。
string
required
立方体 id。
请求体
string
检索文本(用于生成查询向量)。
integer
返回的最相似节点数量。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST https://memo.ariacompute.cn/v1/workspaces/ws_01a2b3c4d5e6/cubes/cube_01a2b3c4d5e6/search \
-H "Authorization: Bearer <jwt>" \
-H "Content-Type: application/json" \
-d '{"query":"用户的语言偏好","k":5}'
[
{
"id": "node_01a2b3c4d5e6",
"cube_id": "cube_01a2b3c4d5e6",
"type": "text",
"content": "用户偏好中文回复。",
"tier": 4,
"meta": "{}",
"auto": false,
"source_type": "session",
"source_id": "sess_01a2b3c4d5e6",
"created_at": "2026-10-12T08:25:00Z"
}
]
通过 POST /v1/workspaces/:workspace_id/cubes/:cube_id/search 在立方体内语义检索记忆节点。最小角色 viewer。
curl -X POST https://memo.ariacompute.cn/v1/workspaces/ws_01a2b3c4d5e6/cubes/cube_01a2b3c4d5e6/search \
-H "Authorization: Bearer <jwt>" \
-H "Content-Type: application/json" \
-d '{"query":"用户的语言偏好","k":5}'
[
{
"id": "node_01a2b3c4d5e6",
"cube_id": "cube_01a2b3c4d5e6",
"type": "text",
"content": "用户偏好中文回复。",
"tier": 4,
"meta": "{}",
"auto": false,
"source_type": "session",
"source_id": "sess_01a2b3c4d5e6",
"created_at": "2026-10-12T08:25:00Z"
}
]
POST /v1/workspaces/:workspace_id/cubes/:cube_id/search
Authorization: Bearer <jwt> 或 X-API-Key <sk_...>。最小角色:viewer。
curl -X POST https://memo.ariacompute.cn/v1/workspaces/ws_01a2b3c4d5e6/cubes/cube_01a2b3c4d5e6/search \
-H "Authorization: Bearer <jwt>" \
-H "Content-Type: application/json" \
-d '{"query":"用户的语言偏好","k":5}'
[
{
"id": "node_01a2b3c4d5e6",
"cube_id": "cube_01a2b3c4d5e6",
"type": "text",
"content": "用户偏好中文回复。",
"tier": 4,
"meta": "{}",
"auto": false,
"source_type": "session",
"source_id": "sess_01a2b3c4d5e6",
"created_at": "2026-10-12T08:25:00Z"
}
]
Was this page helpful?