Docs: https://docs.getzep.com/Retriever Example‚ÄãThis notebook demonstrates how to search historical chat message histories using the Zep Long-term Memory Store.We'll demonstrate:Adding conversation history to the Zep memory store.Vector search over the conversation history.import getpassimport timefrom uuid import uuid4from langchain.memory import ZepMemoryfrom langchain.schema import HumanMessage, AIMessage# Set this to your Zep server URLZEP_API_URL = "http://localhost:8000"Initialize the Zep Chat Message History Class and add a chat message history to the memory store‚ÄãNOTE: Unlike other Retrievers, the content returned by the Zep Retriever is session/user specific. A session_id is required when instantiating the Retriever.# Provide your Zep API key. Note that this is optional. See https://docs.getzep.com/deployment/authAUTHENTICATE = Falsezep_api_key = Noneif AUTHENTICATE:    zep_api_key = getpass.getpass()session_id = str(uuid4())  # This is a unique identifier for the user/session# Initialize the Zep Memory Classzep_memory = ZepMemory(session_id=session_id, url=ZEP_API_URL, api_key=zep_api_key)    /Users/danielchalef/dev/langchain/.venv/lib/python3.11/site-packages/zep_python/zep_client.py:86: Warning: You are using an incompatible Zep server version. Please upgrade to {MINIMUM_SERVER_VERSION} or later.      self._healthcheck(base_url)# Preload some messages into the memory. The default message window is 12 messages. We want to push beyond this to demonstrate auto-summarization.test_history = [    {"role": "human", "content": "Who was Octavia Butler?"},    {        "role": "ai",        "content": (            "Octavia Estelle Butler (June 22, 1947 ‚Äì February 24, 2006) was an American"            " science fiction author."        ),    },    {"role": "human", "content": "Which books of hers were made into movies?"},    {        "role": "ai",        "content": (            "The most well-known adaptation of Octavia Butler's work is the FX series"
Retriever Example for Zep - Fast, scalable building blocks for LLM Apps
Retriever Example for Zep - Fast, scalable building blocks for LLM Apps ->: Docs: https://docs.getzep.com/Retriever Example‚ÄãThis notebook demonstrates how to search historical chat message histories using the Zep Long-term Memory Store.We'll demonstrate:Adding conversation history to the Zep memory store.Vector search over the conversation history.import getpassimport timefrom uuid import uuid4from langchain.memory import ZepMemoryfrom langchain.schema import HumanMessage, AIMessage# Set this to your Zep server URLZEP_API_URL = "http://localhost:8000"Initialize the Zep Chat Message History Class and add a chat message history to the memory store‚ÄãNOTE: Unlike other Retrievers, the content returned by the Zep Retriever is session/user specific. A session_id is required when instantiating the Retriever.# Provide your Zep API key. Note that this is optional. See https://docs.getzep.com/deployment/authAUTHENTICATE = Falsezep_api_key = Noneif AUTHENTICATE:    zep_api_key = getpass.getpass()session_id = str(uuid4())  # This is a unique identifier for the user/session# Initialize the Zep Memory Classzep_memory = ZepMemory(session_id=session_id, url=ZEP_API_URL, api_key=zep_api_key)    /Users/danielchalef/dev/langchain/.venv/lib/python3.11/site-packages/zep_python/zep_client.py:86: Warning: You are using an incompatible Zep server version. Please upgrade to {MINIMUM_SERVER_VERSION} or later.      self._healthcheck(base_url)# Preload some messages into the memory. The default message window is 12 messages. We want to push beyond this to demonstrate auto-summarization.test_history = [    {"role": "human", "content": "Who was Octavia Butler?"},    {        "role": "ai",        "content": (            "Octavia Estelle Butler (June 22, 1947 ‚Äì February 24, 2006) was an American"            " science fiction author."        ),    },    {"role": "human", "content": "Which books of hers were made into movies?"},    {        "role": "ai",        "content": (            "The most well-known adaptation of Octavia Butler's work is the FX series"