AI Functions Optimization: Higher Quality at Lower Cost
Snowflake, Wednesday, November 18th, 2026
Snowflake makes AI function evaluation and optimization generally available to find cheaper model and prompt setups.
Snowflake has made custom AI functions, AI_FUNCTION_EVALUATION and AI_FUNCTION_OPTIMIZATION generally available in Cortex AI Functions.
Teams can package prompts and model choices as reusable SQL functions, test them against labeled examples to measure quality, tokens and cost, and then let agentic algorithms such as CoCoEvolve and GEPA search for better prompt and model combinations.
In a synthetic dating-app example, an optimized Claude Haiku candidate scored 0.98 against 0.95 for an Opus baseline at 89% lower inference cost.
Selected candidates can be registered as custom AI functions for production use.