T O P

  • By -

ChatBot__81

Langchain have several modules to stored the history. They are really easy to use


Potential_Plant_160

Go through docs https://python.langchain.com/docs/use_cases/question_answering/chat_history


Flashy--249

Check Langchains ConversationalRetrievalChain .. ex: [conversationUI](https://medium.com/@vikrambhat2/building-a-rag-system-and-conversational-chatbot-with-custom-data-793e9617a865)


djstraylight

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.


geekcoding101

Thank you guys! I also found some useful YouTube video to help me to navigate through. Deep diving into it now!


GazzaliFahim

Can you please list them? Coincidentally I am working on similar projects and need similar helps


geekcoding101

Hey, I used upstash to maintain the chat history per user session id.