public sealed class LLMBasedMetricSpec : IMessage<LLMBasedMetricSpec>, IEquatable<LLMBasedMetricSpec>, IDeepCloneable<LLMBasedMetricSpec>, IBufferMessage, IMessageReference documentation and code samples for the Vertex AI v1beta1 API class LLMBasedMetricSpec.
Specification for an LLM based metric.
Implements
IMessageLLMBasedMetricSpec, IEquatableLLMBasedMetricSpec, IDeepCloneableLLMBasedMetricSpec, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Constructors
LLMBasedMetricSpec()
public LLMBasedMetricSpec()LLMBasedMetricSpec(LLMBasedMetricSpec)
public LLMBasedMetricSpec(LLMBasedMetricSpec other)| Parameter | |
|---|---|
| Name | Description |
other |
LLMBasedMetricSpec |
Properties
AdditionalConfig
public Struct AdditionalConfig { get; set; }Optional. Optional additional configuration for the metric.
| Property Value | |
|---|---|
| Type | Description |
Struct |
|
HasMetricPromptTemplate
public bool HasMetricPromptTemplate { get; }Gets whether the "metric_prompt_template" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasRubricGroupKey
public bool HasRubricGroupKey { get; }Gets whether the "rubric_group_key" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasSystemInstruction
public bool HasSystemInstruction { get; }Gets whether the "system_instruction" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
JudgeAutoraterConfig
public AutoraterConfig JudgeAutoraterConfig { get; set; }Optional. Optional configuration for the judge LLM (Autorater).
| Property Value | |
|---|---|
| Type | Description |
AutoraterConfig |
|
MetricPromptTemplate
public string MetricPromptTemplate { get; set; }Required. Template for the prompt sent to the judge model.
| Property Value | |
|---|---|
| Type | Description |
string |
|
PredefinedRubricGenerationSpec
public PredefinedMetricSpec PredefinedRubricGenerationSpec { get; set; }Dynamically generate rubrics using a predefined spec.
| Property Value | |
|---|---|
| Type | Description |
PredefinedMetricSpec |
|
RubricGroupKey
public string RubricGroupKey { get; set; }Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance.
| Property Value | |
|---|---|
| Type | Description |
string |
|
RubricsSourceCase
public LLMBasedMetricSpec.RubricsSourceOneofCase RubricsSourceCase { get; }| Property Value | |
|---|---|
| Type | Description |
LLMBasedMetricSpecRubricsSourceOneofCase |
|
SystemInstruction
public string SystemInstruction { get; set; }Optional. System instructions for the judge model.
| Property Value | |
|---|---|
| Type | Description |
string |
|