Interface LeaderboardCustomerModelConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LeaderboardCustomerModelConfig.Builder,,LeaderboardCustomerModelConfig> SdkBuilder<LeaderboardCustomerModelConfig.Builder,,LeaderboardCustomerModelConfig> SdkPojo
- Enclosing class:
LeaderboardCustomerModelConfig
-
Method Summary
Modifier and TypeMethodDescriptiondatasetArn(String datasetArn) The dataset the candidate was evaluated on: the ARN of a SageMaker hub content DataSet, or the S3 URI of the dataset.dimensions(Collection<LeaderboardCandidateDimension> dimensions) Additional key-value pairs that define the candidate, such as the retrieval-augmented generation (RAG) Knowledge Base, RAG prompt template, and RAG number of results.dimensions(Consumer<LeaderboardCandidateDimension.Builder>... dimensions) Additional key-value pairs that define the candidate, such as the retrieval-augmented generation (RAG) Knowledge Base, RAG prompt template, and RAG number of results.dimensions(LeaderboardCandidateDimension... dimensions) Additional key-value pairs that define the candidate, such as the retrieval-augmented generation (RAG) Knowledge Base, RAG prompt template, and RAG number of results.evalCriteriaArn(String evalCriteriaArn) The ARN of the evaluation criteria that the candidate was evaluated with.A reference to the model that was evaluated, such as the ARN of a SageMaker model package or a model identifier.promptTemplateArn(String promptTemplateArn) The Amazon Resource Name (ARN) of the prompt template that you use with the model.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
-
modelRef
A reference to the model that was evaluated, such as the ARN of a SageMaker model package or a model identifier.
- Parameters:
modelRef- A reference to the model that was evaluated, such as the ARN of a SageMaker model package or a model identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datasetArn
The dataset the candidate was evaluated on: the ARN of a SageMaker hub content DataSet, or the S3 URI of the dataset. Optional.
- Parameters:
datasetArn- The dataset the candidate was evaluated on: the ARN of a SageMaker hub content DataSet, or the S3 URI of the dataset. Optional.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evalCriteriaArn
The ARN of the evaluation criteria that the candidate was evaluated with. Specify the ARN of a SageMaker hub content document of type
JsonDoc, optionally with its version, for examplearn:aws:sagemaker:aa-example-3:111122223333:hub-content/my-hub/JsonDoc/my-criteria/1.0.0. For content in a public hub, the account isaws.- Parameters:
evalCriteriaArn- The ARN of the evaluation criteria that the candidate was evaluated with. Specify the ARN of a SageMaker hub content document of typeJsonDoc, optionally with its version, for examplearn:aws:sagemaker:aa-example-3:111122223333:hub-content/my-hub/JsonDoc/my-criteria/1.0.0. For content in a public hub, the account isaws.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptTemplateArn
The Amazon Resource Name (ARN) of the prompt template that you use with the model. Optional. Specify the ARN of a SageMaker hub content document or of an Amazon Bedrock prompt, such as a prompt version ARN.
- Parameters:
promptTemplateArn- The Amazon Resource Name (ARN) of the prompt template that you use with the model. Optional. Specify the ARN of a SageMaker hub content document or of an Amazon Bedrock prompt, such as a prompt version ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
LeaderboardCustomerModelConfig.Builder dimensions(Collection<LeaderboardCandidateDimension> dimensions) Additional key-value pairs that define the candidate, such as the retrieval-augmented generation (RAG) Knowledge Base, RAG prompt template, and RAG number of results. Dimensions are part of the candidate's identity: two candidates that differ only in their dimensions are distinct candidates. Each key can appear at most once.
- Parameters:
dimensions- Additional key-value pairs that define the candidate, such as the retrieval-augmented generation (RAG) Knowledge Base, RAG prompt template, and RAG number of results. Dimensions are part of the candidate's identity: two candidates that differ only in their dimensions are distinct candidates. Each key can appear at most once.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Additional key-value pairs that define the candidate, such as the retrieval-augmented generation (RAG) Knowledge Base, RAG prompt template, and RAG number of results. Dimensions are part of the candidate's identity: two candidates that differ only in their dimensions are distinct candidates. Each key can appear at most once.
- Parameters:
dimensions- Additional key-value pairs that define the candidate, such as the retrieval-augmented generation (RAG) Knowledge Base, RAG prompt template, and RAG number of results. Dimensions are part of the candidate's identity: two candidates that differ only in their dimensions are distinct candidates. Each key can appear at most once.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
LeaderboardCustomerModelConfig.Builder dimensions(Consumer<LeaderboardCandidateDimension.Builder>... dimensions) Additional key-value pairs that define the candidate, such as the retrieval-augmented generation (RAG) Knowledge Base, RAG prompt template, and RAG number of results. Dimensions are part of the candidate's identity: two candidates that differ only in their dimensions are distinct candidates. Each key can appear at most once.
This is a convenience method that creates an instance of theLeaderboardCandidateDimension.Builderavoiding the need to create one manually viaLeaderboardCandidateDimension.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todimensions(List<LeaderboardCandidateDimension>).- Parameters:
dimensions- a consumer that will call methods onLeaderboardCandidateDimension.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-