Interface KnowledgeBaseConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<KnowledgeBaseConfiguration.Builder,
,KnowledgeBaseConfiguration> SdkBuilder<KnowledgeBaseConfiguration.Builder,
,KnowledgeBaseConfiguration> SdkPojo
- Enclosing class:
KnowledgeBaseConfiguration
public static interface KnowledgeBaseConfiguration.Builder
extends SdkPojo, CopyableBuilder<KnowledgeBaseConfiguration.Builder,KnowledgeBaseConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionThe type of data that the data source is converted into for the knowledge base.type
(KnowledgeBaseType type) The type of data that the data source is converted into for the knowledge base.vectorKnowledgeBaseConfiguration
(Consumer<VectorKnowledgeBaseConfiguration.Builder> vectorKnowledgeBaseConfiguration) Contains details about the embeddings model that'sused to convert the data source.vectorKnowledgeBaseConfiguration
(VectorKnowledgeBaseConfiguration vectorKnowledgeBaseConfiguration) Contains details about the embeddings model that'sused to convert the data source.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
type
The type of data that the data source is converted into for the knowledge base.
- Parameters:
type
- The type of data that the data source is converted into for the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of data that the data source is converted into for the knowledge base.
- Parameters:
type
- The type of data that the data source is converted into for the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vectorKnowledgeBaseConfiguration
KnowledgeBaseConfiguration.Builder vectorKnowledgeBaseConfiguration(VectorKnowledgeBaseConfiguration vectorKnowledgeBaseConfiguration) Contains details about the embeddings model that'sused to convert the data source.
- Parameters:
vectorKnowledgeBaseConfiguration
- Contains details about the embeddings model that'sused to convert the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vectorKnowledgeBaseConfiguration
default KnowledgeBaseConfiguration.Builder vectorKnowledgeBaseConfiguration(Consumer<VectorKnowledgeBaseConfiguration.Builder> vectorKnowledgeBaseConfiguration) Contains details about the embeddings model that'sused to convert the data source.
This is a convenience method that creates an instance of theVectorKnowledgeBaseConfiguration.Builder
avoiding the need to create one manually viaVectorKnowledgeBaseConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovectorKnowledgeBaseConfiguration(VectorKnowledgeBaseConfiguration)
.- Parameters:
vectorKnowledgeBaseConfiguration
- a consumer that will call methods onVectorKnowledgeBaseConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-