Snowflake
Cortex Commands
Access Snowflake Cortex AI capabilities from the CLI. Use built-in LLM functions, run sentiment analysis, generate embeddings, and leverage AI without managing infrastructure.
6 commands
Pro Tips
Use CORTEX.COMPLETE() for text generation and CORTEX.SUMMARIZE() for document summarization in SQL.
CORTEX.EMBED_TEXT() generates embeddings for semantic search and similarity matching.
Cortex functions run within Snowflake's security boundary - no data leaves your account.
Common Mistakes
Cortex functions consume credits. Monitor usage with ACCOUNT_USAGE views for cost management.
LLM outputs are non-deterministic. Use temperature=0 for more consistent results in production.