Interface BedrockFoundationModelContextEnrichmentConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<BedrockFoundationModelContextEnrichmentConfiguration.Builder,,BedrockFoundationModelContextEnrichmentConfiguration> SdkBuilder<BedrockFoundationModelContextEnrichmentConfiguration.Builder,,BedrockFoundationModelContextEnrichmentConfiguration> SdkPojo
- Enclosing class:
BedrockFoundationModelContextEnrichmentConfiguration
@Mutable
@NotThreadSafe
public static interface BedrockFoundationModelContextEnrichmentConfiguration.Builder
extends SdkPojo, CopyableBuilder<BedrockFoundationModelContextEnrichmentConfiguration.Builder,BedrockFoundationModelContextEnrichmentConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionenrichmentStrategyConfiguration(Consumer<EnrichmentStrategyConfiguration.Builder> enrichmentStrategyConfiguration) The enrichment stategy used to provide additional context.enrichmentStrategyConfiguration(EnrichmentStrategyConfiguration enrichmentStrategyConfiguration) The enrichment stategy used to provide additional context.The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
enrichmentStrategyConfiguration
BedrockFoundationModelContextEnrichmentConfiguration.Builder enrichmentStrategyConfiguration(EnrichmentStrategyConfiguration enrichmentStrategyConfiguration) The enrichment stategy used to provide additional context. For example, Neptune GraphRAG uses Amazon Bedrock foundation models to perform chunk entity extraction.
- Parameters:
enrichmentStrategyConfiguration- The enrichment stategy used to provide additional context. For example, Neptune GraphRAG uses Amazon Bedrock foundation models to perform chunk entity extraction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enrichmentStrategyConfiguration
default BedrockFoundationModelContextEnrichmentConfiguration.Builder enrichmentStrategyConfiguration(Consumer<EnrichmentStrategyConfiguration.Builder> enrichmentStrategyConfiguration) The enrichment stategy used to provide additional context. For example, Neptune GraphRAG uses Amazon Bedrock foundation models to perform chunk entity extraction.
This is a convenience method that creates an instance of theEnrichmentStrategyConfiguration.Builderavoiding the need to create one manually viaEnrichmentStrategyConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toenrichmentStrategyConfiguration(EnrichmentStrategyConfiguration).- Parameters:
enrichmentStrategyConfiguration- a consumer that will call methods onEnrichmentStrategyConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modelArn
The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.
- Parameters:
modelArn- The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-