Defined in: src/utils/metrics.ts:21
Creates a custom LLM metric.
string
The name of the custom metric.
string
Instructions for the LLM scorer version.
The chain poll template for the scorer version.
string
Explanation Field Name
Description
Field name to look for in the chainpoll response, for the explanation.
Default
null
| string
Metric Description
Description
Description of what the metric should do.
object
[]
Metric Few Shot Examples
Description
Few-shot examples for the metric.
null
| string
Metric System Prompt
Description
System prompt for the metric.
string
Template
Description
Chainpoll prompt template.
string
Value Field Name
Description
Field name to look for in the chainpoll response, for the rating.
Default
string
= 'GPT-4o'
(Optional) The model name to use. Defaults to ‘GPT-4o’.
number
= 3
(Optional) The number of judges to use. Defaults to 3.
string
= ''
(Optional) A description for the metric.
string
[] = []
(Optional) Tags to associate with the metric.
Promise
<void
>
A promise that resolves when the metric is created.
Defined in: src/utils/metrics.ts:21
Creates a custom LLM metric.
string
The name of the custom metric.
string
Instructions for the LLM scorer version.
The chain poll template for the scorer version.
string
Explanation Field Name
Description
Field name to look for in the chainpoll response, for the explanation.
Default
null
| string
Metric Description
Description
Description of what the metric should do.
object
[]
Metric Few Shot Examples
Description
Few-shot examples for the metric.
null
| string
Metric System Prompt
Description
System prompt for the metric.
string
Template
Description
Chainpoll prompt template.
string
Value Field Name
Description
Field name to look for in the chainpoll response, for the rating.
Default
string
= 'GPT-4o'
(Optional) The model name to use. Defaults to ‘GPT-4o’.
number
= 3
(Optional) The number of judges to use. Defaults to 3.
string
= ''
(Optional) A description for the metric.
string
[] = []
(Optional) Tags to associate with the metric.
Promise
<void
>
A promise that resolves when the metric is created.