Class: Google::Cloud::ContactCenterInsights::V1::QaQuestion
- Inherits:
-
Object
- Object
- Google::Cloud::ContactCenterInsights::V1::QaQuestion
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/contactcenterinsights/v1/resources.rb
Overview
A single question to be scored by the Insights QA feature.
Defined Under Namespace
Classes: AnswerChoice, Metrics, TuningMetadata
Instance Attribute Summary collapse
-
#abbreviation ⇒ ::String
Short, descriptive string, used in the UI where it's not practical to display the full question body.
-
#answer_choices ⇒ ::Array<::Google::Cloud::ContactCenterInsights::V1::QaQuestion::AnswerChoice>
A list of valid answers to the question, which the LLM must choose from.
-
#answer_instructions ⇒ ::String
Instructions describing how to determine the answer.
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#metrics ⇒ ::Google::Cloud::ContactCenterInsights::V1::QaQuestion::Metrics
Metrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying LLM for the given question.
-
#name ⇒ ::String
Identifier.
-
#order ⇒ ::Integer
Defines the order of the question within its parent scorecard revision.
-
#question_body ⇒ ::String
Question text.
-
#tags ⇒ ::Array<::String>
User-defined list of arbitrary tags for the question.
-
#tuning_metadata ⇒ ::Google::Cloud::ContactCenterInsights::V1::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.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
Instance Attribute Details
#abbreviation ⇒ ::String
Returns Short, descriptive string, used in the UI where it's not practical to display the full question body. E.g., "Greeting".
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 1824 class QaQuestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Message representing a possible answer to the question. # @!attribute [rw] str_value # @return [::String] # String value. # # Note: The following fields are mutually exclusive: `str_value`, `num_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] num_value # @return [::Float] # Numerical value. # # Note: The following fields are mutually exclusive: `num_value`, `str_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] bool_value # @return [::Boolean] # Boolean value. # # Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `num_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] na_value # @return [::Boolean] # A value of "Not Applicable (N/A)". If provided, this field may only # be set to `true`. If a question receives this answer, it will be # excluded from any score calculations. # # Note: The following fields are mutually exclusive: `na_value`, `str_value`, `num_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] key # @return [::String] # A short string used as an identifier. # @!attribute [rw] score # @return [::Float] # Numerical score of the answer, used for generating the overall score of # a QaScorecardResult. If the answer uses na_value, this field is unused. class AnswerChoice include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A wrapper representing metrics calculated against a test-set on a LLM that # was fine tuned for this question. # @!attribute [r] accuracy # @return [::Float] # Output only. Accuracy of the model. Measures the percentage of correct # answers the model gave on the test set. class Metrics include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata about the tuning operation for the question. Will only be set if a # scorecard containing this question has been tuned. # @!attribute [rw] total_valid_label_count # @return [::Integer] # Total number of valid labels provided for the question at the time of # tuining. # @!attribute [rw] dataset_validation_warnings # @return [::Array<::Google::Cloud::ContactCenterInsights::V1::DatasetValidationWarning>] # A list of any applicable data validation warnings about the question's # feedback labels. # @!attribute [rw] tuning_error # @return [::String] # Error status of the tuning operation for the question. Will only be set # if the tuning operation failed. class TuningMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#answer_choices ⇒ ::Array<::Google::Cloud::ContactCenterInsights::V1::QaQuestion::AnswerChoice>
Returns A list of valid answers to the question, which the LLM must choose from.
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 1824 class QaQuestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Message representing a possible answer to the question. # @!attribute [rw] str_value # @return [::String] # String value. # # Note: The following fields are mutually exclusive: `str_value`, `num_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] num_value # @return [::Float] # Numerical value. # # Note: The following fields are mutually exclusive: `num_value`, `str_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] bool_value # @return [::Boolean] # Boolean value. # # Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `num_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] na_value # @return [::Boolean] # A value of "Not Applicable (N/A)". If provided, this field may only # be set to `true`. If a question receives this answer, it will be # excluded from any score calculations. # # Note: The following fields are mutually exclusive: `na_value`, `str_value`, `num_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] key # @return [::String] # A short string used as an identifier. # @!attribute [rw] score # @return [::Float] # Numerical score of the answer, used for generating the overall score of # a QaScorecardResult. If the answer uses na_value, this field is unused. class AnswerChoice include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A wrapper representing metrics calculated against a test-set on a LLM that # was fine tuned for this question. # @!attribute [r] accuracy # @return [::Float] # Output only. Accuracy of the model. Measures the percentage of correct # answers the model gave on the test set. class Metrics include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata about the tuning operation for the question. Will only be set if a # scorecard containing this question has been tuned. # @!attribute [rw] total_valid_label_count # @return [::Integer] # Total number of valid labels provided for the question at the time of # tuining. # @!attribute [rw] dataset_validation_warnings # @return [::Array<::Google::Cloud::ContactCenterInsights::V1::DatasetValidationWarning>] # A list of any applicable data validation warnings about the question's # feedback labels. # @!attribute [rw] tuning_error # @return [::String] # Error status of the tuning operation for the question. Will only be set # if the tuning operation failed. class TuningMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#answer_instructions ⇒ ::String
Returns Instructions describing how to determine the answer.
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 1824 class QaQuestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Message representing a possible answer to the question. # @!attribute [rw] str_value # @return [::String] # String value. # # Note: The following fields are mutually exclusive: `str_value`, `num_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] num_value # @return [::Float] # Numerical value. # # Note: The following fields are mutually exclusive: `num_value`, `str_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] bool_value # @return [::Boolean] # Boolean value. # # Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `num_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] na_value # @return [::Boolean] # A value of "Not Applicable (N/A)". If provided, this field may only # be set to `true`. If a question receives this answer, it will be # excluded from any score calculations. # # Note: The following fields are mutually exclusive: `na_value`, `str_value`, `num_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] key # @return [::String] # A short string used as an identifier. # @!attribute [rw] score # @return [::Float] # Numerical score of the answer, used for generating the overall score of # a QaScorecardResult. If the answer uses na_value, this field is unused. class AnswerChoice include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A wrapper representing metrics calculated against a test-set on a LLM that # was fine tuned for this question. # @!attribute [r] accuracy # @return [::Float] # Output only. Accuracy of the model. Measures the percentage of correct # answers the model gave on the test set. class Metrics include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata about the tuning operation for the question. Will only be set if a # scorecard containing this question has been tuned. # @!attribute [rw] total_valid_label_count # @return [::Integer] # Total number of valid labels provided for the question at the time of # tuining. # @!attribute [rw] dataset_validation_warnings # @return [::Array<::Google::Cloud::ContactCenterInsights::V1::DatasetValidationWarning>] # A list of any applicable data validation warnings about the question's # feedback labels. # @!attribute [rw] tuning_error # @return [::String] # Error status of the tuning operation for the question. Will only be set # if the tuning operation failed. class TuningMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The time at which this question was created.
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 1824 class QaQuestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Message representing a possible answer to the question. # @!attribute [rw] str_value # @return [::String] # String value. # # Note: The following fields are mutually exclusive: `str_value`, `num_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] num_value # @return [::Float] # Numerical value. # # Note: The following fields are mutually exclusive: `num_value`, `str_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] bool_value # @return [::Boolean] # Boolean value. # # Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `num_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] na_value # @return [::Boolean] # A value of "Not Applicable (N/A)". If provided, this field may only # be set to `true`. If a question receives this answer, it will be # excluded from any score calculations. # # Note: The following fields are mutually exclusive: `na_value`, `str_value`, `num_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] key # @return [::String] # A short string used as an identifier. # @!attribute [rw] score # @return [::Float] # Numerical score of the answer, used for generating the overall score of # a QaScorecardResult. If the answer uses na_value, this field is unused. class AnswerChoice include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A wrapper representing metrics calculated against a test-set on a LLM that # was fine tuned for this question. # @!attribute [r] accuracy # @return [::Float] # Output only. Accuracy of the model. Measures the percentage of correct # answers the model gave on the test set. class Metrics include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata about the tuning operation for the question. Will only be set if a # scorecard containing this question has been tuned. # @!attribute [rw] total_valid_label_count # @return [::Integer] # Total number of valid labels provided for the question at the time of # tuining. # @!attribute [rw] dataset_validation_warnings # @return [::Array<::Google::Cloud::ContactCenterInsights::V1::DatasetValidationWarning>] # A list of any applicable data validation warnings about the question's # feedback labels. # @!attribute [rw] tuning_error # @return [::String] # Error status of the tuning operation for the question. Will only be set # if the tuning operation failed. class TuningMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#metrics ⇒ ::Google::Cloud::ContactCenterInsights::V1::QaQuestion::Metrics
Returns 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.
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 1824 class QaQuestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Message representing a possible answer to the question. # @!attribute [rw] str_value # @return [::String] # String value. # # Note: The following fields are mutually exclusive: `str_value`, `num_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] num_value # @return [::Float] # Numerical value. # # Note: The following fields are mutually exclusive: `num_value`, `str_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] bool_value # @return [::Boolean] # Boolean value. # # Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `num_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] na_value # @return [::Boolean] # A value of "Not Applicable (N/A)". If provided, this field may only # be set to `true`. If a question receives this answer, it will be # excluded from any score calculations. # # Note: The following fields are mutually exclusive: `na_value`, `str_value`, `num_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] key # @return [::String] # A short string used as an identifier. # @!attribute [rw] score # @return [::Float] # Numerical score of the answer, used for generating the overall score of # a QaScorecardResult. If the answer uses na_value, this field is unused. class AnswerChoice include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A wrapper representing metrics calculated against a test-set on a LLM that # was fine tuned for this question. # @!attribute [r] accuracy # @return [::Float] # Output only. Accuracy of the model. Measures the percentage of correct # answers the model gave on the test set. class Metrics include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata about the tuning operation for the question. Will only be set if a # scorecard containing this question has been tuned. # @!attribute [rw] total_valid_label_count # @return [::Integer] # Total number of valid labels provided for the question at the time of # tuining. # @!attribute [rw] dataset_validation_warnings # @return [::Array<::Google::Cloud::ContactCenterInsights::V1::DatasetValidationWarning>] # A list of any applicable data validation warnings about the question's # feedback labels. # @!attribute [rw] tuning_error # @return [::String] # Error status of the tuning operation for the question. Will only be set # if the tuning operation failed. class TuningMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#name ⇒ ::String
Returns Identifier. The resource name of the question. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question}.
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 1824 class QaQuestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Message representing a possible answer to the question. # @!attribute [rw] str_value # @return [::String] # String value. # # Note: The following fields are mutually exclusive: `str_value`, `num_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] num_value # @return [::Float] # Numerical value. # # Note: The following fields are mutually exclusive: `num_value`, `str_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] bool_value # @return [::Boolean] # Boolean value. # # Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `num_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] na_value # @return [::Boolean] # A value of "Not Applicable (N/A)". If provided, this field may only # be set to `true`. If a question receives this answer, it will be # excluded from any score calculations. # # Note: The following fields are mutually exclusive: `na_value`, `str_value`, `num_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] key # @return [::String] # A short string used as an identifier. # @!attribute [rw] score # @return [::Float] # Numerical score of the answer, used for generating the overall score of # a QaScorecardResult. If the answer uses na_value, this field is unused. class AnswerChoice include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A wrapper representing metrics calculated against a test-set on a LLM that # was fine tuned for this question. # @!attribute [r] accuracy # @return [::Float] # Output only. Accuracy of the model. Measures the percentage of correct # answers the model gave on the test set. class Metrics include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata about the tuning operation for the question. Will only be set if a # scorecard containing this question has been tuned. # @!attribute [rw] total_valid_label_count # @return [::Integer] # Total number of valid labels provided for the question at the time of # tuining. # @!attribute [rw] dataset_validation_warnings # @return [::Array<::Google::Cloud::ContactCenterInsights::V1::DatasetValidationWarning>] # A list of any applicable data validation warnings about the question's # feedback labels. # @!attribute [rw] tuning_error # @return [::String] # Error status of the tuning operation for the question. Will only be set # if the tuning operation failed. class TuningMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#order ⇒ ::Integer
Returns Defines the order of the question within its parent scorecard revision.
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 1824 class QaQuestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Message representing a possible answer to the question. # @!attribute [rw] str_value # @return [::String] # String value. # # Note: The following fields are mutually exclusive: `str_value`, `num_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] num_value # @return [::Float] # Numerical value. # # Note: The following fields are mutually exclusive: `num_value`, `str_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] bool_value # @return [::Boolean] # Boolean value. # # Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `num_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] na_value # @return [::Boolean] # A value of "Not Applicable (N/A)". If provided, this field may only # be set to `true`. If a question receives this answer, it will be # excluded from any score calculations. # # Note: The following fields are mutually exclusive: `na_value`, `str_value`, `num_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] key # @return [::String] # A short string used as an identifier. # @!attribute [rw] score # @return [::Float] # Numerical score of the answer, used for generating the overall score of # a QaScorecardResult. If the answer uses na_value, this field is unused. class AnswerChoice include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A wrapper representing metrics calculated against a test-set on a LLM that # was fine tuned for this question. # @!attribute [r] accuracy # @return [::Float] # Output only. Accuracy of the model. Measures the percentage of correct # answers the model gave on the test set. class Metrics include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata about the tuning operation for the question. Will only be set if a # scorecard containing this question has been tuned. # @!attribute [rw] total_valid_label_count # @return [::Integer] # Total number of valid labels provided for the question at the time of # tuining. # @!attribute [rw] dataset_validation_warnings # @return [::Array<::Google::Cloud::ContactCenterInsights::V1::DatasetValidationWarning>] # A list of any applicable data validation warnings about the question's # feedback labels. # @!attribute [rw] tuning_error # @return [::String] # Error status of the tuning operation for the question. Will only be set # if the tuning operation failed. class TuningMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#question_body ⇒ ::String
Returns Question text. E.g., "Did the agent greet the customer?".
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 1824 class QaQuestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Message representing a possible answer to the question. # @!attribute [rw] str_value # @return [::String] # String value. # # Note: The following fields are mutually exclusive: `str_value`, `num_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] num_value # @return [::Float] # Numerical value. # # Note: The following fields are mutually exclusive: `num_value`, `str_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] bool_value # @return [::Boolean] # Boolean value. # # Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `num_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] na_value # @return [::Boolean] # A value of "Not Applicable (N/A)". If provided, this field may only # be set to `true`. If a question receives this answer, it will be # excluded from any score calculations. # # Note: The following fields are mutually exclusive: `na_value`, `str_value`, `num_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] key # @return [::String] # A short string used as an identifier. # @!attribute [rw] score # @return [::Float] # Numerical score of the answer, used for generating the overall score of # a QaScorecardResult. If the answer uses na_value, this field is unused. class AnswerChoice include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A wrapper representing metrics calculated against a test-set on a LLM that # was fine tuned for this question. # @!attribute [r] accuracy # @return [::Float] # Output only. Accuracy of the model. Measures the percentage of correct # answers the model gave on the test set. class Metrics include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata about the tuning operation for the question. Will only be set if a # scorecard containing this question has been tuned. # @!attribute [rw] total_valid_label_count # @return [::Integer] # Total number of valid labels provided for the question at the time of # tuining. # @!attribute [rw] dataset_validation_warnings # @return [::Array<::Google::Cloud::ContactCenterInsights::V1::DatasetValidationWarning>] # A list of any applicable data validation warnings about the question's # feedback labels. # @!attribute [rw] tuning_error # @return [::String] # Error status of the tuning operation for the question. Will only be set # if the tuning operation failed. class TuningMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#tags ⇒ ::Array<::String>
Returns User-defined list of arbitrary tags for the question. Used for grouping/organization and for weighting the score of each question.
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 1824 class QaQuestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Message representing a possible answer to the question. # @!attribute [rw] str_value # @return [::String] # String value. # # Note: The following fields are mutually exclusive: `str_value`, `num_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] num_value # @return [::Float] # Numerical value. # # Note: The following fields are mutually exclusive: `num_value`, `str_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] bool_value # @return [::Boolean] # Boolean value. # # Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `num_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] na_value # @return [::Boolean] # A value of "Not Applicable (N/A)". If provided, this field may only # be set to `true`. If a question receives this answer, it will be # excluded from any score calculations. # # Note: The following fields are mutually exclusive: `na_value`, `str_value`, `num_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] key # @return [::String] # A short string used as an identifier. # @!attribute [rw] score # @return [::Float] # Numerical score of the answer, used for generating the overall score of # a QaScorecardResult. If the answer uses na_value, this field is unused. class AnswerChoice include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A wrapper representing metrics calculated against a test-set on a LLM that # was fine tuned for this question. # @!attribute [r] accuracy # @return [::Float] # Output only. Accuracy of the model. Measures the percentage of correct # answers the model gave on the test set. class Metrics include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata about the tuning operation for the question. Will only be set if a # scorecard containing this question has been tuned. # @!attribute [rw] total_valid_label_count # @return [::Integer] # Total number of valid labels provided for the question at the time of # tuining. # @!attribute [rw] dataset_validation_warnings # @return [::Array<::Google::Cloud::ContactCenterInsights::V1::DatasetValidationWarning>] # A list of any applicable data validation warnings about the question's # feedback labels. # @!attribute [rw] tuning_error # @return [::String] # Error status of the tuning operation for the question. Will only be set # if the tuning operation failed. class TuningMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#tuning_metadata ⇒ ::Google::Cloud::ContactCenterInsights::V1::QaQuestion::TuningMetadata
Returns 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.
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 1824 class QaQuestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Message representing a possible answer to the question. # @!attribute [rw] str_value # @return [::String] # String value. # # Note: The following fields are mutually exclusive: `str_value`, `num_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] num_value # @return [::Float] # Numerical value. # # Note: The following fields are mutually exclusive: `num_value`, `str_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] bool_value # @return [::Boolean] # Boolean value. # # Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `num_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] na_value # @return [::Boolean] # A value of "Not Applicable (N/A)". If provided, this field may only # be set to `true`. If a question receives this answer, it will be # excluded from any score calculations. # # Note: The following fields are mutually exclusive: `na_value`, `str_value`, `num_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] key # @return [::String] # A short string used as an identifier. # @!attribute [rw] score # @return [::Float] # Numerical score of the answer, used for generating the overall score of # a QaScorecardResult. If the answer uses na_value, this field is unused. class AnswerChoice include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A wrapper representing metrics calculated against a test-set on a LLM that # was fine tuned for this question. # @!attribute [r] accuracy # @return [::Float] # Output only. Accuracy of the model. Measures the percentage of correct # answers the model gave on the test set. class Metrics include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata about the tuning operation for the question. Will only be set if a # scorecard containing this question has been tuned. # @!attribute [rw] total_valid_label_count # @return [::Integer] # Total number of valid labels provided for the question at the time of # tuining. # @!attribute [rw] dataset_validation_warnings # @return [::Array<::Google::Cloud::ContactCenterInsights::V1::DatasetValidationWarning>] # A list of any applicable data validation warnings about the question's # feedback labels. # @!attribute [rw] tuning_error # @return [::String] # Error status of the tuning operation for the question. Will only be set # if the tuning operation failed. class TuningMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#update_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The most recent time at which the question was updated.
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 1824 class QaQuestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Message representing a possible answer to the question. # @!attribute [rw] str_value # @return [::String] # String value. # # Note: The following fields are mutually exclusive: `str_value`, `num_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] num_value # @return [::Float] # Numerical value. # # Note: The following fields are mutually exclusive: `num_value`, `str_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] bool_value # @return [::Boolean] # Boolean value. # # Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `num_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] na_value # @return [::Boolean] # A value of "Not Applicable (N/A)". If provided, this field may only # be set to `true`. If a question receives this answer, it will be # excluded from any score calculations. # # Note: The following fields are mutually exclusive: `na_value`, `str_value`, `num_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] key # @return [::String] # A short string used as an identifier. # @!attribute [rw] score # @return [::Float] # Numerical score of the answer, used for generating the overall score of # a QaScorecardResult. If the answer uses na_value, this field is unused. class AnswerChoice include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A wrapper representing metrics calculated against a test-set on a LLM that # was fine tuned for this question. # @!attribute [r] accuracy # @return [::Float] # Output only. Accuracy of the model. Measures the percentage of correct # answers the model gave on the test set. class Metrics include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata about the tuning operation for the question. Will only be set if a # scorecard containing this question has been tuned. # @!attribute [rw] total_valid_label_count # @return [::Integer] # Total number of valid labels provided for the question at the time of # tuining. # @!attribute [rw] dataset_validation_warnings # @return [::Array<::Google::Cloud::ContactCenterInsights::V1::DatasetValidationWarning>] # A list of any applicable data validation warnings about the question's # feedback labels. # @!attribute [rw] tuning_error # @return [::String] # Error status of the tuning operation for the question. Will only be set # if the tuning operation failed. class TuningMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |