class MyScaleStoreClass for interacting with the MyScale database. It extends the VectorStore class and provides methods for adding vectors and documents, searching for similar vectors, and creating instances from texts or documents.
Embeddings 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 to add documents to the MyScale database.
Method to add vectors to the MyScale database.
Creates a VectorStoreRetriever instance with flexible configuration options.
Deletes documents from the vector store based on the specified parameters.
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 to search for vectors that are similar to a given query vector.
Searches for documents similar to a text query by embedding the query, and returns results with similarity scores.
Static method to create an instance of MyScaleStore from documents.
Static method to create an instance of MyScaleStore from an existing index.
Static method to create an instance of MyScaleStore from texts.
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.