Class representing a RedisVectorStore. It extends the VectorStore class and includes methods for adding documents and vectors, performing similarity searches, managing the index, and more.
class RedisVectorStoreEmbeddings interface for generating vector embeddings from text queries, enabling vector-based similarity searches.
Returns a string representing the type of vector store, which subclasses must implement to identify their specific vector storage type.
Method for adding documents to the RedisVectorStore. It first converts the documents to texts and then adds them as vectors.
Method for adding vectors to the RedisVectorStore. It checks if the index exists and creates it if it doesn't, then adds the vectors in batches.
Creates a VectorStoreRetriever instance with flexible configuration options.
Builds a query with custom metadata field filtering
Method for checking if an index exists in the RedisVectorStore.
Method for creating an index in the RedisVectorStore. If the index already exists, it does nothing.
Deletes vectors from the vector store.
Supports two deletion modes:
Method for dropping an index from the RedisVectorStore.
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.
Method for performing a similarity search in the RedisVectorStore. It returns the documents and their scores.
Method for performing a similarity search with custom metadata filtering. Uses the custom schema fields for efficient filtering.
Searches for documents similar to a text query by embedding the query, and returns results with similarity scores.
Static method for creating a new instance of RedisVectorStore from documents. It adds the documents to the RedisVectorStore.
Static method for creating a new instance of RedisVectorStore from texts. It creates documents from the texts and metadata, then adds them to the RedisVectorStore.
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.