Skip to main content

Zep: Fast, scalable building blocks for LLM apps. This is the Python client for the Zep service.

Project description

Tests lint Release to PyPI GitHub

Zep Logo

Zep: Fast, scalable building blocks for LLM apps

Chat history memory, embedding, vector search, data enrichment, and more.

Quick Start | Documentation | LangChain and LlamaIndex Support | Discord
www.getzep.com

What is Zep?

Zep is an open source platform for productionizing LLM apps. Zep summarizes, embeds, and enriches chat histories and documents asynchronously, ensuring these operations don't impact your user's chat experience. Data is persisted to database, allowing you to scale out when growth demands. As drop-in replacements for popular LangChain components, you can get to production in minutes without rewriting code.

Zep Demo Video

Zep Python Client

This is the Python client package for the Zep service. For more information about Zep, see https://github.com/getzep/zep.

Zep QuickStart Guide: https://docs.getzep.com/deployment/quickstart

Zep Documentation: https://docs.getzep.com

Installation

pip install zep-python

-- OR --

poetry add zep-python

Zep Cloud Installation

In order to install Zep Python SDK with Zep Cloud support, you will need to install a release candidate version.

pip install --pre zep-python

-- OR --

poetry add zep-python@^2.0.0rc

You will also need to provide a Zep Project API key to your zep client for cloud support. You can find out about Zep Projects in our cloud docs

Using LangChain Zep Classes with zep-python

(Currently only available on release candidate versions)

In the pre-release version zep-python sdk comes with ZepChatMessageHistory and ZepVectorStore classes that are compatible with LangChain's Python expression language

In order to use these classes in your application, you need to make sure that you have langchain_core package installed, please refer to Langchain's docs installation section.

We support langchain_core@>=0.1.3<0.2.0

You can import these classes in the following way:

from zep_python.langchain import ZepChatMessageHistory, ZepVectorStore

Running Examples

You will need to set the following environment variables to run examples in the examples directory:

# Please use examples/.env.example as a template for .env file

# Required
ZEP_API_KEY=<zep-project-api-key># Your Zep Project API Key
ZEP_COLLECTION=<zep-collection-name># used in ingestion script and in vector store examples
OPENAI_API_KEY=<openai-api-key># Your OpenAI API Key

# Optional (If you want to use langsmith with LangServe Sample App)
LANGCHAIN_TRACING_V2=true
LANGCHAIN_API_KEY=<your-langchain-api-key>
LANGCHAIN_PROJECT=<your-langchain-project-name># If not specified, defaults to "default"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zep_python-2.0.0rc3.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

zep_python-2.0.0rc3-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file zep_python-2.0.0rc3.tar.gz.

File metadata

  • Download URL: zep_python-2.0.0rc3.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for zep_python-2.0.0rc3.tar.gz
Algorithm Hash digest
SHA256 bfdacb07946f0c02681d369a7ed69f898d30515a913f1d83b950f32e4fcab364
MD5 cdc3d27e51fa9d948438154de1bc9302
BLAKE2b-256 e4fa2a55fa35c80990ab8678054fbaa7fcab68768eb96663a3a409edf248e522

See more details on using hashes here.

File details

Details for the file zep_python-2.0.0rc3-py3-none-any.whl.

File metadata

File hashes

Hashes for zep_python-2.0.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 9322cd3352597fc066ca778f438e6c531b1c68259b7af46c15f6a32f3ae1654a
MD5 e28c8c5036b4178f7e6987894f38e7c1
BLAKE2b-256 8cc6ab9f126c4cbc624f4f2f3c9024e27dc74b23b855a746bfb719aa2fb9259e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page