Class QdrantEmbeddingStore

java.lang.Object
dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore
All Implemented Interfaces:
EmbeddingStore<TextSegment>

public class QdrantEmbeddingStore extends Object implements EmbeddingStore<TextSegment>
Represents a Qdrant collection as an embedding store. With support for storing Metadata.
  • Constructor Details

    • QdrantEmbeddingStore

      public QdrantEmbeddingStore(String collectionName, String host, int port, boolean useTls, String payloadTextKey, @Nullable String apiKey)
      Parameters:
      collectionName - The name of the Qdrant collection.
      host - The host of the Qdrant instance.
      port - The GRPC port of the Qdrant instance.
      useTls - Whether to use TLS(HTTPS).
      payloadTextKey - The field name of the text segment in the Qdrant payload.
      apiKey - The Qdrant API key to authenticate with.
    • QdrantEmbeddingStore

      public QdrantEmbeddingStore(io.qdrant.client.QdrantClient client, String collectionName, String payloadTextKey)
      Parameters:
      client - A Qdrant client instance.
      collectionName - The name of the Qdrant collection.
      payloadTextKey - The field name of the text segment in the Qdrant payload.
  • Method Details