Interface KnowledgeBaseRetrieveAndGenerateConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<KnowledgeBaseRetrieveAndGenerateConfiguration.Builder,KnowledgeBaseRetrieveAndGenerateConfiguration>,SdkBuilder<KnowledgeBaseRetrieveAndGenerateConfiguration.Builder,KnowledgeBaseRetrieveAndGenerateConfiguration>,SdkPojo
- Enclosing class:
- KnowledgeBaseRetrieveAndGenerateConfiguration
public static interface KnowledgeBaseRetrieveAndGenerateConfiguration.Builder extends SdkPojo, CopyableBuilder<KnowledgeBaseRetrieveAndGenerateConfiguration.Builder,KnowledgeBaseRetrieveAndGenerateConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description KnowledgeBaseRetrieveAndGenerateConfiguration.BuilderknowledgeBaseId(String knowledgeBaseId)The unique identifier of the knowledge base that is queried and the foundation model used for generation.KnowledgeBaseRetrieveAndGenerateConfiguration.BuildermodelArn(String modelArn)The ARN of the foundation model used to generate a response.default KnowledgeBaseRetrieveAndGenerateConfiguration.BuilderretrievalConfiguration(Consumer<KnowledgeBaseRetrievalConfiguration.Builder> retrievalConfiguration)Contains configurations for how to retrieve and return the knowledge base query.KnowledgeBaseRetrieveAndGenerateConfiguration.BuilderretrievalConfiguration(KnowledgeBaseRetrievalConfiguration retrievalConfiguration)Contains configurations for how to retrieve and return the knowledge base query.-
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 Detail
-
knowledgeBaseId
KnowledgeBaseRetrieveAndGenerateConfiguration.Builder knowledgeBaseId(String knowledgeBaseId)
The unique identifier of the knowledge base that is queried and the foundation model used for generation.
- Parameters:
knowledgeBaseId- The unique identifier of the knowledge base that is queried and the foundation model used for generation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelArn
KnowledgeBaseRetrieveAndGenerateConfiguration.Builder modelArn(String modelArn)
The ARN of the foundation model used to generate a response.
- Parameters:
modelArn- The ARN of the foundation model used to generate a response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievalConfiguration
KnowledgeBaseRetrieveAndGenerateConfiguration.Builder retrievalConfiguration(KnowledgeBaseRetrievalConfiguration retrievalConfiguration)
Contains configurations for how to retrieve and return the knowledge base query.
- Parameters:
retrievalConfiguration- Contains configurations for how to retrieve and return the knowledge base query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievalConfiguration
default KnowledgeBaseRetrieveAndGenerateConfiguration.Builder retrievalConfiguration(Consumer<KnowledgeBaseRetrievalConfiguration.Builder> retrievalConfiguration)
Contains configurations for how to retrieve and return the knowledge base query.
This is a convenience method that creates an instance of theKnowledgeBaseRetrievalConfiguration.Builderavoiding the need to create one manually viaKnowledgeBaseRetrievalConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretrievalConfiguration(KnowledgeBaseRetrievalConfiguration).- Parameters:
retrievalConfiguration- a consumer that will call methods onKnowledgeBaseRetrievalConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
retrievalConfiguration(KnowledgeBaseRetrievalConfiguration)
-
-