From d12ba253ff8eb08188afae98c7446bd293faf280 Mon Sep 17 00:00:00 2001 From: administrator Date: Tue, 5 May 2026 12:09:55 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20rag-sync=20=E5=90=8C=E6=AD=A5=E5=90=8E?= =?UTF-8?q?=E5=90=91=E7=94=A8=E6=88=B7=E6=B1=87=E6=8A=A5=E5=85=B7=E4=BD=93?= =?UTF-8?q?=E6=9D=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/data-science/rag-sync/SKILL.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/skills/data-science/rag-sync/SKILL.md b/skills/data-science/rag-sync/SKILL.md index b953ee7..32c1be7 100644 --- a/skills/data-science/rag-sync/SKILL.md +++ b/skills/data-science/rag-sync/SKILL.md @@ -24,10 +24,11 @@ Trigger this skill when the user's message contains any of the following phrases 1. **Incremental Sync (default):** - Run: `nohup /usr/local/bin/rag-sync >> /opt/rag/sync.log 2>&1 &` - - Wait 3 seconds, then check: `tail -5 /opt/rag/sync.log` + - Wait 5 seconds, then check: `tail -20 /opt/rag/sync.log` 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 &` + - Wait 5 seconds, then check: `tail -20 /opt/rag/sync.log` 3. **Check Status (if user asks about sync status):** - Run: `tail -20 /opt/rag/sync.log` @@ -36,4 +37,9 @@ Trigger this skill when the user's message contains any of the following phrases - 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. +- After running and checking the log, parse the log output and reply to the user in Chinese with a summary including: + - Wiki 新增/更新了多少条 + - NodeBB 新增了多少条 + - 同步完成时间 + - Example reply: "同步完成!Wiki 新增/更新 41 条,NodeBB 新增 0 条,完成时间 12:05:05。" +- If the log shows 0 new items for all sources, reply: "同步完成,未发现新内容。"