can see here that the summary and the buffer are updatedconversation_with_summary.predict(    input="Haha nope, although a lot of people confuse it for that")            > Entering new ConversationChain chain...    Prompt after formatting:    The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.        Current conversation:    System:     The human asked the AI what it was up to and the AI responded that it was learning about the latest developments in AI technology. The human then mentioned they were writing documentation, to which the AI responded that it sounded like a great use of their time and asked if they had experience with writing documentation.    Human: For LangChain! Have you heard of it?    AI:  No, I haven't heard of LangChain. Can you tell me more about it?    Human: Haha nope, although a lot of people confuse it for that    AI:        > Finished chain.    ' Oh, okay. What is LangChain?'PreviousConversation SummaryNextConversation Token BufferUsing memory with LLMUsing in a chainCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
ConversationSummaryBufferMemory combines the two ideas. It keeps a buffer of recent interactions in memory, but rather than just completely flushing old interactions it compiles them into a summary and uses both.
ConversationSummaryBufferMemory combines the two ideas. It keeps a buffer of recent interactions in memory, but rather than just completely flushing old interactions it compiles them into a summary and uses both. ->: can see here that the summary and the buffer are updatedconversation_with_summary.predict(    input="Haha nope, although a lot of people confuse it for that")            > Entering new ConversationChain chain...    Prompt after formatting:    The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.        Current conversation:    System:     The human asked the AI what it was up to and the AI responded that it was learning about the latest developments in AI technology. The human then mentioned they were writing documentation, to which the AI responded that it sounded like a great use of their time and asked if they had experience with writing documentation.    Human: For LangChain! Have you heard of it?    AI:  No, I haven't heard of LangChain. Can you tell me more about it?    Human: Haha nope, although a lot of people confuse it for that    AI:        > Finished chain.    ' Oh, okay. What is LangChain?'PreviousConversation SummaryNextConversation Token BufferUsing memory with LLMUsing in a chainCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.