QaQuestion(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A single question to be scored by the Insights QA feature.
Attributes |
|
---|---|
Name | Description |
name |
str
Identifier. The resource name of the question. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question} |
abbreviation |
str
Short, descriptive string, used in the UI where it's not practical to display the full question body. E.g., "Greeting". |
create_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The time at which this question was created. |
update_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The most recent time at which the question was updated. |
question_body |
str
Question text. E.g., "Did the agent greet the customer?". |
answer_instructions |
str
Instructions describing how to determine the answer. |
answer_choices |
MutableSequence[google.cloud.contact_center_insights_v1.types.QaQuestion.AnswerChoice]
A list of valid answers to the question, which the LLM must choose from. |
tags |
MutableSequence[str]
User-defined list of arbitrary tags for the question. Used for grouping/organization and for weighting the score of each question. |
order |
int
Defines the order of the question within its parent scorecard revision. |
metrics |
google.cloud.contact_center_insights_v1.types.QaQuestion.Metrics
Metrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying LLM for the given question. This field will only be populated if and only if the question is part of a scorecard revision that has been tuned. |
tuning_metadata |
google.cloud.contact_center_insights_v1.types.QaQuestion.TuningMetadata
Metadata about the tuning operation for the question.This field will only be populated if and only if the question is part of a scorecard revision that has been tuned. |
Classes
AnswerChoice
AnswerChoice(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Message representing a possible answer to the question.
This message has oneof
_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Metrics
Metrics(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A wrapper representing metrics calculated against a test-set on a LLM that was fine tuned for this question.
TuningMetadata
TuningMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Metadata about the tuning operation for the question. Will only be set if a scorecard containing this question has been tuned.