Class QdrantVectorStore.QdrantVectorStoreConfig.Builder
java.lang.Object
org.springframework.ai.vectorstore.qdrant.QdrantVectorStore.QdrantVectorStoreConfig.Builder
- Enclosing class:
QdrantVectorStore.QdrantVectorStoreConfig
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns the immutable configuration.withApiKey
(String apiKey) withCollectionName
(String collectionName) withPort
(int port) withTls
(boolean useTls)
-
Method Details
-
withHost
- Parameters:
host
- The host of the Qdrant instance. Defaults to "localhost".
-
withCollectionName
- Parameters:
collectionName
- REQUIRED. The name of the collection.
-
withPort
- Parameters:
port
- The GRPC port of the Qdrant instance. Defaults to 6334.- Returns:
-
withTls
- Parameters:
useTls
- Whether to use TLS(HTTPS). Defaults to false.- Returns:
-
withApiKey
- Parameters:
apiKey
- The Qdrant API key to authenticate with. Defaults to null.
-
build
Returns the immutable configuration.- Returns:
- the immutable configuration
-