Class EmbedContentRequest (1.144.0)

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

Request message for PredictionService.EmbedContent.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
model str
Required. The name of the publisher model requested to serve the prediction. Format: projects/{project}/locations/{location}/publishers/*/models/* This field is a member of oneof_ _model.
content google.cloud.aiplatform_v1beta1.types.Content
Required. Input content to be embedded. This field is a member of oneof_ _content.
title str
Optional. Deprecated: Please use EmbedContentConfig.title instead. The title for the text. This field is a member of oneof_ _title.
task_type google.cloud.aiplatform_v1beta1.types.EmbedContentRequest.EmbeddingTaskType
Optional. Deprecated: Please use EmbedContentConfig.task_type instead. The task type of the embedding. This field is a member of oneof_ _task_type.
output_dimensionality int
Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. This field is a member of oneof_ _output_dimensionality.
auto_truncate bool
Optional. Deprecated: Please use EmbedContentConfig.auto_truncate instead. Whether to silently truncate the input content if it's longer than the maximum sequence length. This field is a member of oneof_ _auto_truncate.
embed_content_config google.cloud.aiplatform_v1beta1.types.EmbedContentRequest.EmbedContentConfig
Optional. Configuration for the EmbedContent request. This field is a member of oneof_ _embed_content_config.

Classes

EmbedContentConfig

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

EmbeddingTaskType

EmbeddingTaskType(value)

Represents a downstream task the embeddings will be used for.

Methods

EmbedContentRequest

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

Request message for PredictionService.EmbedContent.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields