🔥Quickstart
ConversationBufferMemory
A Conversation Buffer Memory component temporarily stores recent messages and interactions in a conversation. It acts as a short-term memory buffer, holding onto messages for a brief period to facilitate real-time conversations. This component help in maintaining a sense of continuity and context within the conversation.
Conversation Buffer Memory doesn't require any specific configuration from the user.
Important Note: The ConversationBufferMemory uses the main memory of the system to store the conversations and it will be lost once the process gets terminated.
VectorDBMemory
VectorDBMemory supports both ChromaDB
and Weaviate
, which one is used to store the conversations is totally depends on the vectordb that is initialized and passed to the stack for storing the documents. by default k=4
, so get_chat_history()
returns last 4 conversations and you can also change this default value when initializing the VectorDBMemory
component.
Important Note:Once the total number of conversations are 40, the first 20 conversations are removed from vectordb memory. This is because to make sure the context length doesn't exceeds.
Last updated