Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class LLMBasedMetricSpec.
Specification for an LLM based metric.
Generated from protobuf message google.cloud.aiplatform.v1.LLMBasedMetricSpec
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ rubric_group_key
string
Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance.
↳ predefined_rubric_generation_spec
↳ metric_prompt_template
string
Required. Template for the prompt sent to the judge model.
↳ system_instruction
string
Optional. System instructions for the judge model.
↳ judge_autorater_config
AutoraterConfig
Optional. Optional configuration for the judge LLM (Autorater).
↳ additional_config
getRubricGroupKey
Use a pre-defined group of rubrics associated with the input.
Refers to a key in the rubric_groups map of EvaluationInstance.
string
hasRubricGroupKey
setRubricGroupKey
Use a pre-defined group of rubrics associated with the input.
Refers to a key in the rubric_groups map of EvaluationInstance.
var
string
$this
getPredefinedRubricGenerationSpec
Dynamically generate rubrics using a predefined spec.
hasPredefinedRubricGenerationSpec
setPredefinedRubricGenerationSpec
Dynamically generate rubrics using a predefined spec.
$this
getMetricPromptTemplate
Required. Template for the prompt sent to the judge model.
string
hasMetricPromptTemplate
clearMetricPromptTemplate
setMetricPromptTemplate
Required. Template for the prompt sent to the judge model.
var
string
$this
getSystemInstruction
Optional. System instructions for the judge model.
string
hasSystemInstruction
clearSystemInstruction
setSystemInstruction
Optional. System instructions for the judge model.
var
string
$this
getJudgeAutoraterConfig
Optional. Optional configuration for the judge LLM (Autorater).
AutoraterConfig
|null
hasJudgeAutoraterConfig
clearJudgeAutoraterConfig
setJudgeAutoraterConfig
Optional. Optional configuration for the judge LLM (Autorater).
var
AutoraterConfig
$this
getAdditionalConfig
Optional. Optional additional configuration for the metric.
hasAdditionalConfig
clearAdditionalConfig
setAdditionalConfig
Optional. Optional additional configuration for the metric.
$this
getRubricsSource
string

