Class EmbedTextDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • inputs

        public EmbedTextDetails.Builder inputs​(List<String> inputs)
        Provide a list of strings or one base64 encoded image with input_type setting to IMAGE.

        If text embedding, each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens.

        Parameters:
        inputs - the value to set
        Returns:
        this builder
      • compartmentId

        public EmbedTextDetails.Builder compartmentId​(String compartmentId)
        The OCID of compartment in which to call the Generative AI service to create text embeddings.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • isEcho

        public EmbedTextDetails.Builder isEcho​(Boolean isEcho)
        Whether or not to include the original inputs in the response.

        Results are index-based.

        Parameters:
        isEcho - the value to set
        Returns:
        this builder
      • truncate

        public EmbedTextDetails.Builder truncate​(EmbedTextDetails.Truncate truncate)
        For an input that’s longer than the maximum token length, specifies which part of the input text will be truncated.
        Parameters:
        truncate - the value to set
        Returns:
        this builder