snowflake.snowpark.functions.ai_embed¶
- snowflake.snowpark.functions.ai_embed(model: str, input: Union[Column, str]) Column[source]¶
Creates an embedding vector from text or an image.
- Parameters:
model –
A string specifying the vector embedding model to be used. Supported models:
- For text embeddings:
’snowflake-arctic-embed-l-v2.0’: Arctic large model (default for text)
’snowflake-arctic-embed-l-v2.0-8k’: Arctic large model with 8K context
’nv-embed-qa-4’: NVIDIA embedding model for Q&A
’multilingual-e5-large’: Multilingual embedding model
’voyage-multilingual-2’: Voyage multilingual model
- For image embeddings:
’voyage-multimodal-3’: Voyage multimodal model (only for images)
input – The string or image (as a FILE object) to generate an embedding from. Can be a string with text or a FILE column containing an image.
- Returns:
A VECTOR containing the embedding representation of the input.
Examples: