Class EmbedContentConfig

    • Constructor Detail

      • EmbedContentConfig

        EmbedContentConfig()
    • Method Detail

      • title

         abstract Optional<String> title()

        Title for the text. Only applicable when TaskType is `RETRIEVAL_DOCUMENT`.

      • outputDimensionality

         abstract Optional<Integer> outputDimensionality()

        Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024 only. You cannot set this value if using the earlier model (`models/embedding-001`).

      • mimeType

         abstract Optional<String> mimeType()

        Gemini Enterprise Agent Platform only. The MIME type of the input.

      • autoTruncate

         abstract Optional<Boolean> autoTruncate()

        Gemini Enterprise Agent Platform only. Whether to silently truncate inputs longer than the max sequence length. If this option is set to false, oversized inputs will lead to an INVALID_ARGUMENT error, similar to other text APIs.

      • documentOcr

         abstract Optional<Boolean> documentOcr()

        Gemini Enterprise Agent Platform only. Whether to enable OCR for document content. Only applicable to Gemini Embedding 2 models.

      • audioTrackExtraction

         abstract Optional<Boolean> audioTrackExtraction()

        Gemini Enterprise Agent Platform only. Whether to extract audio from video content. Only applicable to Gemini Embedding 2 models.