Class that extends the VectorStore base class. It provides methods to
interact with a Weaviate index, including adding vectors and documents,
deleting data, and performing similarity searches.
class WeaviateStoreReturns 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 Weaviate index. It first generates vectors for the documents using the embeddings, then adds the vectors and documents to the index.
Method to add vectors and corresponding documents to the Weaviate index.
Creates a VectorStoreRetriever instance with flexible configuration options.
Method to delete data from the Weaviate index. It can delete data based on specific IDs or a filter.
Weaviate's Retrieval Augmented Generation (RAG) combines information retrieval with generative AI models. It first performs the search, then passes both the search results and your prompt to a generative AI model before returning the generated response.
Hybrid search combines the results of a vector search and a keyword (BM25F) search by fusing the two result sets.
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 perform a similarity search on the stored vectors in the Weaviate index. It returns the top k most similar documents and their similarity scores.
Method to perform a similarity search on the stored vectors in the Weaviate index. It returns the top k most similar documents, their similarity scores and embedding vectors.
Searches for documents similar to a text query by embedding the query, and returns results with similarity scores.
Static method to create a new WeaviateStore instance from a list of
documents. It adds the documents to the Weaviate index.
Static method to create a new WeaviateStore instance from an existing
Weaviate index.
Static method to create a new WeaviateStore instance from a list of
texts. It first creates documents from the texts and metadata, then
adds the documents to the Weaviate index.
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.