Interface RetrieveAndGenerateConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RetrieveAndGenerateConfiguration.Builder,RetrieveAndGenerateConfiguration>,SdkBuilder<RetrieveAndGenerateConfiguration.Builder,RetrieveAndGenerateConfiguration>,SdkPojo
- Enclosing class:
- RetrieveAndGenerateConfiguration
@Mutable @NotThreadSafe public static interface RetrieveAndGenerateConfiguration.Builder extends SdkPojo, CopyableBuilder<RetrieveAndGenerateConfiguration.Builder,RetrieveAndGenerateConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RetrieveAndGenerateConfiguration.BuilderexternalSourcesConfiguration(Consumer<ExternalSourcesRetrieveAndGenerateConfiguration.Builder> externalSourcesConfiguration)The configuration for the external source wrapper object in theretrieveAndGeneratefunction.RetrieveAndGenerateConfiguration.BuilderexternalSourcesConfiguration(ExternalSourcesRetrieveAndGenerateConfiguration externalSourcesConfiguration)The configuration for the external source wrapper object in theretrieveAndGeneratefunction.default RetrieveAndGenerateConfiguration.BuilderknowledgeBaseConfiguration(Consumer<KnowledgeBaseRetrieveAndGenerateConfiguration.Builder> knowledgeBaseConfiguration)Contains details about the knowledge base for retrieving information and generating responses.RetrieveAndGenerateConfiguration.BuilderknowledgeBaseConfiguration(KnowledgeBaseRetrieveAndGenerateConfiguration knowledgeBaseConfiguration)Contains details about the knowledge base for retrieving information and generating responses.RetrieveAndGenerateConfiguration.Buildertype(String type)The type of resource that contains your data for retrieving information and generating responses.RetrieveAndGenerateConfiguration.Buildertype(RetrieveAndGenerateType type)The type of resource that contains your data for retrieving information and generating responses.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
externalSourcesConfiguration
RetrieveAndGenerateConfiguration.Builder externalSourcesConfiguration(ExternalSourcesRetrieveAndGenerateConfiguration externalSourcesConfiguration)
The configuration for the external source wrapper object in the
retrieveAndGeneratefunction.- Parameters:
externalSourcesConfiguration- The configuration for the external source wrapper object in theretrieveAndGeneratefunction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
externalSourcesConfiguration
default RetrieveAndGenerateConfiguration.Builder externalSourcesConfiguration(Consumer<ExternalSourcesRetrieveAndGenerateConfiguration.Builder> externalSourcesConfiguration)
The configuration for the external source wrapper object in the
This is a convenience method that creates an instance of theretrieveAndGeneratefunction.ExternalSourcesRetrieveAndGenerateConfiguration.Builderavoiding the need to create one manually viaExternalSourcesRetrieveAndGenerateConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexternalSourcesConfiguration(ExternalSourcesRetrieveAndGenerateConfiguration).- Parameters:
externalSourcesConfiguration- a consumer that will call methods onExternalSourcesRetrieveAndGenerateConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
externalSourcesConfiguration(ExternalSourcesRetrieveAndGenerateConfiguration)
-
knowledgeBaseConfiguration
RetrieveAndGenerateConfiguration.Builder knowledgeBaseConfiguration(KnowledgeBaseRetrieveAndGenerateConfiguration knowledgeBaseConfiguration)
Contains details about the knowledge base for retrieving information and generating responses.
- Parameters:
knowledgeBaseConfiguration- Contains details about the knowledge base for retrieving information and generating responses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseConfiguration
default RetrieveAndGenerateConfiguration.Builder knowledgeBaseConfiguration(Consumer<KnowledgeBaseRetrieveAndGenerateConfiguration.Builder> knowledgeBaseConfiguration)
Contains details about the knowledge base for retrieving information and generating responses.
This is a convenience method that creates an instance of theKnowledgeBaseRetrieveAndGenerateConfiguration.Builderavoiding the need to create one manually viaKnowledgeBaseRetrieveAndGenerateConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toknowledgeBaseConfiguration(KnowledgeBaseRetrieveAndGenerateConfiguration).- Parameters:
knowledgeBaseConfiguration- a consumer that will call methods onKnowledgeBaseRetrieveAndGenerateConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
knowledgeBaseConfiguration(KnowledgeBaseRetrieveAndGenerateConfiguration)
-
type
RetrieveAndGenerateConfiguration.Builder type(String type)
The type of resource that contains your data for retrieving information and generating responses.
If you choose to use
EXTERNAL_SOURCES, then currently only Anthropic Claude 3 Sonnet models for knowledge bases are supported.- Parameters:
type- The type of resource that contains your data for retrieving information and generating responses.If you choose to use
EXTERNAL_SOURCES, then currently only Anthropic Claude 3 Sonnet models for knowledge bases are supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RetrieveAndGenerateType,RetrieveAndGenerateType
-
type
RetrieveAndGenerateConfiguration.Builder type(RetrieveAndGenerateType type)
The type of resource that contains your data for retrieving information and generating responses.
If you choose to use
EXTERNAL_SOURCES, then currently only Anthropic Claude 3 Sonnet models for knowledge bases are supported.- Parameters:
type- The type of resource that contains your data for retrieving information and generating responses.If you choose to use
EXTERNAL_SOURCES, then currently only Anthropic Claude 3 Sonnet models for knowledge bases are supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RetrieveAndGenerateType,RetrieveAndGenerateType
-
-