- Remembering user preferences across sessions
- Building up knowledge bases over time
- Sharing information between different agents
- Maintaining context across multiple interactions
- Creating more personalized user experiences
How Memory Works
Marvin memories are implemented as vector stores that allow agents to store and retrieve information using natural language. Each memory has a uniquekey that identifies it and instructions that guide how it should be used.
Creating Memory Modules
To create a memory module, you need to provide akey and instructions:
Memory Keys
Thekey uniquely identifies a memory module and must be consistent across uses to access the same stored information. Choose descriptive, unique keys for different types of information:
Memory Instructions
Theinstructions tell agents how to use the memory - what to store, when to access it, and how to format information:
