ai_xiaopei
9 days ago ac966af3d126d59081d119e05ba02f946257f669
README.md
@@ -34,38 +34,48 @@
```bash
# 基础搜索
kb search 充装规格
kb-cli search 充装规格
# 带扩展词
kb search 充装 --expanded 重量,规格
kb-cli search 充装 --expanded 重量,规格
# 带症状词
kb search 充装失败 --symptom 报错,无法启动
kb-cli search 充装失败 --symptom 报错,无法启动
# 返回完整文件内容
kb search 充装规格 --with-content
kb-cli search 充装规格 --with-content
# 返回关联文档链接
kb search 充装规格 --with-links
kb-cli search 充装规格 --with-links
# 同时返回内容和链接
kb search 充装规格 --with-content --with-links
kb-cli search 充装规格 --with-content --with-links
# JSON 输出
kb search 充装 --json
kb-cli search 充装 --json
# 限制结果数
kb search 充装 --top 5
kb-cli search 充装 --top 5
```
### 索引管理
```bash
# 构建/重建索引
kb index build
kb-cli index build
# 查看索引状态
kb index status
kb-cli index status
# 清理孤立节点
kb-cli index gc
```
### Git 同步
```bash
# 同步知识库到 Git 仓库
kb-cli git sync
```
### 全局选项