Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Buffer Window Memory

Use aimicromind 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.

Input

ParameterDescriptionDefault
SizeLast K messages to fetch4
Session IdAn ID to retrieve/store messages. If not specified, a random ID will be used.
Memory KeyA key used to format messages in prompt templatechat_history