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شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.