rag_delete_document
Deletes a specific document and all its chunks and vector indexes from a knowledge base, matching by document ID, title, or file path.
Instructions
从指定知识库中物理删除特定文档及其所有切片与向量索引。
支持按文档 ID、标题或文件路径精确匹配。
Args:
kb_name: 目标知识库名称
doc_id: 待删除的文档 ID、标题或文件路径
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": {
"kb_name": "<kb_name>",
"doc_id": "<doc_id>"
},
"name": "rag_delete_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| kb_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||