Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::EmbedContentRequest::EmbedContentConfig (v1.38.0)

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
Returns
  • (::Boolean) — Optional. Whether to extract audio from video content.

#audio_track_extraction=

def audio_track_extraction=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Whether to extract audio from video content.
Returns
  • (::Boolean) — Optional. Whether to extract audio from video content.

#auto_truncate

def auto_truncate() -> ::Boolean
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns
  • (::Boolean) — Optional. Whether to enable OCR for document content.

#document_ocr=

def document_ocr=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Whether to enable OCR for document content.
Returns
  • (::Boolean) — Optional. Whether to enable OCR for document content.

#output_dimensionality

def output_dimensionality() -> ::Integer
Returns
  • (::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
Parameter
  • value (::Integer) — Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.
Returns
  • (::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
Returns

#task_type=

def task_type=(value) -> ::Google::Cloud::AIPlatform::V1::EmbedContentRequest::EmbeddingTaskType
Parameter
Returns

#title

def title() -> ::String
Returns
  • (::String) — Optional. The title for the text.

    Only applicable to text-only embedding models.

#title=

def title=(value) -> ::String
Parameter
  • value (::String) — Optional. The title for the text.

    Only applicable to text-only embedding models.

Returns
  • (::String) — Optional. The title for the text.

    Only applicable to text-only embedding models.