Getting Started

SDK Installation

Zep provides SDKs for Python and TypeScript.

Python

1pip install zep-cloud

TypeScript

1npm install @getzep/zep-cloud

Go

1go get github.com/getzep/zep-go

Initialize Client

1import os
2from zep_cloud.client import Zep
3
4API_KEY = os.environ.get('ZEP_API_KEY')
5
6client = Zep(
7 api_key=API_KEY,
8)
API Keys are project-specific. You can generate a new API key from Project Settings.

The Python SDK Supports Async Use

In order to use async client, you will need to import AsyncZep instead of Zep.

1from zep_cloud.client import AsyncZep

LangChain

zep-cloud SDK includes ZepChatMessageHistory and ZepVectorStore classes.

These are designed to work seamlessly with LangChain’s Python Expression Language.

To integrate these classes into your application, ensure the langchain_core package is installed. For installation guidance, please consult the LangChain documentation.

Import the classes as shown below:

1from zep_cloud.langchain import ZepChatMessageHistory, ZepVectorStore

LlamaIndex

Stay tuned! We are in the process of updating our LlamaIndex integration to be compatible with the latest Zep API.