Class MetricPromptTemplateExamples (1.67.1)

MetricPromptTemplateExamples()

Examples of metric prompt templates for model-based evaluation.

Classes

Pairwise

Pairwise()

Example PairwiseMetric instances.

Pointwise

Pointwise()

Example PointwiseMetric instances.

Methods

get_prompt_template

get_prompt_template(metric_name: str) -> str

Returns the prompt template for the given metric name.

list_example_metric_names

list_example_metric_names() -> typing.List[str]

Returns a list of all metric prompt templates.