No project description provided
Project description
Zep: Long-Term Context for AI Assistants.
Recall, understand, and extract data from chat histories. Power personalized AI experiences.
Quick Start |
Documentation |
LangChain and
LlamaIndex Support |
Discord
www.getzep.com
What is Zep? 💬
Zep is a context engineering platform for AI Assistant apps. With Zep, you can provide AI assistants with the ability to recall past conversations, no matter how distant, while also reducing hallucinations, latency, and cost.
Cloud Installation
You can install the Zep Cloud SDK by running:
pip install zep-cloud
[!NOTE] Zep Cloud overview and cloud sdk guide.
Community Installation
pip install zep-python
[!NOTE] Zep Community Edition quick start and sdk guide.
Zep v0.x Compatible SDK
You can install Zep v0.x compatible sdk by running:
pip install "zep-python>=1.5.0,<2.0.0"
[!NOTE] Zep v0.x quick start and sdk guide.
How Zep works
Zep persists and recalls chat histories, and automatically generates summaries and other artifacts from these chat histories. It also embeds messages and summaries, enabling you to search Zep for relevant context from past conversations. Zep does all of this 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.
Zep also provides a simple, easy to use abstraction for document vector search called Document Collections. This is designed to complement Zep's core context features, but is not designed to be a general purpose vector database.
Zep allows you to be more intentional about constructing your prompt:
- automatically adding a few recent messages, with the number customized for your app;
- a summary of recent conversations prior to the messages above;
- and/or contextually relevant summaries or messages surfaced from the entire chat session.
- and/or relevant Business data from Zep Document Collections.
Zep Cloud offers:
- Fact Extraction: Automatically build fact tables from conversations, without having to define a data schema upfront.
- Dialog Classification: Instantly and accurately classify chat dialog. Understand user intent and emotion, segment users, and more. Route chains based on semantic context, and trigger events.
- Structured Data Extraction: Quickly extract business data from chat conversations using a schema you define. Understand what your Assistant should ask for next in order to complete its task.
You will also need to provide a Zep Project API key to your zep client. 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_cloud.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zep_cloud-3.16.0.tar.gz.
File metadata
- Download URL: zep_cloud-3.16.0.tar.gz
- Upload date:
- Size: 66.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e6e363797ce613a79e56625aa282bde1fd819b8b70028415a5ba16817b19433
|
|
| MD5 |
f454d131660f0bfe4659f365a7d8cb29
|
|
| BLAKE2b-256 |
3a7946f8d46d90c15dab68e062a10cb802ec24bedf6d4df6c708fe5ab4232b64
|
Provenance
The following attestation bundles were made for zep_cloud-3.16.0.tar.gz:
Publisher:
release-cloud.yml on getzep/zep-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zep_cloud-3.16.0.tar.gz -
Subject digest:
5e6e363797ce613a79e56625aa282bde1fd819b8b70028415a5ba16817b19433 - Sigstore transparency entry: 832543187
- Sigstore integration time:
-
Permalink:
getzep/zep-python@cc2dfad7e3292106d0559f715ee63e44f8db6e55 -
Branch / Tag:
refs/tags/v3.16.0 - Owner: https://github.com/getzep
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-cloud.yml@cc2dfad7e3292106d0559f715ee63e44f8db6e55 -
Trigger Event:
release
-
Statement type:
File details
Details for the file zep_cloud-3.16.0-py3-none-any.whl.
File metadata
- Download URL: zep_cloud-3.16.0-py3-none-any.whl
- Upload date:
- Size: 115.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d740cb2432bd23895f78f5340dcc1ae8474e62b8c7a32dab84bd1133432d7778
|
|
| MD5 |
84739ef91b29a66b66fca432f9d76438
|
|
| BLAKE2b-256 |
434885ccaec38ef7ee44d5e255139af36e5ecee76a893c1a5827a983d3471e13
|
Provenance
The following attestation bundles were made for zep_cloud-3.16.0-py3-none-any.whl:
Publisher:
release-cloud.yml on getzep/zep-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zep_cloud-3.16.0-py3-none-any.whl -
Subject digest:
d740cb2432bd23895f78f5340dcc1ae8474e62b8c7a32dab84bd1133432d7778 - Sigstore transparency entry: 832543199
- Sigstore integration time:
-
Permalink:
getzep/zep-python@cc2dfad7e3292106d0559f715ee63e44f8db6e55 -
Branch / Tag:
refs/tags/v3.16.0 - Owner: https://github.com/getzep
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-cloud.yml@cc2dfad7e3292106d0559f715ee63e44f8db6e55 -
Trigger Event:
release
-
Statement type: