remember
Store text in persistent memory with automatic embedding (if configured). Usage:memory:write authorization
Behavior:
-
With embedding provider configured:
- Generates vector embedding via Ollama/OpenAI
- Stores text + embedding in SQLite (dual-indexed)
- Enables semantic search via
recall
-
Without embedding provider:
- Stores text with FTS5 keyword indexing only
- Graceful fallback (zero config required)
- Backend: SQLite (default) or NoopMemory
- Auto-generates UUID for each entry
- Timestamps with creation time
- Metadata support (tags, source, etc.)
recall
Search memory using hybrid FTS5 + vector similarity with RRF fusion. Usage:memory:read authorization
Search Modes:
Hybrid Search (FTS5 + Vector + RRF)
When embedding provider is configured:- FTS5 keyword search: Traditional full-text search on indexed tokens
- Vector similarity: Cosine similarity between query embedding and stored embeddings
- RRF fusion: Reciprocal Rank Fusion combines both rankings
- Finds semantically similar content even with different wording
- Balances keyword precision with semantic recall
- Robust to synonyms and paraphrasing
FTS-Only Search
When no embedding provider configured:- Pure SQLite FTS5 keyword matching
- Fast, lightweight, zero external dependencies
- Graceful degradation (no errors)
- Default: 5 results
- Sorted by relevance (hybrid score or FTS rank)
Memory Search in LLM Pipeline
When you send queries to the LLM (viaask or free-form text), OneClaw automatically:
- Searches memory for relevant context (top 5 results)
- Injects matches into LLM prompt as “Related data from memory”
- LLM incorporates stored knowledge into response
Embedding Configuration
Enable vector search inconfig/oneclaw.toml:
Memory Backend
Default: SQLite with FTS5 + vector extension Storage location:workspace/oneclaw.db(SQLite file)- Auto-created on first
remember
memoriestable: id, content, created_at, metadata (JSON)memories_ftsFTS5 virtual table: keyword indexmemory_embeddingstable: id, embedding (BLOB), dimensions
- Survives runtime restarts
- No data loss on clean shutdown