Optional collectionMethod 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.
Array of Document instances to be added to the Qdrant database.
Optional documentOptions: QdrantAddDocumentOptionsOptional QdrantAddDocumentOptions which has a list of JSON objects for extra querying
Promise that resolves when the documents have been added 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.
Array of vectors to be added to the Qdrant database.
Array of Document instances associated with the vectors.
Optional documentOptions: QdrantAddDocumentOptionsOptional QdrantAddDocumentOptions which has a list of JSON objects for extra querying
Promise that resolves when the vectors have been added to the database.
Return documents selected using the maximal marginal relevance. Maximal marginal relevance optimizes for similarity to the query AND diversity among selected documents.
Text to look up documents similar to.
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.
Query vector to search for similar vectors in the Qdrant database.
Optional k: numberOptional number of similar vectors to return. If not specified, all similar vectors are returned.
Optional filter: {}Optional filter to apply to the search results.
Promise that resolves with an array of tuples, where each tuple includes a Document instance and a score for a similar vector.
Static fromStatic method to create a QdrantVectorStore instance from Document
instances. The documents are added to the Qdrant database.
Array of Document instances to be added to the Qdrant database.
Embeddings instance used to generate vectors from the documents.
QdrantLibArgs instance specifying the configuration for the Qdrant database.
Promise that resolves with a new QdrantVectorStore instance.
Static fromStatic method to create a QdrantVectorStore instance from an existing
collection in the Qdrant database.
Embeddings instance used to generate vectors from the documents in the collection.
QdrantLibArgs instance specifying the configuration for the Qdrant database.
Promise that resolves with a new QdrantVectorStore instance.
Static fromStatic 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.
Array of texts to be converted to Document instances and added to the Qdrant database.
Array or single object of metadata to be associated with the texts.
Embeddings instance used to generate vectors from the texts.
QdrantLibArgs instance specifying the configuration for the Qdrant database.
Promise that resolves with a new QdrantVectorStore instance.
Generated using TypeDoc
Class that extends the
VectorStorebase 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.