went through the architecture docs and docker-compose setup. the memory storage is different from what i expected.
actual tech stack:
- MongoDB: stores memory cells, episodes, profiles
- Elasticsearch: keyword search (BM25 algorithm)
- Milvus: vector database for semantic retrieval
- Redis: caching layer
so its not using model KV cache for storage. its a proper database-backed system.
how retrieval works:
supports three retrieval modes:
- embedding: semantic search via Milvus
- bm25: keyword search via Elasticsearch
- rrf: runs both in parallel, then fuses with Reciprocal Rank Fusion
rrf mode is recommended - combines semantic and keyword matching.
optional reranker can score results for better relevance ranking.
vs typical RAG:
most RAG setups:
- chunk documents → embed → store in vector DB
- query comes in → embed query → cosine similarity search
- feed top-k chunks to LLM
EverMemOS adds:
- structured memory types (episodes, profiles, preferences)
- parallel keyword + semantic search
- intelligent reranking layer
- memory consolidation (linking related fragments)
tradeoff is complexity. need to run 3 different databases. docker-compose file shows MongoDB + Elasticsearch + Milvus + Redis all running.
docs say minimum 4GB RAM for the whole stack. not exactly lightweight for local development.
agentic retrieval mode:
this is where it gets interesting. on top of the three basic retrieval modes, theres an agentic layer that can intelligently expand searches.
heres how it works:
- initial retrieval: runs hybrid search (embedding + bm25 + rrf) to get candidate set
- assessment: cross-encoder reranks candidates, presents top results to LLM agent
- agent evaluation: checks if theres enough info to answer the query
- if sufficient: returns the original candidate set
- if not: agent identifies whats missing, generates multiple complementary queries
- expansion: runs new hybrid searches for each query, collects additional results
- fusion and rerank: combines all results with rrf, then cross-encoder reranks to produce final set
so if the first search isnt comprehensive enough, it automatically expands with targeted queries. way more thorough than single-shot retrieval.
example: you ask "what foods might user like?"
- first search finds "likes italian food"
- agent evaluates: "not enough, need dietary restrictions"
- generates queries: "user health conditions", "food allergies or intolerances"
- finds: "had dental surgery, soft foods only" + "avoids spicy food"
- combines all contexts for comprehensive answer
lightweight vs agentic:
two retrieval modes with different tradeoffs:
- lightweight: single-pass rrf fusion, fast
- agentic: llm evaluates results, expands with multiple queries if needed, comprehensive but slower
lightweight is probably fine for most cases. agentic is for when you really need complete context and dont mind the extra latency from llm evaluation and potential expansion searches.
deployment considerations:
if youre thinking of using this:
- need docker or manual setup of 3 databases and redis
- minimum 4GB RAM requirement (for elasticsearch + milvus)
- mongodb for persistence
- redis for caching
not exactly lightweight. but makes sense if you want production-grade memory system with proper indexing and search.
for prototyping theres probably simpler options. for production where memory quality matters, the infrastructure investment seems reasonable.
different approach than i expected. thought it might use model-native memory but its actually a full database stack with intelligent retrieval on top.
more like "memory operating system" than "memory hack" - proper infrastructure rather than clever trick.