网淘吧Visual Components、Flexsim 仿真技术博客 | Python、C#、Delphi xe 机器人编程教程 - 网淘吧

Knowledge Graph技能使用说明

2026-03-28 新闻来源:网淘吧 围观:79
电脑广告
手机广告

知识图谱(基于文件)

使用捆绑的Python脚本进行安全更新life/areas/**

命令

添加新事实:

python3 skills/knowledge-graph/scripts/kg.py add \
  --entity people/safa \
  --category status \
  --fact "Runs Clawdbot on a Raspberry Pi" \
  --source conversation

替代旧事实(将旧事实标记为已替代 + 创建新事实):

python3 skills/knowledge-graph/scripts/kg.py supersede \
  --entity people/safa \
  --old safa-002 \
  --category status \
  --fact "Moved Clawdbot from Pi to a Mac mini"

根据活跃事实重新生成实体摘要:

python3 skills/knowledge-graph/scripts/kg.py summarize --entity people/safa

注意事项

  • 实体存放于:life/areas/<kind>/<slug>/
  • 事实存放于items.json(数组)。摘要存放于summary.md
  • ID按实体自动递增:<slug>-001<slug>-002……以此类推。
  • 切勿删除事实;用替代方式更新。
免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏

文章底部电脑广告
手机广告位-内容正文底部

相关文章

上网淘巴领天猫淘宝优惠券,一年省好几千。

广告  ×

您是本站第1075907名访客 今日有0篇新文章/评论