Interface RerankRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BedrockAgentRuntimeRequest.Builder
,Buildable
,CopyableBuilder<RerankRequest.Builder,
,RerankRequest> SdkBuilder<RerankRequest.Builder,
,RerankRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
RerankRequest
-
Method Summary
Modifier and TypeMethodDescriptionIf the total number of results was greater than could fit in a response, a token is returned in thenextToken
field.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.queries
(Collection<RerankQuery> queries) An array of objects, each of which contains information about a query to submit to the reranker model.queries
(Consumer<RerankQuery.Builder>... queries) An array of objects, each of which contains information about a query to submit to the reranker model.queries
(RerankQuery... queries) An array of objects, each of which contains information about a query to submit to the reranker model.default RerankRequest.Builder
rerankingConfiguration
(Consumer<RerankingConfiguration.Builder> rerankingConfiguration) Contains configurations for reranking.rerankingConfiguration
(RerankingConfiguration rerankingConfiguration) Contains configurations for reranking.sources
(Collection<RerankSource> sources) An array of objects, each of which contains information about the sources to rerank.sources
(Consumer<RerankSource.Builder>... sources) An array of objects, each of which contains information about the sources to rerank.sources
(RerankSource... sources) An array of objects, each of which contains information about the sources to rerank.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeRequest.Builder
build
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
-
nextToken
If the total number of results was greater than could fit in a response, a token is returned in the
nextToken
field. You can enter that token in this field to return the next batch of results.- Parameters:
nextToken
- If the total number of results was greater than could fit in a response, a token is returned in thenextToken
field. You can enter that token in this field to return the next batch of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queries
An array of objects, each of which contains information about a query to submit to the reranker model.
- Parameters:
queries
- An array of objects, each of which contains information about a query to submit to the reranker model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queries
An array of objects, each of which contains information about a query to submit to the reranker model.
- Parameters:
queries
- An array of objects, each of which contains information about a query to submit to the reranker model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queries
An array of objects, each of which contains information about a query to submit to the reranker model.
This is a convenience method that creates an instance of theRerankQuery.Builder
avoiding the need to create one manually viaRerankQuery.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toqueries(List<RerankQuery>)
.- Parameters:
queries
- a consumer that will call methods onRerankQuery.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rerankingConfiguration
Contains configurations for reranking.
- Parameters:
rerankingConfiguration
- Contains configurations for reranking.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rerankingConfiguration
default RerankRequest.Builder rerankingConfiguration(Consumer<RerankingConfiguration.Builder> rerankingConfiguration) Contains configurations for reranking.
This is a convenience method that creates an instance of theRerankingConfiguration.Builder
avoiding the need to create one manually viaRerankingConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torerankingConfiguration(RerankingConfiguration)
.- Parameters:
rerankingConfiguration
- a consumer that will call methods onRerankingConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sources
An array of objects, each of which contains information about the sources to rerank.
- Parameters:
sources
- An array of objects, each of which contains information about the sources to rerank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
An array of objects, each of which contains information about the sources to rerank.
- Parameters:
sources
- An array of objects, each of which contains information about the sources to rerank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
An array of objects, each of which contains information about the sources to rerank.
This is a convenience method that creates an instance of theRerankSource.Builder
avoiding the need to create one manually viaRerankSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosources(List<RerankSource>)
.- Parameters:
sources
- a consumer that will call methods onRerankSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
RerankRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-