The ZepClient instance used to interact with Zep's API.
The Zep document collection.
A path to the module that contains the class, eg. ["langchain", "llms"] Usually should be the same as the entrypoint the class is exported from.
A map of aliases for constructor args. Keys are the attribute names, e.g. "foo". Values are the alias that will replace the key in serialization. This is used to eg. make argument names match Python.
A map of additional attributes to merge with constructor args. Keys are the attribute names, e.g. "foo". Values are the attribute values, which will be serialized. These attributes need to be accepted by the constructor as arguments.
The final serialized identifier for the module.
A map of secrets, which will be omitted from serialization. Keys are paths to the secret in constructor args, e.g. "foo.bar.baz". Values are the secret ids, which will be used when deserializing.
Adds documents to the collection. The documents are first embedded into vectors using the provided embedding model.
The documents to add.
Adds vectors and corresponding documents to the collection.
The vectors to add.
The corresponding documents to add.
Optional
kOrFields: number | Partial<VectorStoreRetrieverInput<ZepVectorStore>>Optional
filter: string | objectOptional
callbacks: CallbacksOptional
tags: string[]Optional
metadata: Record<string, unknown>Optional
verbose: booleanDeletes documents from the collection.
The list of Zep document UUIDs to delete.
Return documents selected using the maximal marginal relevance. Maximal marginal relevance optimizes for similarity to the query AND diversity among selected documents.
Text to look up documents similar to.
Performs a similarity search on the Zep collection.
The query string to search for.
Optional
k: number = 4The number of results to return. Defaults to 4.
Optional
filter: string | object = undefinedAn optional set of JSONPath filters to apply to the search.
Optional
_callbacks: Callbacks = undefinedOptional callbacks. Currently not implemented.
Performs a similarity search in the collection and returns the results with their scores.
The query vector.
The number of results to return.
Optional
filter: Record<string, unknown>The filter to apply to the search. Zep only supports Record<string, unknown> as filter.
Static
fromCreates a new ZepVectorStore instance from an array of Documents. Each Document is added to a Zep collection.
The Documents to add.
The embeddings to use for vectorizing the Document contents.
The configuration object for the Zep API.
Static
fromCreates a new ZepVectorStore instance from an array of texts. Each text is converted into a Document and added to the collection.
The texts to convert into Documents.
The metadata to associate with each Document. If an array is provided, each element is associated with the corresponding Document. If an object is provided, it is associated with all Documents.
The embeddings to use for vectorizing the texts.
The configuration object for the Zep API.
Static
lc_Generated using TypeDoc
ZepVectorStore is a VectorStore implementation that uses the Zep long-term memory store as a backend.
If the collection does not exist, it will be created automatically.
Requires
zep-js
to be installed: