class VoyVectorStoreClass that extends VectorStore. It allows to perform similarity search using
Voi similarity search engine. The class requires passing Voy Client as an input parameter.
Embeddings interface for generating vector embeddings from text queries, enabling vector-based similarity searches.
Defines the filter type used in search and delete operations. Can be an object for structured conditions or a string for simpler filtering.
Returns a string representing the type of vector store, which subclasses must implement to identify their specific vector storage type.
Adds documents to the Voy database. The documents are embedded using embeddings provided while instantiating the class.
Adds vectors to the Voy database. The vectors are associated with the provided documents.
Creates a VectorStoreRetriever instance with flexible configuration options.
Method to delete data from the Voy index. It can delete data based on specific IDs or a filter.
Return documents selected using the maximal marginal relevance. Maximal marginal relevance optimizes for similarity to the query AND diversity among selected documents.
Searches for documents similar to a text query by embedding the query and performing a similarity search on the resulting vector.
Searches for vectors in the Voy database that are similar to the provided query vector.
Searches for documents similar to a text query by embedding the query, and returns results with similarity scores.
Creates a new VoyVectorStore instance from an array of Document instances.
The documents are added to the Voy database.
Creates a new VoyVectorStore instance from an array of text strings. The text
strings are converted to Document instances and added to the Voy
database.
The name of the serializable. Override to provide an alias or to preserve the serialized module name in minified environments.
Implemented as a static method to support loading logic.