View Source GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1ServingConfig (google_api_discovery_engine v0.27.0)

Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions). The ServingConfig is passed in the search and predict request and generates results.

Attributes

  • boostControlIds (type: list(String.t), default: nil) - Boost controls to use in serving path. All triggered boost controls will be applied. Boost controls must be in the same data store as the serving config. Maximum of 20 boost controls.
  • createTime (type: DateTime.t, default: nil) - Output only. ServingConfig created timestamp.
  • displayName (type: String.t, default: nil) - Required. The human readable serving config display name. Used in Discovery UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
  • dissociateControlIds (type: list(String.t), default: nil) - Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. Order does not matter. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH.
  • diversityLevel (type: String.t, default: nil) - How much diversity to use in recommendation model results e.g. medium-diversity or high-diversity. Currently supported values: no-diversity low-diversity medium-diversity high-diversity * auto-diversity If not specified, we choose default based on recommendation model type. Default value: no-diversity. Can only be set if SolutionType is SOLUTION_TYPE_RECOMMENDATION.
  • filterControlIds (type: list(String.t), default: nil) - Filter controls to use in serving path. All triggered filter controls will be applied. Filter controls must be in the same data store as the serving config. Maximum of 20 filter controls.
  • genericConfig (type: GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1ServingConfigGenericConfig.t, default: nil) - The GenericConfig of the serving configuration.
  • ignoreControlIds (type: list(String.t), default: nil) - Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. Order does not matter. Maximum number of specifications is 100.
  • mediaConfig (type: GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1ServingConfigMediaConfig.t, default: nil) - The MediaConfig of the serving configuration.
  • modelId (type: String.t, default: nil) - The id of the model to use at serving time. Currently only RecommendationModels are supported. Can be changed but only to a compatible model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required when SolutionType is SOLUTION_TYPE_RECOMMENDATION.
  • name (type: String.t, default: nil) - Immutable. Fully qualified name projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}
  • onewaySynonymsControlIds (type: list(String.t), default: nil) - Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH.
  • promoteControlIds (type: list(String.t), default: nil) - Condition promote specifications. Maximum number of specifications is 100.
  • rankingExpression (type: String.t, default: nil) - The ranking expression controls the customized ranking on retrieval documents. To leverage this, document embedding is required. The ranking expression setting in ServingConfig applies to all search requests served by the serving config. However, if SearchRequest.ranking_expression is specified, it overrides the ServingConfig ranking expression. The ranking expression is a single function or multiple functions that are joined by "+". ranking_expression = function, { " + ", function }; Supported functions: double relevance_score double dotProduct(embedding_field_path) Function variables: relevance_score: pre-defined keywords, used for measure relevance between query and document. embedding_field_path: the document embedding field used with query embedding vector. dotProduct: embedding function between embedding_field_path and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding).
  • redirectControlIds (type: list(String.t), default: nil) - IDs of the redirect controls. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH.
  • replacementControlIds (type: list(String.t), default: nil) - Condition replacement specifications. Applied according to the order in the list. A previously replaced term can not be re-replaced. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH.
  • solutionType (type: String.t, default: nil) - Required. Immutable. Specifies the solution type that a serving config can be associated with.
  • synonymsControlIds (type: list(String.t), default: nil) - Condition synonyms specifications. If multiple synonyms conditions match, all matching synonyms controls in the list will execute. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH.
  • updateTime (type: DateTime.t, default: nil) - Output only. ServingConfig updated timestamp.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1ServingConfig{
    boostControlIds: [String.t()] | nil,
    createTime: DateTime.t() | nil,
    displayName: String.t() | nil,
    dissociateControlIds: [String.t()] | nil,
    diversityLevel: String.t() | nil,
    filterControlIds: [String.t()] | nil,
    genericConfig:
      GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1ServingConfigGenericConfig.t()
      | nil,
    ignoreControlIds: [String.t()] | nil,
    mediaConfig:
      GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1ServingConfigMediaConfig.t()
      | nil,
    modelId: String.t() | nil,
    name: String.t() | nil,
    onewaySynonymsControlIds: [String.t()] | nil,
    promoteControlIds: [String.t()] | nil,
    rankingExpression: String.t() | nil,
    redirectControlIds: [String.t()] | nil,
    replacementControlIds: [String.t()] | nil,
    solutionType: String.t() | nil,
    synonymsControlIds: [String.t()] | nil,
    updateTime: DateTime.t() | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.