Files
langchain-python/docs/docs_skeleton/docs/modules/memory/buffer_window.mdx
T
2023-07-23 23:23:16 -07:00

10 lines
444 B
Plaintext

# Conversation buffer window memory
`ConversationBufferWindowMemory` keeps a list of the interactions of the conversation over time. It only uses the last K interactions. This can be useful for keeping a sliding window of the most recent interactions, so the buffer does not get too large
Let's first explore the basic functionality of this type of memory.
import Example from "@snippets/modules/memory/how_to/buffer_window.mdx"
<Example/>