Interface KnowledgeBaseFlowNodeConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<KnowledgeBaseFlowNodeConfiguration.Builder,KnowledgeBaseFlowNodeConfiguration>,SdkBuilder<KnowledgeBaseFlowNodeConfiguration.Builder,KnowledgeBaseFlowNodeConfiguration>,SdkPojo
- Enclosing class:
- KnowledgeBaseFlowNodeConfiguration
@Mutable @NotThreadSafe public static interface KnowledgeBaseFlowNodeConfiguration.Builder extends SdkPojo, CopyableBuilder<KnowledgeBaseFlowNodeConfiguration.Builder,KnowledgeBaseFlowNodeConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default KnowledgeBaseFlowNodeConfiguration.BuilderguardrailConfiguration(Consumer<GuardrailConfiguration.Builder> guardrailConfiguration)Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration.KnowledgeBaseFlowNodeConfiguration.BuilderguardrailConfiguration(GuardrailConfiguration guardrailConfiguration)Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration.default KnowledgeBaseFlowNodeConfiguration.BuilderinferenceConfiguration(Consumer<PromptInferenceConfiguration.Builder> inferenceConfiguration)Contains inference configurations for the prompt.KnowledgeBaseFlowNodeConfiguration.BuilderinferenceConfiguration(PromptInferenceConfiguration inferenceConfiguration)Contains inference configurations for the prompt.KnowledgeBaseFlowNodeConfiguration.BuilderknowledgeBaseId(String knowledgeBaseId)The unique identifier of the knowledge base to query.KnowledgeBaseFlowNodeConfiguration.BuildermodelId(String modelId)The unique identifier of the model or inference profile to use to generate a response from the query results.KnowledgeBaseFlowNodeConfiguration.BuildernumberOfResults(Integer numberOfResults)The number of results to retrieve from the knowledge base.default KnowledgeBaseFlowNodeConfiguration.BuilderorchestrationConfiguration(Consumer<KnowledgeBaseOrchestrationConfiguration.Builder> orchestrationConfiguration)The configuration for orchestrating the retrieval and generation process in the knowledge base node.KnowledgeBaseFlowNodeConfiguration.BuilderorchestrationConfiguration(KnowledgeBaseOrchestrationConfiguration orchestrationConfiguration)The configuration for orchestrating the retrieval and generation process in the knowledge base node.default KnowledgeBaseFlowNodeConfiguration.BuilderpromptTemplate(Consumer<KnowledgeBasePromptTemplate.Builder> promptTemplate)A custom prompt template to use with the knowledge base for generating responses.KnowledgeBaseFlowNodeConfiguration.BuilderpromptTemplate(KnowledgeBasePromptTemplate promptTemplate)A custom prompt template to use with the knowledge base for generating responses.default KnowledgeBaseFlowNodeConfiguration.BuilderrerankingConfiguration(Consumer<VectorSearchRerankingConfiguration.Builder> rerankingConfiguration)The configuration for reranking the retrieved results from the knowledge base to improve relevance.KnowledgeBaseFlowNodeConfiguration.BuilderrerankingConfiguration(VectorSearchRerankingConfiguration rerankingConfiguration)The configuration for reranking the retrieved results from the knowledge base to improve relevance.-
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
-
knowledgeBaseId
KnowledgeBaseFlowNodeConfiguration.Builder knowledgeBaseId(String knowledgeBaseId)
The unique identifier of the knowledge base to query.
- Parameters:
knowledgeBaseId- The unique identifier of the knowledge base to query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelId
KnowledgeBaseFlowNodeConfiguration.Builder modelId(String modelId)
The unique identifier of the model or inference profile to use to generate a response from the query results. Omit this field if you want to return the retrieved results as an array.
- Parameters:
modelId- The unique identifier of the model or inference profile to use to generate a response from the query results. Omit this field if you want to return the retrieved results as an array.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailConfiguration
KnowledgeBaseFlowNodeConfiguration.Builder guardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration.
- Parameters:
guardrailConfiguration- Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailConfiguration
default KnowledgeBaseFlowNodeConfiguration.Builder guardrailConfiguration(Consumer<GuardrailConfiguration.Builder> guardrailConfiguration)
Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration.
This is a convenience method that creates an instance of theGuardrailConfiguration.Builderavoiding the need to create one manually viaGuardrailConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toguardrailConfiguration(GuardrailConfiguration).- Parameters:
guardrailConfiguration- a consumer that will call methods onGuardrailConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
guardrailConfiguration(GuardrailConfiguration)
-
numberOfResults
KnowledgeBaseFlowNodeConfiguration.Builder numberOfResults(Integer numberOfResults)
The number of results to retrieve from the knowledge base.
- Parameters:
numberOfResults- The number of results to retrieve from the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptTemplate
KnowledgeBaseFlowNodeConfiguration.Builder promptTemplate(KnowledgeBasePromptTemplate promptTemplate)
A custom prompt template to use with the knowledge base for generating responses.
- Parameters:
promptTemplate- A custom prompt template to use with the knowledge base for generating responses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptTemplate
default KnowledgeBaseFlowNodeConfiguration.Builder promptTemplate(Consumer<KnowledgeBasePromptTemplate.Builder> promptTemplate)
A custom prompt template to use with the knowledge base for generating responses.
This is a convenience method that creates an instance of theKnowledgeBasePromptTemplate.Builderavoiding the need to create one manually viaKnowledgeBasePromptTemplate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topromptTemplate(KnowledgeBasePromptTemplate).- Parameters:
promptTemplate- a consumer that will call methods onKnowledgeBasePromptTemplate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
promptTemplate(KnowledgeBasePromptTemplate)
-
inferenceConfiguration
KnowledgeBaseFlowNodeConfiguration.Builder inferenceConfiguration(PromptInferenceConfiguration inferenceConfiguration)
Contains inference configurations for the prompt.
- Parameters:
inferenceConfiguration- Contains inference configurations for the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceConfiguration
default KnowledgeBaseFlowNodeConfiguration.Builder inferenceConfiguration(Consumer<PromptInferenceConfiguration.Builder> inferenceConfiguration)
Contains inference configurations for the prompt.
This is a convenience method that creates an instance of thePromptInferenceConfiguration.Builderavoiding the need to create one manually viaPromptInferenceConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinferenceConfiguration(PromptInferenceConfiguration).- Parameters:
inferenceConfiguration- a consumer that will call methods onPromptInferenceConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
inferenceConfiguration(PromptInferenceConfiguration)
-
rerankingConfiguration
KnowledgeBaseFlowNodeConfiguration.Builder rerankingConfiguration(VectorSearchRerankingConfiguration rerankingConfiguration)
The configuration for reranking the retrieved results from the knowledge base to improve relevance.
- Parameters:
rerankingConfiguration- The configuration for reranking the retrieved results from the knowledge base to improve relevance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rerankingConfiguration
default KnowledgeBaseFlowNodeConfiguration.Builder rerankingConfiguration(Consumer<VectorSearchRerankingConfiguration.Builder> rerankingConfiguration)
The configuration for reranking the retrieved results from the knowledge base to improve relevance.
This is a convenience method that creates an instance of theVectorSearchRerankingConfiguration.Builderavoiding the need to create one manually viaVectorSearchRerankingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torerankingConfiguration(VectorSearchRerankingConfiguration).- Parameters:
rerankingConfiguration- a consumer that will call methods onVectorSearchRerankingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
rerankingConfiguration(VectorSearchRerankingConfiguration)
-
orchestrationConfiguration
KnowledgeBaseFlowNodeConfiguration.Builder orchestrationConfiguration(KnowledgeBaseOrchestrationConfiguration orchestrationConfiguration)
The configuration for orchestrating the retrieval and generation process in the knowledge base node.
- Parameters:
orchestrationConfiguration- The configuration for orchestrating the retrieval and generation process in the knowledge base node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
orchestrationConfiguration
default KnowledgeBaseFlowNodeConfiguration.Builder orchestrationConfiguration(Consumer<KnowledgeBaseOrchestrationConfiguration.Builder> orchestrationConfiguration)
The configuration for orchestrating the retrieval and generation process in the knowledge base node.
This is a convenience method that creates an instance of theKnowledgeBaseOrchestrationConfiguration.Builderavoiding the need to create one manually viaKnowledgeBaseOrchestrationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toorchestrationConfiguration(KnowledgeBaseOrchestrationConfiguration).- Parameters:
orchestrationConfiguration- a consumer that will call methods onKnowledgeBaseOrchestrationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
orchestrationConfiguration(KnowledgeBaseOrchestrationConfiguration)
-
-