Interface RetrieveAndGenerateConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RetrieveAndGenerateConfiguration.Builder,
,RetrieveAndGenerateConfiguration> SdkBuilder<RetrieveAndGenerateConfiguration.Builder,
,RetrieveAndGenerateConfiguration> SdkPojo
- Enclosing class:
RetrieveAndGenerateConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionexternalSourcesConfiguration
(Consumer<ExternalSourcesRetrieveAndGenerateConfiguration.Builder> externalSourcesConfiguration) The configuration for the external source wrapper object in theretrieveAndGenerate
function.externalSourcesConfiguration
(ExternalSourcesRetrieveAndGenerateConfiguration externalSourcesConfiguration) The configuration for the external source wrapper object in theretrieveAndGenerate
function.knowledgeBaseConfiguration
(Consumer<KnowledgeBaseRetrieveAndGenerateConfiguration.Builder> knowledgeBaseConfiguration) Contains configuration details for the knowledge base retrieval and response generation.knowledgeBaseConfiguration
(KnowledgeBaseRetrieveAndGenerateConfiguration knowledgeBaseConfiguration) Contains configuration details for the knowledge base retrieval and response generation.The type of resource that contains your data for retrieving information and generating responses.type
(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 Details
-
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 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 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:
-
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 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 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:
-
knowledgeBaseConfiguration
RetrieveAndGenerateConfiguration.Builder knowledgeBaseConfiguration(KnowledgeBaseRetrieveAndGenerateConfiguration knowledgeBaseConfiguration) Contains configuration details for the knowledge base retrieval and response generation.
- Parameters:
knowledgeBaseConfiguration
- Contains configuration details for the knowledge base retrieval and response generation.- 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 configuration details for the knowledge base retrieval and response generation.
This is a convenience method that creates an instance of theKnowledgeBaseRetrieveAndGenerateConfiguration.Builder
avoiding the need to create one manually viaKnowledgeBaseRetrieveAndGenerateConfiguration.builder()
.When the
Consumer
completes,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:
-
externalSourcesConfiguration
RetrieveAndGenerateConfiguration.Builder externalSourcesConfiguration(ExternalSourcesRetrieveAndGenerateConfiguration externalSourcesConfiguration) The configuration for the external source wrapper object in the
retrieveAndGenerate
function.- Parameters:
externalSourcesConfiguration
- The configuration for the external source wrapper object in theretrieveAndGenerate
function.- 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 theretrieveAndGenerate
function.ExternalSourcesRetrieveAndGenerateConfiguration.Builder
avoiding the need to create one manually viaExternalSourcesRetrieveAndGenerateConfiguration.builder()
.When the
Consumer
completes,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:
-