View Source GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResult (google_api_content_warehouse v0.3.0)

Additional result info for the question-answering feature.

Attributes

  • confidenceScore (type: number(), default: nil) - The calibrated confidence score for this document, in the range [0., 1.]. This represents the confidence level for whether the returned document and snippet answers the user's query.
  • highlights (type: list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResultHighlight.t), default: nil) - Highlighted sections in the snippet.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResult{
    confidenceScore: number() | nil,
    highlights:
      [
        GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResultHighlight.t()
      ]
      | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.