Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::PairwiseMetricInstance.
Pairwise metric instance. Usually one instance corresponds to one row in an evaluation dataset.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#content_map_instance
def content_map_instance() -> ::Google::Cloud::AIPlatform::V1::ContentMap-
(::Google::Cloud::AIPlatform::V1::ContentMap) — Key-value contents for the mutlimodality input, including text, image,
video, audio, and pdf, etc. The key is placeholder in metric prompt
template, and the value is the multimodal content.
Note: The following fields are mutually exclusive:
content_map_instance,json_instance. If a field in that set is populated, all other fields in the set will automatically be cleared.
#content_map_instance=
def content_map_instance=(value) -> ::Google::Cloud::AIPlatform::V1::ContentMap-
value (::Google::Cloud::AIPlatform::V1::ContentMap) — Key-value contents for the mutlimodality input, including text, image,
video, audio, and pdf, etc. The key is placeholder in metric prompt
template, and the value is the multimodal content.
Note: The following fields are mutually exclusive:
content_map_instance,json_instance. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::AIPlatform::V1::ContentMap) — Key-value contents for the mutlimodality input, including text, image,
video, audio, and pdf, etc. The key is placeholder in metric prompt
template, and the value is the multimodal content.
Note: The following fields are mutually exclusive:
content_map_instance,json_instance. If a field in that set is populated, all other fields in the set will automatically be cleared.
#json_instance
def json_instance() -> ::String-
(::String) — Instance specified as a json string. String key-value pairs are expected
in the json_instance to render
PairwiseMetricSpec.instance_prompt_template.
Note: The following fields are mutually exclusive:
json_instance,content_map_instance. If a field in that set is populated, all other fields in the set will automatically be cleared.
#json_instance=
def json_instance=(value) -> ::String-
value (::String) — Instance specified as a json string. String key-value pairs are expected
in the json_instance to render
PairwiseMetricSpec.instance_prompt_template.
Note: The following fields are mutually exclusive:
json_instance,content_map_instance. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Instance specified as a json string. String key-value pairs are expected
in the json_instance to render
PairwiseMetricSpec.instance_prompt_template.
Note: The following fields are mutually exclusive:
json_instance,content_map_instance. If a field in that set is populated, all other fields in the set will automatically be cleared.