用 Hermes Agent 搭建 OKF 知识库

发布日期:2026-06-30 18:31:21 浏览次数: 1579

作者:昕科技团队

用 Hermes Agent 搭建 OKF 知识库

微信搜一搜,关注“昕科技团队”

推荐语

告别复杂工具链,用纯Markdown和AI代理轻松构建与管理结构化知识库。

核心内容:

1. OKF知识库的核心概念与零配置上手方法

2. 从初始化到查询、健康检查的完整操作流程

3. 清晰的文件结构设计与Git友好的管理方式

用 Hermes Agent 搭建 OKF 知识库

杨芳贤

53AI创始人/腾讯云(TVP)最具价值专家

用 Hermes Agent 搭建 OKF 知识库

# 用 Hermes Agent 搭建 OKF 知识库

> 让 AI 代理在纯 Markdown 中管理结构化知识——无向量数据库,无特殊工具链。

## 概览

| 项目 | 说明 |
| — | — |
| okf-kb-skill | OKF 知识库管理 Skill。纯 Markdown + YAML frontmatter,Git 友好 |
| Hermes Agent | 开源 AI 代理框架,Skill 即插即用 |
| 核心操作 | Init / Ingest / Query / Lint / Update / Create Entity |

## 安装 & 更新

**前提:**已安装 Hermes Agent。

告诉 Hermes:

> 安装或更新 kb skill:从 https://github.com/ouranoshong/okf-kb-skill.git 安装

验证:`hermes skills list | grep kb`

更新:再次执行同一句话即可。

## 使用(零配置)

| 你说 | 代理执行 |
| — | — |
| `使用 kb skill 初始化知识库` | 创建`knowledge-base/`→ SCHEMA.md + CONVENTIONS.md + index.md + log.md + 子目录索引 |
| `将 raw/articles/ 下的所有文档编译为 Concept` | 扫描 raw/ → 提取关键信息 → 生成 OKF Concept → 写入 concepts/ |
| `基于知识库回答:什么是 Actor Model?` | 从 concepts/ 检索 → 按 cross-reference 链加载 → 合成回答 |
| `对知识库做一次健康检查` | 遍历所有 Concept,检查 7 项规则(孤立、矛盾、过期、断裂链接等) |

## 目录结构

ounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineknowledge-base/├── SCHEMA.md              # 类型系统 + frontmatter 规范├── CONVENTIONS.md         # 命名 + 质量规则├── index.md               # 根索引├── log.md                 # 变更历史├── raw/                   # 原始资料(只读)├── concepts/              # OKF Concept 文档(按类型分目录)├── entities/              # 可复用实体页面└── assets/                # 图表、图片
## Concept 类型

| 类型 | 必需章节 |
| — | — |
| `Technology` | # Overview, # Key Concepts, # Trade-offs |
| `Architecture` | # Problem, # Decision, # Consequences |
| `Protocol` | # Overview, # Message Format, # Examples |
| `Research` | # Summary, # Key Findings, # Limitations |
| `Playbook` | # Trigger, # Steps, # Verification |
| `Entity` | # Overview, # Key Facts |
| `Reference` | # Schema, # Examples |
| `Metric` | # Definition, # Formula, # Thresholds |
| `Decision` | # Context, # Decision, # Consequences |

### Frontmatter 示例

ounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(line—type: Technologytitle: Actor Modeldescription: 基于消息传递的并发计算模型source: /raw/papers/actor-model.pdftags: [concurrency, distributed]confidence: highrelated:  – /concepts/technology/csp.mdcontradicts:  – /concepts/technology/shared-memory.mdtimestamp: 2026-06-17T00:00:00Z—
## 实战场景

**初始化:**`使用 kb skill 初始化知识库`,放入 raw/ 后执行**Ingest**。

**导入资料:**把 Markdown 放入`raw/articles/`,然后说`将 raw/articles/ 下的所有文档编译为 Concept`。

**查询:**`基于知识库回答:`。

**更新:**告诉代理`更新 concepts/technology/xxx.md,添加新内容`。

**冲突:**在`contradicts`字段中显式声明,两侧都标注。

## 常见问题

| 问题 | 解决 |
| — | — |
| `hermes skills list`看不到 kb | `/reload-skills`或重启 Hermes 会话 |
| 代理找不到知识 | 检查 index.md 链接是否正确;raw/ 非空 |
| 如何更新已有 Concept | 直接告诉代理更新目标文件 |
| 能否删除 Concept | 不删除——标记废弃,通过 git 保留历史 |

## 设计原则

* 纯文本:Markdown + YAML,`cat`可读,`git`可 diff
* 无向量库依赖:< 50k 全量加载,50k-200k 按导航加载,> 200k 才需要索引
* 显式矛盾 > 沉默不一致
* 永不删除:git 保留完整历史

[登录查看剩余 70% 内容](javascript:void (0);)

https://www.53ai.com/keyword/AI%E7%9F%A5%E8%AF%86%E5%BA%93https://www.53ai.com/keyword/%E7%9F%A5%E8%AF%86%E7%AE%A1%E7%90%86https://www.53ai.com/keyword/%E7%9F%A5%E8%AF%86%E7%AE%A1%E7%90%86%E5%B7%A5%E5%85%B7

分享:

用 Hermes Agent 搭建 OKF 知识库

用微信扫描二维码

用 Hermes Agent 搭建 OKF 知识库

用微信扫描二维码

用 Hermes Agent 搭建 OKF 知识库

用微信扫描二维码

用 Hermes Agent 搭建 OKF 知识库

用微信扫描二维码

53AI,企业落地大模型首选服务商

**产品**:场景落地咨询+大模型应用平台+行业解决方案

**承诺**:免费POC验证,效果达标后再合作。**零风险落地应用大模型**,已交付160+中大型企业

https://www.53ai.com/news/zhishiguanli/2026070130596.htmlhttps://www.53ai.com/news/zhishiguanli/2026063026970.html

https://www.53ai.com/news/zhishiguanli

相关资讯

https://www.53ai.com/news/zhishiguanli/2026070483450.htmlhttps://www.53ai.com/news/zhishiguanli/2026070298312.htmlhttps://www.53ai.com/news/zhishiguanli/2026070210735.htmlhttps://www.53ai.com/news/zhishiguanli/2026070128069.htmlhttps://www.53ai.com/news/zhishiguanli/2026070103542.htmlhttps://www.53ai.com/news/zhishiguanli/2026070130596.htmlhttps://www.53ai.com/news/zhishiguanli/2026063026970.htmlhttps://www.53ai.com/news/zhishiguanli/2026063017689.html

用 Hermes Agent 搭建 OKF 知识库

用 Hermes Agent 搭建 OKF 知识库

https://www.53ai.com/solution.html

用 Hermes Agent 搭建 OKF 知识库

用 Hermes Agent 搭建 OKF 知识库

https://www.53ai.com/solution.html

160+中大型企业正在使用53AI

[立即咨询](javascript:void(0))[预约演示](javascript:void(0))

https://www.53ai.com/news/dongtai/2025012294502.htmlhttps://www.53ai.com/news/dongtai/2025012234192.html

https://hub.53ai.com/

热点资讯

https://www.53ai.com/news/zhishiguanli/2026040727630.htmlhttps://www.53ai.com/news/zhishiguanli/2026042838960.htmlhttps://www.53ai.com/news/zhishiguanli/2026041292651.htmlhttps://www.53ai.com/news/zhishiguanli/2026040796142.htmlhttps://www.53ai.com/news/zhishiguanli/2026060472109.htmlhttps://www.53ai.com/news/zhishiguanli/2026040705498.htmlhttps://www.53ai.com/news/zhishiguanli/2026042094382.htmlhttps://www.53ai.com/news/zhishiguanli/2026061189154.htmlhttps://www.53ai.com/news/zhishiguanli/2026042650829.htmlhttps://www.53ai.com/news/zhishiguanli/2026040807925.html

大家都在问

https://www.53ai.com/news/zhishiguanli/2026070483450.htmlhttps://www.53ai.com/news/zhishiguanli/2026063028037.htmlhttps://www.53ai.com/news/zhishiguanli/2026062952940.htmlhttps://www.53ai.com/news/zhishiguanli/2026062917592.htmlhttps://www.53ai.com/news/zhishiguanli/2026061976038.htmlhttps://www.53ai.com/news/zhishiguanli/2026060469170.htmlhttps://www.53ai.com/news/zhishiguanli/2026060124079.htmlhttps://www.53ai.com/news/zhishiguanli/2026052737860.html

热门标签

https://www.53ai.com/news/neirongchuangzuohttps://www.53ai.com/news/LargeLanguageModelhttps://www.53ai.com/news/gerentixiaohttps://www.53ai.com/news/langchainhttps://www.53ai.com/news/llamaindexhttps://www.53ai.com/news/MultimodalLargeModelhttps://www.53ai.com/news/RAGhttps://www.53ai.com/news/zhinengkefuhttps://www.53ai.com/news/knowledgegraphhttps://www.53ai.com/news/finetuninghttps://www.53ai.com/news/RAGFlowhttps://www.53ai.com/news/cozehttps://www.53ai.com/news/difyhttps://www.53ai.com/news/fastgpthttps://www.53ai.com/news/Bishenghttps://www.53ai.com/news/Qanythinghttps://www.53ai.com/news/AIqichehttps://www.53ai.com/news/AIjinronghttps://www.53ai.com/news/AIgongyehttps://www.53ai.com/news/AIpeixunhttps://www.53ai.com/news/AISaaShttps://www.53ai.com/news/tishicikuangjiahttps://www.53ai.com/news/tishicijiqiaohttps://www.53ai.com/news/AIdianshanghttps://www.53ai.com/news/AImianshihttps://www.53ai.com/news/shuziyuangonghttps://www.53ai.com/news/zhinengbaobiaohttps://www.53ai.com/news/zhishiguanlihttps://www.53ai.com/news/OpenSourceLLMhttps://www.53ai.com/news/zhinengyingxiaohttps://www.53ai.com/news/zhinengyingjianhttps://www.53ai.com/news/zhinenghuagaizaohttps://www.53ai.com/news/AIyiliaohttps://www.53ai.com/news/MaxKBhttps://www.53ai.com/news/Palantirhttps://www.53ai.com/news/Gleanhttps://www.53ai.com/news/Openclaw

[应聘简历请发送至: ceo@53ai.com](mailto:ceo@53ai.com)

https://www.53ai.com/product.html

https://www.53ai.com/product/quanyuanAIhttps://www.53ai.com/product/gongzuoduihuahttps://www.53ai.com/product/neirongchuangzuohttps://www.53ai.com/product/zhinengwendanghttps://www.53ai.com/product/mofacaidan

https://www.53ai.com/product/yewuAIhttps://www.53ai.com/product/weixinfenshenhttps://www.53ai.com/product/haiwaikefuhttps://www.53ai.com/product/guanwangkefuhttps://www.53ai.com/product/douyinkefuhttps://www.53ai.com/product/shuzilaoshihttps://www.53ai.com/product/shuzidudaohttps://www.53ai.com/product/zhinengfuwutai

https://www.53ai.com/product/AIXyewuhttps://www.53ai.com/product/zhinengwenshuhttps://www.53ai.com/product/zhinengshenhehttps://www.53ai.com/product/zhinenggongdanhttps://www.53ai.com/product/qiweigenjinzhushouhttps://www.53ai.com/product/zhinengbaojiahttps://www.53ai.com/product/qiweixiaoshouzhushouhttps://www.53ai.com/product/zijianyingyonghttps://www.53ai.com/product/qiweikefuzhushou

https://www.53ai.com/consulting.htmlhttps://www.53ai.com/fine-tuning.html

https://www.53ai.com/kehuanli.html

https://www.53ai.com/kehuanli/hangyeanlihttps://www.53ai.com/kehuanli/solution

https://www.53ai.com/news.html

https://www.53ai.com/news/qianyanjishuhttps://www.53ai.com/news/agentplatformhttps://www.53ai.com/news/hangyeyingyonghttps://www.53ai.com/news/qiyejingyinghttps://www.53ai.com/prompt.html

https://www.53ai.com/about.html

https://www.53ai.com/about/introductionhttps://www.53ai.com/about/cooperation

友情链接:

https://www.waytoagi.com/https://www.yuncan.com/https://www.wescrm.com/https://www.mingpian.top/https://www.uweb.net.cn/

CopyRight © 2012-2026 深圳市博思协创网络科技有限公司 版权所有

https://beian.miit.gov.cn/

广州:广州市华景路37号(华景软件园)暨南大学科技大厦6楼(整层)

深圳:深圳市福田区泰然四路29号天安创新科技广场一期A座1204

上海:上海市浦东新区金新路58号1602室

用 Hermes Agent 搭建 OKF 知识库

微信扫码

和创始人交个朋友

联系我们

售前咨询

[186 6662 7370](tel:18666627370)

预约演示

[185 8882 0121](tel:18588820121)

用 Hermes Agent 搭建 OKF 知识库

微信扫码

添加专属顾问

回到顶部

用 Hermes Agent 搭建 OKF 知识库

加载中…

扫码咨询

用 Hermes Agent 搭建 OKF 知识库

[](https://www.53ai.com/news/zhishiguanli/2026063070523.html)

用 Hermes Agent 搭建 OKF 知识库

https://work.weixin.qq.com/ca/cawcde2599cf74e2d9https://work.weixin.qq.com/ca/cawcdefb661890e885[电话咨询](tel:400-838-1185)

用 Hermes Agent 搭建 OKF 知识库

扫码登录

用 Hermes Agent 搭建 OKF 知识库

– [x] 登录即表示您同意[《53AI网站服务协议》](javascript:void(0);)

服务协议

欢迎您使用【53AI 官方网站】(以下简称“本网站”或“我们”)。本《会员服务协议》(以下简称“本协议”)是您(以下简称“会员”或“用户”)与【深圳市博思协创网络科技有限公司】之间关于注册、登录及使用本网站会员服务所订立的法律协议。

在您注册或登录前,请务必审慎阅读、充分理解各条款内容,特别是免除或限制责任的条款、知识产权条款、争议解决条款等。此类条款将以加粗形式提示您注意。 当您通过微信公众号授权、手机验证码验证或其他方式成功登录本网站时,即视为您已完全理解并同意接受本协议的全部内容。

一、 定义

本网站:指由【深圳市博思协创网络科技有限公司】运营的,域名为【53ai.com】的网站及相关移动端页面。

会员服务:指本网站向注册会员提供的知识库文章查阅、内容检索及其他相关增值服务。

知识库内容:指本网站发布的包括但不限于文字、图表、数据、研究报告、行业分析等数字化内容资源。

二、 账号注册与登录

登录方式:本网站支持以下登录方式,您可根据实际情况选择:

微信公众号授权登录:您同意将您的微信OpenID信息授权给本网站,用于创建或关联会员账号。

手机验证码登录:您需提供真实有效的手机号码,并通过短信验证码完成身份验证与登录/注册。

账号安全:您的账号仅限您本人使用,禁止赠与、借用、租用、转让或售卖。因您保管不善导致的账号被盗、密码泄露等损失,由您自行承担。

实名认证:根据相关法律法规要求,我们可能要求您在特定功能下完成实名认证。如您拒绝提供,可能无法使用部分或全部服务。

未成年人保护:若您未满18周岁,请在法定监护人的陪同下阅读本协议,并在征得监护人同意后使用本服务。

三、 服务内容与规范

知识库查阅权限:会员登录后,有权按照其会员等级对应的权限范围,在线浏览、检索本网站知识库中的相关文章及内容。

服务变更:我们有权根据业务发展需要,调整、变更或终止部分服务内容,并将以网站公告、公众号消息等方式提前通知。

禁止行为:您在使用服务时不得实施以下行为:

利用技术手段批量爬取、下载、转存知识库内容;

将知识库内容用于商业目的或未经授权地向第三方传播;

干扰本网站正常运行或侵犯其他用户合法权益;

发布违法违规信息或从事违反公序良俗的活动。

四、 知识产权声明

权利归属:本网站知识库中的排版设计、软件代码等内容的知识产权均归【公司全称】或原权利人所有,受《中华人民共和国著作权法》等法律保护。

有限许可:本网站授予会员一项非独占、不可转让、不可转授权的普通许可,仅限于个人学习、研究之目的在线查阅知识库内容。

侵权追责:未经书面许可,任何单位或个人不得以任何形式复制、转载、摘编、镜像、汇编或以其他方式使用上述内容。一经发现,我们保留追究其法律责任的权利。

五、 个人信息保护

我们重视对您个人信息的保护。关于我们如何收集、使用、存储和保护您的个人信息,请单独阅读 《隐私政策》。

您通过微信公众号授权或手机号验证所提供的信息,我们将严格按照《个人信息保护法》的规定处理,仅用于身份识别、服务提供及安全验证等必要用途。

您可以随时通过网站设置或联系客服行使查阅、更正、删除个人信息及撤回授权同意的权利。

六、 免责声明

内容准确性:知识库内容仅供参考,不构成专业建议。我们不对其完整性、准确性、时效性作任何明示或暗示的保证,您应自行判断并承担使用风险。

不可抗力:因自然灾害、政策法规变化、网络故障、第三方平台接口异常(如微信接口维护、运营商短信通道故障)等不可抗力导致的服务中断或延迟,我们不承担违约责任。

第三方链接:本网站可能包含指向第三方网站的链接,该等网站的内容和服务不受我们控制,请您自行甄别风险。

七、 违约责任

如您违反本协议约定,我们有权视情节采取警告、限制功能、暂停服务、注销账号等措施,并保留要求赔偿损失的权利。

如因您的违约行为导致我们遭受行政处罚、第三方索赔或商誉损失,您应承担全部赔偿责任(包括但不限于罚款、赔偿金、律师费、公证费等)。

八、 法律适用与争议解决

本协议的订立、执行和解释均适用中华人民共和国大陆地区法律。

因本协议产生的或与本协议有关的任何争议,双方应友好协商解决;协商不成的,任何一方均可向【公司所在地】有管辖权的人民法院提起诉讼。

九、 其他

本协议构成双方就本服务达成的完整协议,取代此前任何口头或书面约定。

本协议任一条款被认定为无效或不可执行的,不影响其他条款的效力。

我们对本协议享有最终解释权,并在法律允许的范围内保留随时修改的权利。修改后的协议一经公布即生效,继续使用服务即视为同意修订内容。

[已查阅](javascript:void(0);)

![Image 75](blob:http://localhost/57004b956a85efee8835ba0a2624579b)![Image 76](blob:http://localhost/106ce8e582bca0b38f4f5000e8a17d46)

安全验证

拖动下方拼图完成验证

![Image 77: close](blob:http://localhost/43852dbb763e417c8013f236ea59e51f)

![Image 78](blob:http://localhost/7d5c001623574d23d6661e7e79031704)![Image 79](blob:http://localhost/718e0662e63ffca63fc24da6cdccfc0e)

AI生成背景

![Image 80: success](blob:http://localhost/d5fde92d3435ab9970a031c6f3f8f659)

您的速度已超过 99% 的用户

验证错误,请重试

![Image 81: load error](blob:http://localhost/32af5463e87d3f810c525786a7c7fda9)

确定

![Image 82: slider arrow](blob:http://localhost/9d735ddc2b078a6014041746f59bebf8)![Image 83: slider arrow](blob:http://localhost/6b7fd8df2ea88a40756f5decfce1aef6)![Image 84: slider arrow](blob:http://localhost/391376c788ecc648275dba00832a0f7c)

安全验证

刷新验证码

![Image 85: refresh](blob:http://localhost/812330e3493bf5aa4fad2dc4783a810a)

反馈

![Image 86: tip](blob:http://localhost/8b01cc8f943afa0e5c254fabecdeaf4b)

切换无障碍验证

![Image 87: Barrier-free verification](blob:http://localhost/1fea17855d0ec61aa9663047185280c3)

切换常规验证

![Image 88: switch](blob:http://localhost/620aa053635df52a79e196ca8547406c)

Skill前沿技术新闻资讯

40分钟学会Codex!“零基础”终级教程~【附完整文档】

2026-7-4 17:02:37

Palantir前沿技术新闻资讯

FDE 术语表:30 个词看懂这个行业在说什么

2026-7-4 17:06:02

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
购物车
优惠劵
搜索