rag_clear_kb
Clears all documents and chunks from a specified knowledge base while preserving its configuration and metadata. Use it to reset KB content without deleting the KB itself.
Instructions
清空指定知识库中的所有文档与切片数据,但保留知识库本身的基础配置与元数据。
Args:
name: 待清空的知识库名称
Returns:
dict[str, Any]: 清空结果与状态说明
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": {
"name": "<name>"
},
"name": "rag_clear_kb"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||