I have a RAG chatbot with memory and I want to store chat logs so I created chat store like this -
chat_store = SimpleChatStore()
and created memory like this -
memory = ChatMemoryBuffer.from_defaults(
chat_store=chat_store,
chat_store_key="user1",
)
but how can I add new logs every time? I tried to find some insert function but coudn't find it. Also I have to persist chat_store only once and then add data to it right?