Resource: ConversationModelEvaluation
Represents evaluation result of a conversation model.
JSON representation |
---|
{ "name": string, "displayName": string, "evaluationConfig": { object ( |
Fields | |
---|---|
name |
The resource name of the evaluation. Format: |
display |
Optional. The display name of the model evaluation. At most 64 bytes long. |
evaluation |
Optional. The configuration of the evaluation task. |
create |
Output only. Creation time of this model. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
raw |
Output only. Human eval template in csv format. It tooks real-world conversations provided through input dataset, generates example suggestions for customer to verify quality of the model. For Smart Reply, the generated csv file contains columns of Context, (Suggestions,Q1,Q2)*3, Actual reply. Context contains at most 10 latest messages in the conversation prior to the current suggestion. Q1: "Would you send it as the next message of agent?" Evaluated based on whether the suggest is appropriate to be sent by agent in current context. Q2: "Does the suggestion move the conversation closer to resolution?" Evaluated based on whether the suggestion provide solutions, or answers customer's question or collect information from customer to resolve the customer's issue. Actual reply column contains the actual agent reply sent in the context. |
Union field metrics . Metrics details. metrics can be only one of the following: |
|
smart |
Output only. Only available when model is for smart reply. |
EvaluationConfig
The configuration for model evaluation.
JSON representation |
---|
{ "datasets": [ { object ( |
Fields | |
---|---|
datasets[] |
Required. Datasets used for evaluation. |
Union field model_specific_config . Specific configurations for different models in order to do evaluation. model_specific_config can be only one of the following: |
|
smart |
Configuration for smart reply model evalution. |
smart |
Configuration for smart compose model evalution. |
SmartReplyConfig
Smart reply specific configuration for evaluation job.
JSON representation |
---|
{ "allowlistDocument": string, "maxResultCount": integer } |
Fields | |
---|---|
allowlist |
The allowlist document resource name. Format: |
max |
Required. The model to be evaluated can return multiple results with confidence score on each query. These results will be sorted by the descending order of the scores and we only keep the first maxResultCount results as the final results to evaluate. |
SmartComposeConfig
Smart compose specific configuration for evaluation job.
JSON representation |
---|
{ "allowlistDocument": string, "maxResultCount": integer } |
Fields | |
---|---|
allowlist |
The allowlist document resource name. Format: |
max |
Required. The model to be evaluated can return multiple results with confidence score on each query. These results will be sorted by the descending order of the scores and we only keep the first maxResultCount results as the final results to evaluate. |
SmartReplyMetrics
The evaluation metrics for smart reply model.
JSON representation |
---|
{
"allowlistCoverage": number,
"topNMetrics": [
{
object ( |
Fields | |
---|---|
allowlist |
Percentage of target participant messages in the evaluation dataset for which similar messages have appeared at least once in the allowlist. Should be [0, 1]. |
top |
Metrics of top n smart replies, sorted by [TopNMetric.n][]. |
conversation |
Total number of conversations used to generate this metric. |
TopNMetrics
Evaluation metrics when retrieving n
smart replies with the model.
JSON representation |
---|
{ "n": integer, "recall": number } |
Fields | |
---|---|
n |
Number of retrieved smart replies. For example, when |
recall |
Defined as |
Methods |
|
---|---|
|
Gets an evaluation of conversation model. |
|
Lists evaluations of a conversation model. |