braindb
由 chair4ce 提供
Notes & PKM简介
Persistent, semantic memory for AI agents.
描述
该技能的功能
BrainDB gives AI agents persistent memory that survives session resets and context compaction. It automatically extracts facts from conversations and retrieves relevant ones on demand, with no manual commands required. Memory persists across restarts with 98% recall accuracy and 12-20ms average query latency.
768-dimensional semantic search finds conceptually related memories rather than relying on keyword matching or manual file lookups.
何时使用
- Remembering project architecture decisions across multi-day coding sessions
- Recalling user preferences without re-explaining them each session
- Importing existing MEMORY.md files and daily notes into semantic search
- Persisting troubleshooting history and past resolutions
- Maintaining long-running project context that outlasts the AI context window
示例工作流
User says: 'We switched from MongoDB to PostgreSQL last week because of the relational data requirements.'
- 1
OpenClaw detects a notable fact and forwards it to BrainDB
- 2
BrainDB encodes the fact as a 768-dim embedding and stores it in Neo4j
- 3
In a new session, user asks about the database setup
- 4
BrainDB retrieves the stored decision via semantic similarity search
- 5
AI receives the prior context and includes it in its response
AI correctly references the PostgreSQL decision and its rationale without being re-told
前置要求
- Docker (runs the Neo4j, embedder, and gateway containers; requires ~4 GB RAM and ~3 GB disk)
安装
clawhub install chair4ce/braindb运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。