kb_exempt
List, add, or remove RAG exemption rules and file exclusions to prevent private or draft content from being retrieved from the knowledge base.
Instructions
查看、添加、删除知识库的 RAG 豁免项(排除不希望被检索的私密/草稿内容)。支持查看规则、添加/删除 .vaultignore 通配符、标记/取消单个文件豁免、检查文件豁免状态。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 操作类型:list (列出当前豁免规则与统计), add_pattern (向 .vaultignore 添加排除通配符), remove_pattern (从 .vaultignore 移除规则), exempt_file (将单个文件设为豁免), unexempt_file (取消单个文件豁免), check (检测某个文件是否被豁免及原因) | |
| method | No | 单文件豁免机制:'frontmatter' (修改文件标头写入 rag: false) 或 'ignore_file' (写入 .vaultignore) | frontmatter |
| source | No | 文件相对路径,用于 exempt_file / unexempt_file / check(例如 '日记/2026-08-19.md') | |
| pattern | No | 排除规则通配符,用于 add_pattern / remove_pattern(例如 '日记/*', '*.draft.md', '私密/') | |
| vault_path | No | 可选,已注册知识库的绝对路径;仅注册了一个库时可省略 |