Buffer Window Memory
Use CiniterFlow database table chat_message as the storage mechanism for storing/retrieving conversations.
Difference being it only fetches the last K interactions. This approach is beneficial for preserving a sliding window of the most recent interactions, ensuring the buffer remains manageable in size.
 (1) (3) (1)-69ba370de99fcf3c835b7558d39b3347.png)
Input
| Parameter | Description | Default |
|---|---|---|
| Size | Last K messages to fetch | 4 |
| Session Id | An ID to retrieve/store messages. If not specified, a random ID will be used. | |
| Memory Key | A key used to format messages in prompt template | chat_history |