Storing & Retrieving Memory
Overview
Memorylake enables storing, retrieving and managing conversational memory by associating user queries and responses with specific sessions. This allows AI-driven applications to recall past interactions and provide context-aware responses.
Method: short_memory_create()
short_memory_create()
The short_memory_create()
method stores a memory instance for a specific user. Each memory entry contains:
User UUID: Identifies the user.
Memory Context: Defines the scope of memory storage (e.g., chatbot session).
Memory Data: Stores the user’s query, AI-generated response, timestamp, and cache expiration time.
Example Method
Retrieving Memory
You can retrieve memory using the short_memory_read
method. This method supports:
Last updated