project! What kind of project are they working on?"})memory.load_memory_variables({"input": 'who is Sam'})    {'history': [HumanMessage(content='Deven & Sam are working on a hackathon project', additional_kwargs={}),      AIMessage(content=' That sounds like a great project! What kind of project are they working on?', additional_kwargs={})],     'entities': {'Sam': 'Sam is working on a hackathon project with Deven.'}}Using in a chain‚ÄãLet's now use it in a chain!from langchain.chains import ConversationChainfrom langchain.memory import ConversationEntityMemoryfrom langchain.memory.prompt import ENTITY_MEMORY_CONVERSATION_TEMPLATEfrom pydantic import BaseModelfrom typing import List, Dict, Anyconversation = ConversationChain(    llm=llm,    verbose=True,    prompt=ENTITY_MEMORY_CONVERSATION_TEMPLATE,    memory=ConversationEntityMemory(llm=llm))conversation.predict(input="Deven & Sam are working on a hackathon project")    > Entering new ConversationChain chain...    Prompt after formatting:    You are an assistant to a human, powered by a large language model trained by OpenAI.    You are designed to be able to assist with a wide range of tasks, from answering simple questions to providing in-depth explanations and discussions on a wide range of topics. As a language model, you are able to generate human-like text based on the input you receive, allowing you to engage in natural-sounding conversations and provide responses that are coherent and relevant to the topic at hand.    You are constantly learning and improving, and your capabilities are constantly evolving. You are able to process and understand large amounts of text, and can use this knowledge to provide accurate and informative responses to a wide range of questions. You have access to some personalized information provided by the human in the Context section below. Additionally, you are able to generate your own text based on the input you receive, allowing you to engage in discussions and provide
Entity memory remembers given facts about specific entities in a conversation. It extracts information on entities (using an LLM) and builds up its knowledge about that entity over time (also using an LLM).
Entity memory remembers given facts about specific entities in a conversation. It extracts information on entities (using an LLM) and builds up its knowledge about that entity over time (also using an LLM). ->: project! What kind of project are they working on?"})memory.load_memory_variables({"input": 'who is Sam'})    {'history': [HumanMessage(content='Deven & Sam are working on a hackathon project', additional_kwargs={}),      AIMessage(content=' That sounds like a great project! What kind of project are they working on?', additional_kwargs={})],     'entities': {'Sam': 'Sam is working on a hackathon project with Deven.'}}Using in a chain‚ÄãLet's now use it in a chain!from langchain.chains import ConversationChainfrom langchain.memory import ConversationEntityMemoryfrom langchain.memory.prompt import ENTITY_MEMORY_CONVERSATION_TEMPLATEfrom pydantic import BaseModelfrom typing import List, Dict, Anyconversation = ConversationChain(    llm=llm,    verbose=True,    prompt=ENTITY_MEMORY_CONVERSATION_TEMPLATE,    memory=ConversationEntityMemory(llm=llm))conversation.predict(input="Deven & Sam are working on a hackathon project")    > Entering new ConversationChain chain...    Prompt after formatting:    You are an assistant to a human, powered by a large language model trained by OpenAI.    You are designed to be able to assist with a wide range of tasks, from answering simple questions to providing in-depth explanations and discussions on a wide range of topics. As a language model, you are able to generate human-like text based on the input you receive, allowing you to engage in natural-sounding conversations and provide responses that are coherent and relevant to the topic at hand.    You are constantly learning and improving, and your capabilities are constantly evolving. You are able to process and understand large amounts of text, and can use this knowledge to provide accurate and informative responses to a wide range of questions. You have access to some personalized information provided by the human in the Context section below. Additionally, you are able to generate your own text based on the input you receive, allowing you to engage in discussions and provide