LLMBasedMetricSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)Specification for an LLM based metric.
This message has oneof_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes |
|
|---|---|
| Name | Description |
rubric_group_key |
str
Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance. This field is a member of oneof_ rubrics_source.
|
predefined_rubric_generation_spec |
google.cloud.aiplatform_v1beta1.types.PredefinedMetricSpec
Dynamically generate rubrics using a predefined spec. This field is a member of oneof_ rubrics_source.
|
metric_prompt_template |
str
Required. Template for the prompt sent to the judge model. This field is a member of oneof_ _metric_prompt_template.
|
system_instruction |
str
Optional. System instructions for the judge model. This field is a member of oneof_ _system_instruction.
|
judge_autorater_config |
google.cloud.aiplatform_v1beta1.types.AutoraterConfig
Optional. Optional configuration for the judge LLM (Autorater). This field is a member of oneof_ _judge_autorater_config.
|
additional_config |
google.protobuf.struct_pb2.Struct
Optional. Optional additional configuration for the metric. This field is a member of oneof_ _additional_config.
|
Methods
LLMBasedMetricSpec
LLMBasedMetricSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)Specification for an LLM based metric.
This message has oneof_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields