Interface LLMBasedMetricSpecOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
LLMBasedMetricSpec, LLMBasedMetricSpec.Builder

@Generated public interface LLMBasedMetricSpecOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasRubricGroupKey

      boolean hasRubricGroupKey()
       Use a pre-defined group of rubrics associated with the input.
       Refers to a key in the rubric_groups map of EvaluationInstance.
       
      string rubric_group_key = 4;
      Returns:
      Whether the rubricGroupKey field is set.
    • getRubricGroupKey

      String getRubricGroupKey()
       Use a pre-defined group of rubrics associated with the input.
       Refers to a key in the rubric_groups map of EvaluationInstance.
       
      string rubric_group_key = 4;
      Returns:
      The rubricGroupKey.
    • getRubricGroupKeyBytes

      com.google.protobuf.ByteString getRubricGroupKeyBytes()
       Use a pre-defined group of rubrics associated with the input.
       Refers to a key in the rubric_groups map of EvaluationInstance.
       
      string rubric_group_key = 4;
      Returns:
      The bytes for rubricGroupKey.
    • hasPredefinedRubricGenerationSpec

      boolean hasPredefinedRubricGenerationSpec()
       Dynamically generate rubrics using a predefined spec.
       
      .google.cloud.aiplatform.v1.PredefinedMetricSpec predefined_rubric_generation_spec = 6;
      Returns:
      Whether the predefinedRubricGenerationSpec field is set.
    • getPredefinedRubricGenerationSpec

      PredefinedMetricSpec getPredefinedRubricGenerationSpec()
       Dynamically generate rubrics using a predefined spec.
       
      .google.cloud.aiplatform.v1.PredefinedMetricSpec predefined_rubric_generation_spec = 6;
      Returns:
      The predefinedRubricGenerationSpec.
    • getPredefinedRubricGenerationSpecOrBuilder

      PredefinedMetricSpecOrBuilder getPredefinedRubricGenerationSpecOrBuilder()
       Dynamically generate rubrics using a predefined spec.
       
      .google.cloud.aiplatform.v1.PredefinedMetricSpec predefined_rubric_generation_spec = 6;
    • hasMetricPromptTemplate

      boolean hasMetricPromptTemplate()
       Required. Template for the prompt sent to the judge model.
       
      optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      Whether the metricPromptTemplate field is set.
    • getMetricPromptTemplate

      String getMetricPromptTemplate()
       Required. Template for the prompt sent to the judge model.
       
      optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The metricPromptTemplate.
    • getMetricPromptTemplateBytes

      com.google.protobuf.ByteString getMetricPromptTemplateBytes()
       Required. Template for the prompt sent to the judge model.
       
      optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for metricPromptTemplate.
    • hasSystemInstruction

      boolean hasSystemInstruction()
       Optional. System instructions for the judge model.
       
      optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the systemInstruction field is set.
    • getSystemInstruction

      String getSystemInstruction()
       Optional. System instructions for the judge model.
       
      optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The systemInstruction.
    • getSystemInstructionBytes

      com.google.protobuf.ByteString getSystemInstructionBytes()
       Optional. System instructions for the judge model.
       
      optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for systemInstruction.
    • hasJudgeAutoraterConfig

      boolean hasJudgeAutoraterConfig()
       Optional. Optional configuration for the judge LLM (Autorater).
       
      optional .google.cloud.aiplatform.v1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the judgeAutoraterConfig field is set.
    • getJudgeAutoraterConfig

      AutoraterConfig getJudgeAutoraterConfig()
       Optional. Optional configuration for the judge LLM (Autorater).
       
      optional .google.cloud.aiplatform.v1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The judgeAutoraterConfig.
    • getJudgeAutoraterConfigOrBuilder

      AutoraterConfigOrBuilder getJudgeAutoraterConfigOrBuilder()
       Optional. Optional configuration for the judge LLM (Autorater).
       
      optional .google.cloud.aiplatform.v1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL];
    • hasAdditionalConfig

      boolean hasAdditionalConfig()
       Optional. Optional additional configuration for the metric.
       
      optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the additionalConfig field is set.
    • getAdditionalConfig

      com.google.protobuf.Struct getAdditionalConfig()
       Optional. Optional additional configuration for the metric.
       
      optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The additionalConfig.
    • getAdditionalConfigOrBuilder

      com.google.protobuf.StructOrBuilder getAdditionalConfigOrBuilder()
       Optional. Optional additional configuration for the metric.
       
      optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getRubricsSourceCase

      LLMBasedMetricSpec.RubricsSourceCase getRubricsSourceCase()