Class: Aws::SageMaker::Types::LeaderboardCustomerModelConfig

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb

Overview

The configuration of a candidate that is one of your models. The values of ModelRef, DatasetArn, EvalCriteriaArn, PromptTemplateArn, and Dimensions together identify the candidate. If any of these values differ, the configurations are different candidates.

Dimensions supports the following keys. If you specify another key, AddCandidate returns a ValidationException error.

  • RAG_KNOWLEDGE_BASE_ARN - The ARN of the Amazon Bedrock knowledge base used for retrieval, in the format arn:partition:bedrock:region:account-id:knowledge-base/knowledge-base-id. The partition is aws, aws-cn, or aws-us-gov, the account ID is 12 digits, and the knowledge base ID is 10 letters or digits. You can add a revision suffix, a colon followed by 12 lowercase hexadecimal characters.

  • RAG_NUMBER_OF_RESULTS - The number of passages retrieved from the knowledge base, from 1 to 100, with no leading zeros. Required when you specify RAG_KNOWLEDGE_BASE_ARN. Specify the value even if it's the default.

  • RAG_PROMPT_TEMPLATE_ARN - The versioned ARN of the Amazon Bedrock prompt used as the retrieval-augmented generation (RAG) prompt template, in the format arn:partition:bedrock:region:account-id:prompt/prompt-id:version. The prompt ID is 10 letters or digits, and the version number (1 to 5 digits) is required. This key is optional. If you don't specify it, the default RAG prompt template is used. Requires RAG_KNOWLEDGE_BASE_ARN.

  • RAG_KNOWLEDGE_BASE_LAST_MODIFIED_TIME - When the knowledge base's settings or synced content last changed, as an RFC 3339 timestamp in UTC that ends in Z, such as 2026-11-20T18:30:00Z. A fractional second can have 1 to 9 digits, without trailing zeros. Optional. Requires RAG_KNOWLEDGE_BASE_ARN.

  • PROMPT_TEMPLATE_ARN - The ARN of the candidate's prompt template, from 20 to 2048 characters. This is the same as PromptTemplateArn. If you specify both, they must have the same value.

You must specify RAG_KNOWLEDGE_BASE_ARN and RAG_NUMBER_OF_RESULTS together. Each key can appear only once. Dimension values can't contain whitespace, control characters, format characters, or the | character.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#dataset_arn ⇒ String

The dataset the candidate was evaluated on: the ARN of a SageMaker hub content DataSet, or the S3 URI of the dataset. Optional.

Returns:

  • (String)


37633
37634
37635
37636
37637
37638
37639
37640
37641
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 37633

class LeaderboardCustomerModelConfig < Struct.new(
  :model_ref,
  :dataset_arn,
  :eval_criteria_arn,
  :prompt_template_arn,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end

#dimensions ⇒ Array<Types::LeaderboardCandidateDimension>

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.



37633
37634
37635
37636
37637
37638
37639
37640
37641
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 37633

class LeaderboardCustomerModelConfig < Struct.new(
  :model_ref,
  :dataset_arn,
  :eval_criteria_arn,
  :prompt_template_arn,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end

#eval_criteria_arn ⇒ String

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:

  • (String)


37633
37634
37635
37636
37637
37638
37639
37640
37641
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 37633

class LeaderboardCustomerModelConfig < Struct.new(
  :model_ref,
  :dataset_arn,
  :eval_criteria_arn,
  :prompt_template_arn,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end

#model_ref ⇒ String

A reference to the model that was evaluated, such as the ARN of a SageMaker model package or a model identifier.

Returns:

  • (String)


37633
37634
37635
37636
37637
37638
37639
37640
37641
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 37633

class LeaderboardCustomerModelConfig < Struct.new(
  :model_ref,
  :dataset_arn,
  :eval_criteria_arn,
  :prompt_template_arn,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end

#prompt_template_arn ⇒ String

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:

  • (String)


37633
37634
37635
37636
37637
37638
37639
37640
37641
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 37633

class LeaderboardCustomerModelConfig < Struct.new(
  :model_ref,
  :dataset_arn,
  :eval_criteria_arn,
  :prompt_template_arn,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end