Class KnowledgeBaseFlowNodeConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagent.model.KnowledgeBaseFlowNodeConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<KnowledgeBaseFlowNodeConfiguration.Builder,KnowledgeBaseFlowNodeConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class KnowledgeBaseFlowNodeConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<KnowledgeBaseFlowNodeConfiguration.Builder,KnowledgeBaseFlowNodeConfiguration>
Contains configurations for a knowledge base node in a flow. This node takes a query as the input and returns, as the output, the retrieved responses directly (as an array) or a response generated based on the retrieved responses. For more information, see Node types in a flow in the Amazon Bedrock User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceKnowledgeBaseFlowNodeConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KnowledgeBaseFlowNodeConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)GuardrailConfigurationguardrailConfiguration()Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration.inthashCode()PromptInferenceConfigurationinferenceConfiguration()Contains inference configurations for the prompt.StringknowledgeBaseId()The unique identifier of the knowledge base to query.StringmodelId()The unique identifier of the model or inference profile to use to generate a response from the query results.IntegernumberOfResults()The number of results to retrieve from the knowledge base.KnowledgeBaseOrchestrationConfigurationorchestrationConfiguration()The configuration for orchestrating the retrieval and generation process in the knowledge base node.KnowledgeBasePromptTemplatepromptTemplate()A custom prompt template to use with the knowledge base for generating responses.VectorSearchRerankingConfigurationrerankingConfiguration()The configuration for reranking the retrieved results from the knowledge base to improve relevance.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends KnowledgeBaseFlowNodeConfiguration.Builder>serializableBuilderClass()KnowledgeBaseFlowNodeConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
knowledgeBaseId
public final String knowledgeBaseId()
The unique identifier of the knowledge base to query.
- Returns:
- The unique identifier of the knowledge base to query.
-
modelId
public final 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.
- Returns:
- 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.
-
guardrailConfiguration
public final GuardrailConfiguration guardrailConfiguration()
Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration.
- Returns:
- Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration.
-
numberOfResults
public final Integer numberOfResults()
The number of results to retrieve from the knowledge base.
- Returns:
- The number of results to retrieve from the knowledge base.
-
promptTemplate
public final KnowledgeBasePromptTemplate promptTemplate()
A custom prompt template to use with the knowledge base for generating responses.
- Returns:
- A custom prompt template to use with the knowledge base for generating responses.
-
inferenceConfiguration
public final PromptInferenceConfiguration inferenceConfiguration()
Contains inference configurations for the prompt.
- Returns:
- Contains inference configurations for the prompt.
-
rerankingConfiguration
public final VectorSearchRerankingConfiguration rerankingConfiguration()
The configuration for reranking the retrieved results from the knowledge base to improve relevance.
- Returns:
- The configuration for reranking the retrieved results from the knowledge base to improve relevance.
-
orchestrationConfiguration
public final KnowledgeBaseOrchestrationConfiguration orchestrationConfiguration()
The configuration for orchestrating the retrieval and generation process in the knowledge base node.
- Returns:
- The configuration for orchestrating the retrieval and generation process in the knowledge base node.
-
toBuilder
public KnowledgeBaseFlowNodeConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<KnowledgeBaseFlowNodeConfiguration.Builder,KnowledgeBaseFlowNodeConfiguration>
-
builder
public static KnowledgeBaseFlowNodeConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends KnowledgeBaseFlowNodeConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-