class MomentoVectorIndexA vector store that uses the Momento Vector Index.
To sign up for a free Momento account, visit https://console.gomomento.com.
Creates a new MomentoVectorIndex instance.
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 vectors to the index. Generates embeddings from the documents
using the Embeddings instance passed to the constructor.
Adds vectors to the index.
Creates a VectorStoreRetriever instance with flexible configuration options.
Deletes vectors from the index by id.
Returns the Momento Vector Index client.
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 the index for the most similar vectors to the query vector.
Searches for documents similar to a text query by embedding the query, and returns results with similarity scores.
Stores the documents in the index.
Stores the documents in the index.
Converts the documents to vectors using the Embeddings instance passed.
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.