class_docstr: Creates the embedding base by interacting with cohere hosted services.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:CohereEmbeddingOperator`
  
  :param input_text: single string text or list of text items that need to be embedded.
  :param conn_id: Optional. The name of the Airflow connection to get connection
      information for Cohere. Defaults to "cohere_default".
  :param timeout: Timeout in seconds for Cohere API.
  :param max_retries: Number of times to retry before failing.
code: def __init__(
      self,
      input_text: list[str] | str,
      conn_id: str = CohereHook.default_conn_name,
      timeout: int | None = None,
      max_retries: int | None = None,
      **kwargs: Any,
  ):
      super().__init__(**kwargs)
      if isinstance(input_text, str):
          input_text = [input_text]
      self.conn_id = conn_id
      self.input_text = input_text
      self.timeout = timeout
      self.max_retries = max_retries
  
file_path: airflow/airflow/providers/cohere/operators/embedding.py
imports: from __future__ import annotations
  from functools import cached_property
  from typing import TYPE_CHECKING, Any, Sequence
  from airflow.models import BaseOperator
  from airflow.providers.cohere.hooks.cohere import CohereHook
label_desc: Use image node_id 1 to create a new CohereEmbeddingOperator object from inherited base classes: BaseOperator with example: obj = CohereEmbeddingOperator(input_text, conn_id, timeout, max_retries)