LangChain - Conversational RAG
You want to build a chat app that remembers only the last 3 messages. Which approach using
ConversationBufferMemory is best to achieve this?ConversationBufferMemory is best to achieve this?memory.chat_memory.messages after each addition (e.g., memory.chat_memory.messages = memory.chat_memory.messages[-3:]) keeps only the last 3.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions