Interface ManagedSearchConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ManagedSearchConfiguration.Builder,,ManagedSearchConfiguration> SdkBuilder<ManagedSearchConfiguration.Builder,,ManagedSearchConfiguration> SdkPojo
- Enclosing class:
ManagedSearchConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionfilter(Consumer<RetrievalFilter.Builder> filter) Filters the metadata of the retrieved results so that Amazon Bedrock returns only results that match the filter.filter(RetrievalFilter filter) Filters the metadata of the retrieved results so that Amazon Bedrock returns only results that match the filter.numberOfResults(Integer numberOfResults) The number of results to retrieve.rerankingConfiguration(Consumer<ManagedSearchRerankingConfiguration.Builder> rerankingConfiguration) Contains configurations for reranking the results retrieved from the managed search.rerankingConfiguration(ManagedSearchRerankingConfiguration rerankingConfiguration) Contains configurations for reranking the results retrieved from the managed search.rerankingModelType(String rerankingModelType) The type of reranking model to use when reranking results retrieved from the managed search.rerankingModelType(RerankingModelType rerankingModelType) The type of reranking model to use when reranking results retrieved from the managed search.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
-
filter
Filters the metadata of the retrieved results so that Amazon Bedrock returns only results that match the filter.
- Parameters:
filter- Filters the metadata of the retrieved results so that Amazon Bedrock returns only results that match the filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
Filters the metadata of the retrieved results so that Amazon Bedrock returns only results that match the filter.
This is a convenience method that creates an instance of theRetrievalFilter.Builderavoiding the need to create one manually viaRetrievalFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilter(RetrievalFilter).- Parameters:
filter- a consumer that will call methods onRetrievalFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
numberOfResults
The number of results to retrieve.
- Parameters:
numberOfResults- The number of results to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rerankingConfiguration
ManagedSearchConfiguration.Builder rerankingConfiguration(ManagedSearchRerankingConfiguration rerankingConfiguration) Contains configurations for reranking the results retrieved from the managed search.
- Parameters:
rerankingConfiguration- Contains configurations for reranking the results retrieved from the managed search.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rerankingConfiguration
default ManagedSearchConfiguration.Builder rerankingConfiguration(Consumer<ManagedSearchRerankingConfiguration.Builder> rerankingConfiguration) Contains configurations for reranking the results retrieved from the managed search.
This is a convenience method that creates an instance of theManagedSearchRerankingConfiguration.Builderavoiding the need to create one manually viaManagedSearchRerankingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torerankingConfiguration(ManagedSearchRerankingConfiguration).- Parameters:
rerankingConfiguration- a consumer that will call methods onManagedSearchRerankingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rerankingModelType
The type of reranking model to use when reranking results retrieved from the managed search. Use
CUSTOMto specify a model,MANAGEDto use the service default, orNONEto disable reranking.- Parameters:
rerankingModelType- The type of reranking model to use when reranking results retrieved from the managed search. UseCUSTOMto specify a model,MANAGEDto use the service default, orNONEto disable reranking.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rerankingModelType
The type of reranking model to use when reranking results retrieved from the managed search. Use
CUSTOMto specify a model,MANAGEDto use the service default, orNONEto disable reranking.- Parameters:
rerankingModelType- The type of reranking model to use when reranking results retrieved from the managed search. UseCUSTOMto specify a model,MANAGEDto use the service default, orNONEto disable reranking.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-