Class that extends the VectorStore base class to interact with a
Qdrant database. It includes methods for adding documents and vectors
to the Qdrant database, searching for similar vectors, and ensuring the
existence of a collection in the database.
class QdrantVectorStoreEmbeddings 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 Qdrant database. It generates vectors
from the documents using the Embeddings instance and then adds the
vectors to the database.
Method to add vectors to the Qdrant database. Each vector is associated with a document, which is stored as the payload for a point in the database.
Creates a VectorStoreRetriever instance with flexible configuration options.
Method that deletes points from the Qdrant database.
Method to ensure the existence of a collection in the Qdrant database. If the collection does not exist, it is created.
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 in the Qdrant database that are similar to a given query vector. The search results include the score and payload (metadata and content) for each similar vector.
Searches for documents similar to a text query by embedding the query, and returns results with similarity scores.
Static method to create a QdrantVectorStore instance from Document
instances. The documents are added to the Qdrant database.
Static method to create a QdrantVectorStore instance from an existing
collection in the Qdrant database.
Static method to create a QdrantVectorStore instance from texts. Each
text is associated with metadata and converted to a Document
instance, which is then added to the Qdrant 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.