Interface VectorSearchRerankingConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<VectorSearchRerankingConfiguration.Builder,
,VectorSearchRerankingConfiguration> SdkBuilder<VectorSearchRerankingConfiguration.Builder,
,VectorSearchRerankingConfiguration> SdkPojo
- Enclosing class:
VectorSearchRerankingConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionbedrockRerankingConfiguration
(Consumer<VectorSearchBedrockRerankingConfiguration.Builder> bedrockRerankingConfiguration) Configuration for using Amazon Bedrock foundation models to rerank search results.bedrockRerankingConfiguration
(VectorSearchBedrockRerankingConfiguration bedrockRerankingConfiguration) Configuration for using Amazon Bedrock foundation models to rerank search results.The type of reranking to apply to vector search results.The type of reranking to apply to vector search results.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 Details
-
type
The type of reranking to apply to vector search results. Currently, the only supported value is BEDROCK, which uses Amazon Bedrock foundation models for reranking.
- Parameters:
type
- The type of reranking to apply to vector search results. Currently, the only supported value is BEDROCK, which uses Amazon Bedrock foundation models for reranking.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of reranking to apply to vector search results. Currently, the only supported value is BEDROCK, which uses Amazon Bedrock foundation models for reranking.
- Parameters:
type
- The type of reranking to apply to vector search results. Currently, the only supported value is BEDROCK, which uses Amazon Bedrock foundation models for reranking.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bedrockRerankingConfiguration
VectorSearchRerankingConfiguration.Builder bedrockRerankingConfiguration(VectorSearchBedrockRerankingConfiguration bedrockRerankingConfiguration) Configuration for using Amazon Bedrock foundation models to rerank search results. This is required when the reranking type is set to BEDROCK.
- Parameters:
bedrockRerankingConfiguration
- Configuration for using Amazon Bedrock foundation models to rerank search results. This is required when the reranking type is set to BEDROCK.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bedrockRerankingConfiguration
default VectorSearchRerankingConfiguration.Builder bedrockRerankingConfiguration(Consumer<VectorSearchBedrockRerankingConfiguration.Builder> bedrockRerankingConfiguration) Configuration for using Amazon Bedrock foundation models to rerank search results. This is required when the reranking type is set to BEDROCK.
This is a convenience method that creates an instance of theVectorSearchBedrockRerankingConfiguration.Builder
avoiding the need to create one manually viaVectorSearchBedrockRerankingConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobedrockRerankingConfiguration(VectorSearchBedrockRerankingConfiguration)
.- Parameters:
bedrockRerankingConfiguration
- a consumer that will call methods onVectorSearchBedrockRerankingConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-