lingxi.rag_search
lingxi.rag_searchRetrieve original knowledge-base passages with source details—title, page, file, similarity, and chunk position—without AI generation or credits; if searched=false, report reason as execution error.
Instructions
只检索知识库并返回命中的原文片段与出处(篇目、页码、来源文件、相似度、chunk 位置),不生成回答、不消耗 AI 额度、不依赖 AI provider key。searched=false 表示检索没有执行,调用方必须按 reason 报错,不得当成“库里没有这段内容”。
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": {
"dataset_key": "<dataset_key>",
"query": "<query>"
},
"name": "lingxi.rag_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | 检索词,优先使用原文用词 | |
| top_k | No | ||
| collection | No | 可选,覆盖数据集默认 collection | |
| dataset_key | Yes | 数据集 key,可通过 GET /api/v1/rag/datasets 获取 |