r/EverMindAI • • 14h ago

Long-Term memory structure

Post image
2 Upvotes

I wanted a lossless portable long term memory for a persistent agent without having to worry about eventual context rot. So I built a Long-Term memory structure for Claude.

Compaction is just a small mutation. By taking the graph out of the window and making it accessible through a small search surface with a fixed cost or ~7k tokens.

Long-term memory structure vs naive Claude
system overview

All memories are encoded in prose, never as an embedding. This is done to preserve the semantic depth of information and also to decouple the system from any tokenizer/model. So a RAGDAG was built in order to implement semantic search. In a RAGDAG the RAG resolves to an address on a RAG to which the system is point to consume information encoded in prose.

I have been running this set up continuously without compaction for roughly 400 consecutive sessions and documented all my findings.

I am releasing this system as an open code projects so other could use it.

https://github.com/long-term-memory-structure


r/EverMindAI • • Jun 30 '26

Herding Hermes' persistent memory: from self-hosting mem0 to EverOS

Thumbnail
reddit.com
1 Upvotes

r/EverMindAI • • Dec 18 '25

personalization through memory, way more powerful than expected

1 Upvotes

been experimenting with EverMemOS for a personal assistant project and the personalization aspect is honestly mind-blowing.

most AI systems treat every interaction like meeting someone for the first time. you tell them your preferences, they help you, then forget everything. next conversation starts from zero again.

but with proper memory, the AI actually learns your patterns. like it noticed i always ask for restaurant recommendations on fridays around 6pm when im stressed about work. now it proactively suggests places before i even ask, and picks spots that match my mood based on how the week went.

the creepy-but-cool part is how it builds your profile over time. not just "user likes italian food" but deeper stuff like "user prefers comfort food when stressed, healthy options when motivated, and always wants vegetarian alternatives for group dinners."

had this moment last week where i mentioned feeling overwhelmed. the AI didnt just give generic advice, it referenced specific strategies that worked for me before, suggested breaking tasks down the way i prefer, even recommended that meditation app i used successfully 2 months ago.

its like having a friend who actually pays attention and remembers what works for you. most people dont even do that lol.

the technical side is interesting too. instead of just storing conversation logs, it extracts different memory types, episodes,profile, event, even predictions about future needs. feels more like how human memory actually works.

still figuring out the privacy implications tho. having an AI that knows you this well is powerful but also kinda scary. need to think through what should be remembered vs forgotten.


r/EverMindAI • • Dec 11 '25

conversation handoff patterns - how do you maintain context between agents? c

1 Upvotes

building a customer support system with EverMemOS where conversations get handed off between specialized agents. struggling with maintaining context continuity when Agent A (general support) transfers to Agent B (technical specialist).

current setup:

using shared group_id (agent_name + conversation_id) for the entire conversation thread, with sender being the actual user ID. both agents store to and retrieve from the same memory space using the shared group_id.

// Agent A stores initial context
{
  "sender": "user123",
  "sender_name": "John Smith",
  "content": "user reports payment failure, card ending in 1234",
  "group_id": "support_agent_general_conv_20241211",
  "scene": "group_chat"
}

// Agent B retrieves context before taking over
{
  "group_id": "support_agent_general_conv_20241211",
  "memory_scope": "group",
  "query": "payment failure context",
  "data_source": "episode"
}

challenges i'm facing:

  1. handoff context - how to signal to Agent B what specific issue needs attention vs general conversation history
  2. agent capabilities - Agent A might create memories about technical details it doesn't fully understand, Agent B needs to know what's reliable vs what needs verification
  3. conversation flow - when Agent B takes over, should it acknowledge the handoff explicitly or just continue seamlessly?

what i've tried:

  • using group_id to track which agent conversation this belongs to (agent_name + conversation_id pattern)
  • storing handoff notes as separate messages with specific content patterns
  • retrieving with different queries to get focused vs broad context

questions:

  • anyone found good patterns for explicit handoff documentation?
  • how do you handle agent specialization in memory formation? (e.g., technical agent creates more detailed technical memories)
  • is there a way to mark certain memories as "verified by specialist" vs "initial assessment"?

the episode formation seems to work well for maintaining conversation continuity, but wondering if there are better approaches for multi-agent scenarios.

curious how others handle the balance between shared context and agent-specific expertise.


r/EverMindAI • • Dec 11 '25

multi-agent memory is harder than it looks

1 Upvotes

been building a team collaboration tool and realized most memory systems fall apart with multiple people. EverMemOS actually handles it.

the problem: when you have 5 people in a chat, you need to track:

  • who said what
  • which topics each person cares about
  • relationship dynamics
  • who knows what

most simple memory systems just dump everything into one vector DB. that doesn't work.

how EverMemOS does it:

uses a scene parameter - assistant for 1-on-1, group_chat for multi-person. different extraction strategies for each.

for group chat, it tracks:

  • sender and sender_name
  • group_id and group_name
  • message timestamps
  • user roles (from metadata)

so when you query "what does Alice think about the project timeline?", it can track who said what and build per-person profiles, not just return generic results.

why this matters:

in a team setting, context is personal. Alice's concerns about deadlines are different from Bob's technical constraints. a memory system that treats all messages the same is useless.

EverMemOS builds profiles per person, tracks relationships, maintains context. that's enterprise-grade.

implementation:

API accepts messages with full metadata. batch processing for group chats. supports their standardized GroupChatFormat.

github.com/EverMind-AI/EverMemOS has the code if you want to see how they handle it.

most memory systems are built for chatbots. this one actually thinks about teams.


r/EverMindAI • • Dec 04 '25

EverMemOS is actually production-ready open source

3 Upvotes

cloned the repo (github.com/EverMind-AI/EverMemOS) and was surprised how complete it is. not just a research project.

actual tech stack:

MongoDB + Elasticsearch + Milvus + Redis. so it's doing hybrid retrieval - semantic search via vectors, keyword search via BM25, then fusing results. that's more sophisticated than most RAG setups i've seen.

what's included:

  • full source code (agentic layer, memory extraction, retrieval)
  • docker-compose for spinning up all dependencies
  • evaluation framework for LoCoMo, LongMemEval, PersonaMem benchmarks
  • REST API (memorize, retrieve_lightweight, retrieve_agentic)
  • demo code and sample data

getting started is actually easy:

docker-compose up, install with uv, configure env vars, run demo. simple demo takes ~2 minutes once everything is set up.

requirements: Python 3.10+, Docker 20.10+, 4GB RAM. nothing crazy.

license: Apache 2.0, so commercial use is fine.

what impressed me: they're transparent about the architecture. you can see exactly how memory extraction works, how retrieval strategies compare, how the agentic layer decides when to expand searches. that's rare for memory systems.

most projects i've seen either keep it proprietary or release half-baked code. this looks like they actually use it themselves.


r/EverMindAI • • Nov 28 '25

EverMemOS memory infrastructure - how it actually stores data

1 Upvotes

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:

  1. embedding: semantic search via Milvus
  2. bm25: keyword search via Elasticsearch
  3. 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:

  1. initial retrieval: runs hybrid search (embedding + bm25 + rrf) to get candidate set
  2. assessment: cross-encoder reranks candidates, presents top results to LLM agent
  3. agent evaluation: checks if theres enough info to answer the query
  4. if sufficient: returns the original candidate set
  5. if not: agent identifies whats missing, generates multiple complementary queries
  6. expansion: runs new hybrid searches for each query, collects additional results
  7. 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.