mirror of
https://github.com/Mintplex-Labs/langchain-python.git
synced 2026-07-22 09:15:31 -04:00
10 lines
444 B
Plaintext
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/>
|