Quick Start |
Documentation |
LangChain and
LlamaIndex Support |
Discord
www.getzep.com
Zep is a long-term memory service 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.
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 memory features, but is not designed to be a general purpose vector database.
Zep allows you to be more intentional about constructing your prompt:
Zep Cloud is a managed service with Zep Open Source at its core. In addition to Zep Open Source's memory management features, Zep Cloud offers:
This is the TypeScript / JavaScript client package for the Zep service. For more information about Zep, see https://github.com/getzep/zep
npm install @getzep/zep-js
In order to install zep js sdk with zep-cloud support, you will need to install
a pre-release version tagged with @next
.
npm install @getzep/zep-js@next
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
zep-js@next
:In the pre-release version zep-js
sdk comes with ZepChatMessageHistory
, ZepVectorStore
and ZepMemory
classes that are compatible with Langchain's JS expression language
In order to use these classes in your application, you need to make sure that you have
langchain
package installed:
npm install langchain@^0.1.23
You can import these classes in the following way:
import { ZepChatMessageHistory, ZepVectorStore, ZepMemory } from "@getzep/zep-js/langchain"