RAG Query
lingxi.rag_queryQueries Ancient Echoes RAG using a specified dataset, persona, and retrieval parameters to return sourced answers. Requires dataset_key or source_persona_id to search, except when scene is coding.
Instructions
按用户提供的资料库、人物和检索参数查询 Ancient Echoes RAG,返回答案与出处。会按当前用户的 AI 套餐、模型权限和额度计费;没有 dataset_key 或 source_persona_id 时不会检索知识库,因此必须显式指定(scene=coding 除外)。可用数据集见 GET /api/v1/rag/datasets。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messages": "<messages>"
},
"name": "lingxi.rag_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| scene | No | ||
| top_k | No | ||
| top_p | No | ||
| guidance | No | ||
| messages | Yes | ||
| metadata | No | ||
| tone_hint | No | ||
| collection | No | ||
| max_tokens | No | ||
| dataset_key | No | ||
| temperature | No | ||
| system_prompt | No | ||
| guidance_override | No | ||
| source_persona_id | No | ||
| tone_hint_override | No |