View Source GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaRankingRecord (google_api_discovery_engine v0.7.0)

Record message for RankService.Rank method.

Attributes

  • content (type: String.t, default: nil) - The content of the record. Empty by default. At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.
  • id (type: String.t, default: nil) - The unique ID to represent the record.
  • score (type: number(), default: nil) - The score of this record based on the given query and selected model.
  • title (type: String.t, default: nil) - The title of the record. Empty by default. At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaRankingRecord{
    content: String.t() | nil,
    id: String.t() | nil,
    score: number() | nil,
    title: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.