The ZepClient instance used to interact with Zep's API.
The Zep document collection.
Adds vectors and corresponding documents to the collection.
The vectors to add.
The corresponding documents to add.
Deletes 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: unknown = undefinedAn optional set of JSONPath filters to apply to the search.
Optional
_callbacks: any = 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.
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: