From 67fa3a4bd2c6e07c2ece1f11cd209c087b22c5e4 Mon Sep 17 00:00:00 2001 From: administrator Date: Tue, 5 May 2026 11:58:30 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=20rag-sync=20skill?= =?UTF-8?q?=20=E8=A7=A6=E5=8F=91=E8=AF=8D=E5=92=8C=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/data-science/rag-sync/SKILL.md | 35 +++++++++++++++++++-------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/skills/data-science/rag-sync/SKILL.md b/skills/data-science/rag-sync/SKILL.md index 2325ac8..b953ee7 100644 --- a/skills/data-science/rag-sync/SKILL.md +++ b/skills/data-science/rag-sync/SKILL.md @@ -2,23 +2,38 @@ title: RAG 知识库同步 name: rag-sync summary: 同步知识库的流程已成功执行,增量同步未发现新内容。 -description: 用于同步知识库的流程,包括增量同步和全量重建。 +description: 用于同步知识库的流程,包括增量同步和全量重建。触发词包括:同步知识库、更新知识库、更新索引、知识库有新文章、wiki有更新、rag sync。 --- ## 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 + 1. **Incremental Sync (default):** - - Run the command: `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` + - Run: `nohup /usr/local/bin/rag-sync >> /opt/rag/sync.log 2>&1 &` + - Wait 3 seconds, then check: `tail -5 /opt/rag/sync.log` -2. **Full Rebuild (if explicitly requested):** - - Run the command: `nohup /usr/local/bin/rag-sync --full >> /opt/rag/sync.log 2>&1 &` +2. **Full Rebuild (only if user explicitly says "全量" or "重建" or "full rebuild"):** + - Run: `nohup /usr/local/bin/rag-sync --full >> /opt/rag/sync.log 2>&1 &` -3. **Check Status:** - - View the last 20 lines of the log: `tail -20 /opt/rag/sync.log` +3. **Check Status (if user asks about sync status):** + - Run: `tail -20 /opt/rag/sync.log` ## Rules -- The commands must be executed directly using the terminal tool. -- The commands must run in the background. \ No newline at end of file + +- 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.