odinbot33-oee-knowledge-base
个人 RAG 知识库:摄取文本/URL/文件,语义搜索与上下文检索。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~odinbot33-oee-knowledge-basecURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~odinbot33-oee-knowledge-base/file -o odinbot33-oee-knowledge-base.md## 概述(中文) 个人 RAG 知识库:摄取文本/URL/文件,语义搜索与上下文检索。 ## 技能正文 # 🐾 知识库(RAG)— 你的第二大脑 > by Odin's Eye Enterprises — 古老智慧。现代智能。 保存一切,语义召回。基于 SQLite + 嵌入的个人 RAG 知识库。 ## 功能 1. **Ingest** — Save text, URLs, files, notes into your 知识库 2. **Query** — Semantic search across everything you've saved 3. **Retrieve** — Get relevant context for any question ## 触发短语 - "remember this" - "save this to the 知识库" - "what do I know about" - "search my notes" - "KB query" ## 用法 ```bash # 摄取文本 python ingest.py "The key insight from today's meeting was..." # 从文件摄取 python ingest.py --file notes.md # 查询知识库 python query.py "What did we discuss about pricing?" # 完整 KB 管理 python kb.py stats python kb.py search "topic" ``` ## 文件 - `kb.py` — core KB engine (embeddings, storage, retrieval) - `ingest.py` — CLI for adding content - `query.py` — CLI for searching - `kb.db` — SQLite database (auto-created) ## 要求 - Python 3.10+ - `ANTHROPIC_API_KEY` or `OPENAI_API_KEY` for embeddings ## 面向智能体 Save context: `python ingest.py "TEXT"` Retrieve context: `python query.py "QUESTION"` <!-- 🐾 Muninn never forgets -->