Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::PointwiseMetricInstance (v1.40.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::PointwiseMetricInstance.

Pointwise 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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns
  • (::String) — Instance specified as a json string. String key-value pairs are expected in the json_instance to render PointwiseMetricSpec.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
Parameter
  • value (::String) — Instance specified as a json string. String key-value pairs are expected in the json_instance to render PointwiseMetricSpec.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.

Returns
  • (::String) — Instance specified as a json string. String key-value pairs are expected in the json_instance to render PointwiseMetricSpec.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.