添加图片
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# 用 AI 把零散资料变成可复用的知识库 —— llm-wiki-sync 的实现与示例解析
|
||||
|
||||
**副标题**:如何把 raw/ 里的每一份素材,通过 llm-wiki-sync 自动分析与提炼成结构化的 source 页面、实体与概念,以便长期检索与复用。
|
||||
**副标题**:如何把 raw/ 里的每一份素材,通过 llm-wiki-sync 自动分析与提炼成结构化的页面、实体与概念,以便长期检索与复用。
|
||||
|
||||
---
|
||||
|
||||
@@ -31,9 +31,9 @@
|
||||
|
||||
---
|
||||
|
||||
## 从笔记到 Source Page:以 RTO vs RPO 为例
|
||||
## 从笔记到 Source Page
|
||||
|
||||
仓库中的源页面:wiki/sources/RTO-vs-RPO-Key-Differences-for-Modern-Disaster-Recovery.md
|
||||
仓库中的源页面:wiki/sources/RTO-vs-RPO-Key-Differences-for-Modern-Disaster-Recovery.md
|
||||
|
||||
下面逐项展示 llm-wiki-sync 针对该文档所做的提取结果(摘自生成的 source 页面):
|
||||
|
||||
@@ -86,7 +86,8 @@
|
||||
|
||||
7) Contradictions(冲突检测)
|
||||
- 当前文档无明显与现有 wiki 冲突的声明;若检测到冲突,llm-wiki-sync 会把冲突条目列出并标注来源,供人工审查。
|
||||
|
||||
![[Pasted image 20260420145132.png|872]]
|
||||
![[Pasted image 20260420145158.png]]
|
||||
---
|
||||
|
||||
## llm-wiki-sync 的典型运行步骤(工程视角)
|
||||
@@ -110,4 +111,3 @@
|
||||
- llm-wiki-sync 把 Karpathy 关于 LLM Wiki 的理念落地为可执行的工程流程:把知识以结构化表征保存,使得大模型既是“读者”也是“执行者”。
|
||||
- 我们的实现基于 SamurAI 的 llm-wiki-agent,并在其上加入了企业级的同步、审计与 Hermes skill 封装,最终通过 Quartz 静态站把生成的 wiki 内容对外展示与分享。
|
||||
|
||||
如果你想,我可以把上面 RTO vs RPO 的 source 页面再跑一遍演示:展示原始 raw 文件、模型的中间输出(提取断言、实体的置信度、连接候选),以及最终写入 wiki 的 diff。要我现在生成演示输出吗?
|
||||
|
||||
BIN
Pasted image 20260420145132.png
Normal file
BIN
Pasted image 20260420145132.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 318 KiB |
BIN
Pasted image 20260420145158.png
Normal file
BIN
Pasted image 20260420145158.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 195 KiB |
@@ -1,80 +0,0 @@
|
||||
# Slack 配置 OpenClaw Bot — 结构化摘要
|
||||
|
||||
## 文档概述
|
||||
|
||||
- **来源**:`/Users/weishen/Workspace/nexus/openclaw/Slack.md`
|
||||
- **主题**:在 Slack API 创建 App 并与 OpenClaw 集成的完整步骤
|
||||
- **包含内容**:配置流程 + 现有 Bot 凭证信息
|
||||
|
||||
---
|
||||
|
||||
## 一、配置流程(6 步)
|
||||
|
||||
| 步骤 | 操作 | 关键产物 |
|
||||
|------|------|----------|
|
||||
| 1 | Slack API 创建 App(From app manifest) | App Manifest JSON |
|
||||
| 2 | 安装 App 到工作区 | Bot User OAuth Token(`xoxb-...`) |
|
||||
| 3 | 生成 App Level Token | App Level Token(`xapp-1-...`) |
|
||||
| 4 | 添加 Channel 到 OpenClaw | `openclaw channels add --channel slack ...` |
|
||||
| 5 | 绑定 Agent 到 Slack 账号 | `openclaw agents bind --agent ... --bind slack:...` |
|
||||
| 6 | 验证连接 | 发送私信或 @Bot 确认响应 |
|
||||
|
||||
### Manifest JSON 关键配置
|
||||
- **Socket Mode**:启用(`socket_mode_enabled: true`)
|
||||
- **Interactivity**:启用
|
||||
- **Event Subscriptions**:app_mention、message.channels/groups/im/mpim、reaction_added/removed 等
|
||||
- **OAuth Scopes**:涵盖 im、chat、channels、groups、files、reactions、pins、users 等全部权限
|
||||
|
||||
---
|
||||
|
||||
## 二、现有 Bot 配置
|
||||
|
||||
### XingShu
|
||||
| 项目 | 值 |
|
||||
|------|---|
|
||||
| Account | `xingshu` |
|
||||
| Bind Agent | `main` |
|
||||
| Bot Token | `xoxb-10749198837424-10729993030356-fZMcpT9AwVYjpZAoALh9G3Pf` |
|
||||
| App Token | `xapp-1-A0ALWUV7P7H-10720045898595-6d84e6b3c450587efe928459ab3ccfdefac2f7cb506ff741aabce688977644e8` |
|
||||
|
||||
### XingYao
|
||||
| 项目 | 值 |
|
||||
|------|---|
|
||||
| Account | `xingyao` |
|
||||
| Bind Agent | `xingyao` |
|
||||
| Bot Token | `xoxb-10749198837424-10717815209651-z0T78ljkOGeNddAWcajl2Wxg` |
|
||||
| App Token | `xapp-1-A0AMDPLP99A-10722160508566-6cedd2c05c0a338435aaab98c9449ef01437b315b049850ba574ff67c1fbd68b` |
|
||||
|
||||
### XingHui
|
||||
| 项目 | 值 |
|
||||
|------|---|
|
||||
| Account | `xinghui` |
|
||||
| Bind Agent | `xinghui` |
|
||||
| Bot Token | `xoxb-10749198837424-10724815197190-kEkxZmkBKQrYnY8Ov2hadu3O` |
|
||||
| App Token | `xapp-1-A0AMCRT5E10-10720526191091-9ed0aff401f0feb16994d9d20a5256b6417fa83e0b743c1d63f8a8838fba822f` |
|
||||
|
||||
---
|
||||
|
||||
## 三、关键命令速查
|
||||
|
||||
```bash
|
||||
# 添加 Slack Channel
|
||||
openclaw channels add --channel slack --account <账号名> --bot-token <Bot Token> --app-token <App Token>
|
||||
|
||||
# 绑定 Agent
|
||||
openclaw agents bind --agent <agent名称> --bind slack:<账号名>
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 四、注意事项
|
||||
|
||||
- 所有 Bot 均使用 **Socket Mode**(无需公网 Webhook)
|
||||
- App Level Token 必须添加 `connections:write` 权限
|
||||
- Bot OAuth Scopes 包含 24 个权限,建议仔细评估后使用
|
||||
- 凭证信息已脱敏保存在此摘要,原始文件含完整 token
|
||||
|
||||
|
||||
|
||||
## 信息图
|
||||

|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.4 MiB |
Reference in New Issue
Block a user