Class WeaviateVectorStore.WeaviateVectorStoreConfig.Builder
java.lang.Object
org.springframework.ai.vectorstore.WeaviateVectorStore.WeaviateVectorStoreConfig.Builder
- Enclosing class:
WeaviateVectorStore.WeaviateVectorStoreConfig
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns the immutable configuration.withApiKey
(String apiKey) Weaviate api key.withConsistencyLevel
(WeaviateVectorStore.WeaviateVectorStoreConfig.ConsistentLevel consistencyLevel) Weaviate consistencyLevel.withFilterableMetadataFields
(List<WeaviateVectorStore.WeaviateVectorStoreConfig.MetadataField> filterMetadataFields) Weaviate known, filterable metadata fields.withHeaders
(Map<String, String> headers) Weaviate config headers.Weaviate host.withObjectClass
(String objectClass) Weaviate objectClass.withScheme
(String scheme) Weaviate scheme.
-
Method Details
-
withApiKey
Weaviate api key.- Parameters:
apiKey
- key to use.- Returns:
- this builder.
-
withScheme
Weaviate scheme.- Parameters:
scheme
- scheme to use.- Returns:
- this builder.
-
withHost
Weaviate host.- Parameters:
host
- host to use.- Returns:
- this builder.
-
withFilterableMetadataFields
public WeaviateVectorStore.WeaviateVectorStoreConfig.Builder withFilterableMetadataFields(List<WeaviateVectorStore.WeaviateVectorStoreConfig.MetadataField> filterMetadataFields) Weaviate known, filterable metadata fields.- Parameters:
filterMetadataFields
- known metadata fields to use.- Returns:
- this builder.
-
withHeaders
public WeaviateVectorStore.WeaviateVectorStoreConfig.Builder withHeaders(Map<String, String> headers) Weaviate config headers.- Parameters:
headers
- config headers to use.- Returns:
- this builder.
-
withObjectClass
Weaviate objectClass.- Parameters:
objectClass
- objectClass to use.- Returns:
- this builder.
-
withConsistencyLevel
public WeaviateVectorStore.WeaviateVectorStoreConfig.Builder withConsistencyLevel(WeaviateVectorStore.WeaviateVectorStoreConfig.ConsistentLevel consistencyLevel) Weaviate consistencyLevel.- Parameters:
consistencyLevel
- consistencyLevel to use.- Returns:
- this builder.
-
build
Returns the immutable configuration.- Returns:
- the immutable configuration
-