Class RecommendResponse (0.5.0)

RecommendResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Response message for Recommend method.

Attributes

NameDescription
results MutableSequence[google.cloud.discoveryengine_v1beta.types.RecommendResponse.RecommendationResult]
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
attribution_token str
A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
missing_ids MutableSequence[str]
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
validate_only bool
True if RecommendRequest.validate_only was set.

Classes

RecommendationResult

RecommendationResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)

RecommendationResult represents a generic recommendation result with associated metadata.