Class EvaluationInstance (1.158.0)

EvaluationInstance(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A single instance to be evaluated. Instances are used to specify the input data for evaluation, from simple string comparisons to complex, multi-turn model evaluations

Attributes

Name Description
prompt google.cloud.aiplatform_v1beta1.types.EvaluationInstance.InstanceData
Optional. Data used to populate placeholder prompt in a metric prompt template.
rubric_groups MutableMapping[str, google.cloud.aiplatform_v1beta1.types.RubricGroup]
Optional. Named groups of rubrics associated with the prompt. This is used for rubric-based evaluations where rubrics can be referenced by a key. The key could represent versions, associated metrics, etc.
response google.cloud.aiplatform_v1beta1.types.EvaluationInstance.InstanceData
Optional. Data used to populate placeholder response in a metric prompt template.
reference google.cloud.aiplatform_v1beta1.types.EvaluationInstance.InstanceData
Optional. Data used to populate placeholder reference in a metric prompt template.
other_data google.cloud.aiplatform_v1beta1.types.EvaluationInstance.MapInstance
Optional. Other data used to populate placeholders based on their key. If a key conflicts with a field in the EvaluationInstance (e.g. prompt), the value of the field will take precedence over the value in other_data.
agent_data google.cloud.aiplatform_v1beta1.types.EvaluationInstance.DeprecatedAgentData
Optional. Deprecated: Use agent_eval_data instead. Data used for agent evaluation.
agent_eval_data google.cloud.aiplatform_v1beta1.types.AgentData
Optional. Data used for agent evaluation.

Classes

DeprecatedAgentConfig

DeprecatedAgentConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Deprecated: Use google.cloud.aiplatform.master.AgentConfig in agent_eval_data instead. Configuration for an Agent.

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

DeprecatedAgentData

DeprecatedAgentData(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Deprecated: Use agent_eval_data instead. Contains data specific to agent evaluations.

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

InstanceData

InstanceData(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Instance data used to populate placeholders in a metric prompt template.

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

MapInstance

MapInstance(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Instance data specified as a map.

RubricGroupsEntry

RubricGroupsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

Methods

EvaluationInstance

EvaluationInstance(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A single instance to be evaluated. Instances are used to specify the input data for evaluation, from simple string comparisons to complex, multi-turn model evaluations