You are viewing documentation about an older version (1.7.0). View latest version

snowflake.cortex.EmbedText1024

snowflake.cortex.EmbedText1024(model: Union[str, Column], text: Union[str, Column], session: Optional[Session] = None) Union[List[float], Column]

TextEmbed calls into the LLM inference service to embed the text.

Parameters:
  • model – A Column of strings representing the model to use for embedding. The value of the strings must be within the SUPPORTED_MODELS list.

  • text – A Column of strings representing input text.

  • session – The snowpark session to use. Will be inferred by context if not specified.

Returns:

A column of vectors containing embeddings.