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:        Human: Hi there!    AI:  Hi there! It's nice to meet you. How can I help you today?    Human: What's the weather?    AI:        > Finished ConversationChain chain.    ' The current weather is sunny and warm with a temperature of 75 degrees Fahrenheit. The forecast for the next few days is sunny with temperatures in the mid-70s.'# Now we can override it and set it to "AI Assistant"from langchain.prompts.prompt import PromptTemplatetemplate = """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:{history}Human: {input}AI Assistant:"""PROMPT = PromptTemplate(input_variables=["history", "input"], template=template)conversation = ConversationChain(    prompt=PROMPT,    llm=llm,    verbose=True,    memory=ConversationBufferMemory(ai_prefix="AI Assistant"),)conversation.predict(input="Hi there!")            > 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:        Human: Hi there!    AI Assistant:        > Finished ConversationChain chain.    " Hi there! It's nice to meet you. How can I help you today?"conversation.predict(input="What's the weather?")            > Entering new ConversationChain chain...    Prompt after formatting:    The following is a friendly conversation between a human and an
This notebook walks through a few ways to customize conversational memory.
This notebook walks through a few ways to customize conversational memory. ->: 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:        Human: Hi there!    AI:  Hi there! It's nice to meet you. How can I help you today?    Human: What's the weather?    AI:        > Finished ConversationChain chain.    ' The current weather is sunny and warm with a temperature of 75 degrees Fahrenheit. The forecast for the next few days is sunny with temperatures in the mid-70s.'# Now we can override it and set it to "AI Assistant"from langchain.prompts.prompt import PromptTemplatetemplate = """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:{history}Human: {input}AI Assistant:"""PROMPT = PromptTemplate(input_variables=["history", "input"], template=template)conversation = ConversationChain(    prompt=PROMPT,    llm=llm,    verbose=True,    memory=ConversationBufferMemory(ai_prefix="AI Assistant"),)conversation.predict(input="Hi there!")            > 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:        Human: Hi there!    AI Assistant:        > Finished ConversationChain chain.    " Hi there! It's nice to meet you. How can I help you today?"conversation.predict(input="What's the weather?")            > Entering new ConversationChain chain...    Prompt after formatting:    The following is a friendly conversation between a human and an