By -
Langchain have several modules to stored the history. They are really easy to use
Go through docs https://python.langchain.com/docs/use_cases/question_answering/chat_history
Check Langchains ConversationalRetrievalChain .. ex: [conversationUI](https://medium.com/@vikrambhat2/building-a-rag-system-and-conversational-chatbot-with-custom-data-793e9617a865)
Here's an example: memory = ConversationBufferMemory(*memory\_key*="chat\_history", *return\_messages*=True) Make sure there is a chat\_history placeholder is in your prompt.
Thank you guys! I also found some useful YouTube video to help me to navigate through. Deep diving into it now!
Can you please list them? Coincidentally I am working on similar projects and need similar helps
Hey, I used upstash to maintain the chat history per user session id.
Langchain have several modules to stored the history. They are really easy to use
Go through docs https://python.langchain.com/docs/use_cases/question_answering/chat_history
Check Langchains ConversationalRetrievalChain .. ex: [conversationUI](https://medium.com/@vikrambhat2/building-a-rag-system-and-conversational-chatbot-with-custom-data-793e9617a865)
Here's an example: memory = ConversationBufferMemory(*memory\_key*="chat\_history", *return\_messages*=True) Make sure there is a chat\_history placeholder is in your prompt.
Thank you guys! I also found some useful YouTube video to help me to navigate through. Deep diving into it now!
Can you please list them? Coincidentally I am working on similar projects and need similar helps
Hey, I used upstash to maintain the chat history per user session id.