feat: 优化 rag-sync skill 触发词和描述
This commit is contained in:
@@ -2,23 +2,38 @@
|
|||||||
title: RAG 知识库同步
|
title: RAG 知识库同步
|
||||||
name: rag-sync
|
name: rag-sync
|
||||||
summary: 同步知识库的流程已成功执行,增量同步未发现新内容。
|
summary: 同步知识库的流程已成功执行,增量同步未发现新内容。
|
||||||
description: 用于同步知识库的流程,包括增量同步和全量重建。
|
description: 用于同步知识库的流程,包括增量同步和全量重建。触发词包括:同步知识库、更新知识库、更新索引、知识库有新文章、wiki有更新、rag sync。
|
||||||
---
|
---
|
||||||
|
|
||||||
## Trigger Conditions
|
## Trigger Conditions
|
||||||
- The skill is triggered when the user says any of the following: "同步知识库", "更新知识库", "更新索引", "知识库有新文章", "wiki有更新", "rag sync".
|
|
||||||
|
Trigger this skill when the user's message contains any of the following phrases (in Chinese or English):
|
||||||
|
|
||||||
|
- 同步知识库
|
||||||
|
- 更新知识库
|
||||||
|
- 更新索引
|
||||||
|
- 知识库有新文章
|
||||||
|
- wiki有更新
|
||||||
|
- wiki 更新
|
||||||
|
- rag sync
|
||||||
|
- RAG同步
|
||||||
|
- 同步rag
|
||||||
|
- 知识库同步
|
||||||
|
|
||||||
## Execution Steps
|
## Execution Steps
|
||||||
|
|
||||||
1. **Incremental Sync (default):**
|
1. **Incremental Sync (default):**
|
||||||
- Run the command: `nohup /usr/local/bin/rag-sync >> /opt/rag/sync.log 2>&1 &`
|
- Run: `nohup /usr/local/bin/rag-sync >> /opt/rag/sync.log 2>&1 &`
|
||||||
- Wait 3 seconds, then check the log: `tail -5 /opt/rag/sync.log`
|
- Wait 3 seconds, then check: `tail -5 /opt/rag/sync.log`
|
||||||
|
|
||||||
2. **Full Rebuild (if explicitly requested):**
|
2. **Full Rebuild (only if user explicitly says "全量" or "重建" or "full rebuild"):**
|
||||||
- Run the command: `nohup /usr/local/bin/rag-sync --full >> /opt/rag/sync.log 2>&1 &`
|
- Run: `nohup /usr/local/bin/rag-sync --full >> /opt/rag/sync.log 2>&1 &`
|
||||||
|
|
||||||
3. **Check Status:**
|
3. **Check Status (if user asks about sync status):**
|
||||||
- View the last 20 lines of the log: `tail -20 /opt/rag/sync.log`
|
- Run: `tail -20 /opt/rag/sync.log`
|
||||||
|
|
||||||
## Rules
|
## Rules
|
||||||
- The commands must be executed directly using the terminal tool.
|
|
||||||
- The commands must run in the background.
|
- Always execute commands directly using the terminal tool.
|
||||||
|
- Always run commands in the background.
|
||||||
|
- After running, report the last few log lines to the user.
|
||||||
|
|||||||
Reference in New Issue
Block a user