1.54.0 (2026-07-29)
Snowpark Python API updates
New Features
- Added
ai_count_tokensfunction tosnowflake.snowpark.functionsto estimate token counts for AI function calls. - Added
ai_multi_embedfunction tosnowflake.snowpark.functionsto generate multimodal embeddings from text, images, audio, or video files. - Added
ai_redactfunction tosnowflake.snowpark.functionsto detect and redact personally identifiable information (PII) from text. - Added
DataFrame.ai.multi_embedmethod to generate multimodal embeddings via the DataFrame API. - Added
DataFrame.ai.redactmethod to detect and redact PII from text columns via the DataFrame API. - Added
DataFrame.ai.translatemethod to translate text columns between languages via the DataFrame API.
Improvements
- Removed the
experimentaltag from all AI SQL functions inDataFrameAIFunctions(complete,filter,agg,classify,similarity,sentiment,embed,summarize_agg,transcribe,parse_document,extract,count_tokens,split_text_markdown_header,split_text_recursive_character) andRelationalGroupedDataFrame.ai_agg. - Updated
DataFrame.ai.count_tokensto match the standaloneai_count_tokensfunction:function_nameis now the required first parameter, andmodelis optional. Also addedoptionsandreturn_error_detailsparameters.
Bug Fixes
- Fixed
DataFrame.ai.count_tokensto call theAI_COUNT_TOKENSSQL function instead of the deprecatedSNOWFLAKE.CORTEX.COUNT_TOKENS. Token counts may differ slightly due to the updated tokenizer. - Reverted the change introduced in 1.53.0 to eliminate unnecessary
SELECT *from joins, which was causing performance regressions. This has no functional impact.