Hey guys so I'm creating a RAG chatbot with everything seeming fine however I want to know how can I make it such that each user that is asking my chatbot have their own chat history/memory? The way my code is doing it at the moment is that its a universal chat history so the question and answer from user1 will be in the same history as all other users.
I'm currently doing my internship and I've been tasked to do a chatbot which I've been trying to do for the past 2-3 months using LangChain but I struggling a lot understanding and implementing several things from their docs so decided to switch to LlamaIndex and try it out. Could someone help me out transition from what I had in LangChain to LlamaIndex if someone understood both?
I'm currently doing RAG that has custom prompt, memory, and retrieves from a DirectoryLoader. I've also implemented Constitutional AI to prevent Prompt Injection/Hacking.
If someone could help me out, I'd highly appreciate it as I'm currently left with 2 weeks to finish it. I can show my LangChain code as well if it helps.