kb_set_weight
Adjust the retrieval weight for a registered knowledge base, multiplying chunk scores during cross-vault searches. A higher weight makes that vault more influential in retrieval results.
Instructions
设置知识库的检索权重:跨库检索时该库所有 chunk 的分数会乘以该系数,用于表达"这个库更重要"(默认 1.0,取值 0 < w <= 100)。
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": {
"vault_path": "<vault_path>",
"weight": "<weight>"
},
"name": "kb_set_weight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weight | Yes | 必填,权重系数,取值 0 < weight <= 100;1.0 为默认不放大 | |
| vault_path | Yes | 必填,已注册知识库的绝对路径 |