Interface RetrieveAndGenerateConfiguration.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<RetrieveAndGenerateConfiguration.Builder,RetrieveAndGenerateConfiguration>
,SdkBuilder<RetrieveAndGenerateConfiguration.Builder,RetrieveAndGenerateConfiguration>
,SdkPojo
- Enclosing class:
- RetrieveAndGenerateConfiguration
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.Builder
externalSourcesConfiguration(Consumer<ExternalSourcesRetrieveAndGenerateConfiguration.Builder> externalSourcesConfiguration)
The configuration for the external source wrapper object in theretrieveAndGenerate
function.RetrieveAndGenerateConfiguration.Builder
externalSourcesConfiguration(ExternalSourcesRetrieveAndGenerateConfiguration externalSourcesConfiguration)
The configuration for the external source wrapper object in theretrieveAndGenerate
function.default RetrieveAndGenerateConfiguration.Builder
knowledgeBaseConfiguration(Consumer<KnowledgeBaseRetrieveAndGenerateConfiguration.Builder> knowledgeBaseConfiguration)
Contains details about the knowledge base for retrieving information and generating responses.RetrieveAndGenerateConfiguration.Builder
knowledgeBaseConfiguration(KnowledgeBaseRetrieveAndGenerateConfiguration knowledgeBaseConfiguration)
Contains details about the knowledge base for retrieving information and generating responses.RetrieveAndGenerateConfiguration.Builder
type(String type)
The type of resource that contains your data for retrieving information and generating responses.RetrieveAndGenerateConfiguration.Builder
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 Detail
-
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:
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.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:
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 ot 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 ot 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:
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 ot 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 ot 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:
RetrieveAndGenerateType
,RetrieveAndGenerateType
-
-