Interface LeaderboardCustomerModelConfig.Builder

  • 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

      LeaderboardCustomerModelConfig.Builder evalCriteriaArn(String 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 example arn:aws:sagemaker:aa-example-3:111122223333:hub-content/my-hub/JsonDoc/my-criteria/1.0.0. For content in a public hub, the account is aws.

      Parameters:
      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 example arn:aws:sagemaker:aa-example-3:111122223333:hub-content/my-hub/JsonDoc/my-criteria/1.0.0. For content in a public hub, the account is aws.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • promptTemplateArn

      LeaderboardCustomerModelConfig.Builder promptTemplateArn(String 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

      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

      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 the LeaderboardCandidateDimension.Builder avoiding the need to create one manually via LeaderboardCandidateDimension.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dimensions(List<LeaderboardCandidateDimension>).

      Parameters:
      dimensions - a consumer that will call methods on LeaderboardCandidateDimension.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: