Memories
Central data structure in Zep’s Memory Store
You are viewing the Zep Open Source v0.x documentation. This version is no longer supported, and documentation is provided as a reference only.
The current documentation for Zep Community Edition is available here.
A Memory
is the central data structure in Zep’s Memory Store. It contains a list of Messages
and a Summary
(if created). The Memory and Summary are returned with UUIDs, entities extracted from the conversation, token counts, timestamps, and other metadata.
Memories are associated with a Session
in a many-to-one relationship.
Persisting a Memory to a Session
A Memory
may include a single message or a series of messages. Each Message
has a role
and content
field, with role being the identifiers for your human and AI/agent users and content being the text of the message.
Additionally, you can even store custom metadata with each Message.
Note: Sessions are created automatically when adding Memories. If the
SessionID
already exists, then the Memory is upserted into the Session.Manually creating a session can be useful if you want to associate it with a user or add metadata