OpenClaw Memory Embeddings EXPLAINED (The CORRECT Way)
Video summary
Companion notes
What 'memory' actually is
OpenClaw does not make Grok, Claude, or MiniMax *remember* you. It "puts those memories in a workable form" and re-injects them into each session — the model underneath is still stateless. That distinction is the whole video.
The three layers
1. In-memory (free) — a daily file appended every day, then a rolling summary pushed into the next chat. Problem: after 14 days of use, the context is already bloated; after 360 days it's unusable. 2. Main long-term file — a compressed narrative the agent re-reads each morning. 3. SQLite + vector embeddings — the only layer that handles "what did I do two weeks ago." Until this is enabled, the bot defaults to "just looks at the last three days."
How embeddings work, stripped down
Sentences are turned into vectors — "Pepsi is like 9264552", "soda is 7651" — and the agent does nearest-neighbor search. That is why asking about "soda" still retrieves your Pepsi preference. The trade-off: it depends on the embedding model, and QMD (covered in a prior video) enables concept-level matching beyond word-for-word.
Why the creator cares
This is the "day and night difference between an assistant and just a chatbot." Without embeddings, the daily-file layer does "the lazy thing" — read the last 3 days and call it good. With embeddings on, your agent can fetch a presentation from two weeks ago without context overflow.
Setup cost
You need an OpenAI API key (Gemini "works now" per the video) configured inside the bot. The video's Banner agent was queried live to confirm the embedding status — expect to be asked the same prompt. The resulting memory.sqlite is "unreadable by humans," which is normal. Commands to inspect this live will be posted on boxminingai.com alongside the other memory videos.
Watch on YouTube
Prefer the native player? Open it on YouTube: https://www.youtube.com/watch?v=mLsxlYuLafE
