Skip to content

LeaderboardCustomerModelConfig

Source code in docs_src/capo_sagemaker/types/leaderboard_customer_model_config.py
class LeaderboardCustomerModelConfig(TypedDict, closed=True):
    model_ref: NotRequired[
        "capo_sagemaker.types.leaderboard_model_ref.LeaderboardModelRef"
    ]
    """<p>A reference to the model that was evaluated, such as the ARN of a SageMaker model package or a model identifier.</p>"""
    dataset_arn: NotRequired[
        "capo_sagemaker.types.leaderboard_dataset_arn.LeaderboardDatasetArn"
    ]
    """The dataset the candidate was evaluated on: the ARN of a SageMaker hub content DataSet, or the S3 URI of the dataset. Optional."""
    eval_criteria_arn: NotRequired[
        "capo_sagemaker.types.leaderboard_eval_criteria_arn.LeaderboardEvalCriteriaArn"
    ]
    """<p>The ARN of the evaluation criteria that the candidate was evaluated with. Specify the ARN of a SageMaker hub content document of type <code>JsonDoc</code>, optionally with its version, for example <code>arn:aws:sagemaker:aa-example-3:111122223333:hub-content/my-hub/JsonDoc/my-criteria/1.0.0</code>. For content in a public hub, the account is <code>aws</code>.</p>"""
    prompt_template_arn: NotRequired[
        "capo_sagemaker.types.leaderboard_prompt_template_arn.LeaderboardPromptTemplateArn"
    ]
    """<p>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.</p>"""
    dimensions: NotRequired[
        "capo_sagemaker.types.leaderboard_candidate_dimension_list.LeaderboardCandidateDimensionList"
    ]
    """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."""

dataset_arn instance-attribute

dataset_arn: NotRequired[LeaderboardDatasetArn]

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

dimensions instance-attribute

dimensions: NotRequired[LeaderboardCandidateDimensionList]

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.

eval_criteria_arn instance-attribute

eval_criteria_arn: NotRequired[LeaderboardEvalCriteriaArn]

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.

model_ref instance-attribute

model_ref: NotRequired[LeaderboardModelRef]

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

prompt_template_arn instance-attribute

prompt_template_arn: NotRequired[LeaderboardPromptTemplateArn]

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.