Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::EmbedContentRequest::EmbedContentConfig.
Configurations for the EmbedContent API.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#audio_track_extraction
def audio_track_extraction() -> ::Boolean- (::Boolean) — Optional. Whether to extract audio from video content.
#audio_track_extraction=
def audio_track_extraction=(value) -> ::Boolean- value (::Boolean) — Optional. Whether to extract audio from video content.
- (::Boolean) — Optional. Whether to extract audio from video content.
#auto_truncate
def auto_truncate() -> ::Boolean-
(::Boolean) — Optional. Whether to silently truncate the input content if it's longer
than the maximum sequence length.
Only applicable to text-only embedding models.
#auto_truncate=
def auto_truncate=(value) -> ::Boolean-
value (::Boolean) — Optional. Whether to silently truncate the input content if it's longer
than the maximum sequence length.
Only applicable to text-only embedding models.
-
(::Boolean) — Optional. Whether to silently truncate the input content if it's longer
than the maximum sequence length.
Only applicable to text-only embedding models.
#document_ocr
def document_ocr() -> ::Boolean- (::Boolean) — Optional. Whether to enable OCR for document content.
#document_ocr=
def document_ocr=(value) -> ::Boolean- value (::Boolean) — Optional. Whether to enable OCR for document content.
- (::Boolean) — Optional. Whether to enable OCR for document content.
#output_dimensionality
def output_dimensionality() -> ::Integer- (::Integer) — Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.
#output_dimensionality=
def output_dimensionality=(value) -> ::Integer- value (::Integer) — Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.
- (::Integer) — Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.
#task_type
def task_type() -> ::Google::Cloud::AIPlatform::V1::EmbedContentRequest::EmbeddingTaskType-
(::Google::Cloud::AIPlatform::V1::EmbedContentRequest::EmbeddingTaskType) — Optional. The task type of the embedding.
Only applicable to text-only embedding models.
#task_type=
def task_type=(value) -> ::Google::Cloud::AIPlatform::V1::EmbedContentRequest::EmbeddingTaskType-
value (::Google::Cloud::AIPlatform::V1::EmbedContentRequest::EmbeddingTaskType) — Optional. The task type of the embedding.
Only applicable to text-only embedding models.
-
(::Google::Cloud::AIPlatform::V1::EmbedContentRequest::EmbeddingTaskType) — Optional. The task type of the embedding.
Only applicable to text-only embedding models.
#title
def title() -> ::String-
(::String) — Optional. The title for the text.
Only applicable to text-only embedding models.
#title=
def title=(value) -> ::String-
value (::String) — Optional. The title for the text.
Only applicable to text-only embedding models.
-
(::String) — Optional. The title for the text.
Only applicable to text-only embedding models.