I am creating a LLM chat app with LangChain. I am keeping track of the chat history with a simple array that gets sent to the LLM with every prompt. I noticed LangChain also has classes that automatically keep track of the whole conversation, such as BufferMemory and ConversationBufferMemory
https://python.langchain.com/docs/modules/memory/types/buffer
It's not explained however if these classes automatically keep track of different users as well? What if two users connect to the script, will their conversations get mixed up with each other?
How do you keep track of multiple users in a Chat LLM application?