class_docstr: Use Cohere Python SDK to interact with Cohere platform.
  
  .. seealso:: https://docs.cohere.com/docs
  
  :param conn_id: :ref:`Cohere connection id <howto/connection:cohere>`
  :param timeout: Request timeout in seconds.
  :param max_retries: Maximal number of retries for requests.
class_docstr_tok: ["Use","Cohere","Python","SDK","to","interact","with","Cohere","platform",".","..","seealso",":",":","https",":","\/\/docs.cohere.com\/docs",":","param","conn_id",":",":","ref",":","`","Cohere","connection","id","<","howto\/connection",":","cohere",">","`",":","param","timeout",":","Request","timeout","in","seconds",".",":","param","max_retries",":","Maximal","number","of","retries","for","requests","."]
code: def create_embeddings(
      self, texts: list[str], model: str = "embed-multilingual-v2.0"
  ) -> list[list[float]]:
      response = self.get_conn.embed(texts=texts, model=model)
      embeddings = response.embeddings
      return embeddings
  
file_path: airflow/airflow/providers/cohere/hooks/cohere.py
imports: from __future__ import annotations
  from functools import cached_property
  from typing import Any
  import cohere
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 3 for calling the CohereHook obj's underlying member method code with example usage: obj.create_embeddings(texts, model) and returns: embeddings