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

Message that gets returned from the Provider Selection Library (PSL). It encodes the scores, applied policies, and pruning decisions for a given provider candidate.

Attributes

  • bucketedFinalScore (type: String.t, default: nil) - Alternative bucketed score for use by downstream ranking providers. A raw numeric score is subject to semantic-drift, while a bucket is not.
  • finalScore (type: number(), default: nil) - Final score in the range [0,1] that can be used for ranking providers. Incorporates both policy rules and quality considerations.
  • policyApplied (type: list(GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionPolicy.t), default: nil) - List of business policies applied to the candidate.
  • shouldPrune (type: boolean(), default: nil) - Indicates whether the candidate should be pruned.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionResult{
    bucketedFinalScore: String.t() | nil,
    finalScore: number() | nil,
    policyApplied:
      [
        GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionPolicy.t()
      ]
      | nil,
    shouldPrune: boolean() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.