Documentation Index
Fetch the complete documentation index at: https://docs.elementum.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Snowflake Cortex brings AI capabilities directly to your data warehouse, allowing you to run LLMs and embedding models on your data without moving it outside your secure environment. This guide walks you through setting up Snowflake Cortex as an AI Provider in Elementum.Step 1: Verify CloudLink prerequisites
Before setting up Snowflake Cortex, confirm your Snowflake CloudLink is in place:- Go to Organization Settings → CloudLinks and verify your Snowflake connection is active.
- Confirm the CloudLink uses key-pair authentication. If it doesn’t, follow Key rotation on the Snowflake setup page to migrate.
- Confirm the Cortex AI grants have been applied to the
ELEMENTUMrole.
Snowflake Account Requirements
Your Snowflake account must meet the following requirements for Cortex AI access:- Snowflake Edition: Enterprise or higher
- Cortex Features: Enabled and available in your region (most AWS, Azure, and GCP regions are supported)
- Permissions: USAGE privileges on Cortex functions for your service account
- Billing: Cortex usage is billed through your Snowflake account
Step 2: Configure Snowflake Cortex in Elementum
When you have a CloudLink connection with key-pair authentication, Elementum automatically discovers available Snowflake Cortex capabilities.Add the Provider
- In Elementum, go to Organization Settings and select the Providers tab
- Click + Provider and select Snowflake — you’ll see your existing CloudLink connections listed
- Configure the provider settings:
- Basic Configuration
- Manual Configuration
Provider Name: Enter a descriptive name (e.g., “Snowflake Cortex AI”)CloudLink: Select your key-pair authenticated CloudLinkService Account Credentials: Auto-populated from your CloudLink
- Click Save to create the provider. Elementum will automatically validate your connection and discover available models — look for a green checkmark indicating a successful connection.
Step 3: Create your first AI service
With your Snowflake Cortex provider configured, create an AI Service that uses a Cortex model. See AI Services for the full walkthrough, including LLM and embedding service configuration, assignment, and failover. For a side-by-side comparison of Cortex LLMs and embedding models—including recommendations for daily tasks vs. complex reasoning and embedding quality tiers—see AI Models.Embeddings for AI Search: Snowflake Cortex is the only provider that supports embedding services in Elementum. If you plan to use AI Search, create an embedding service from this provider.
Model availability: Available models depend on your Snowflake account tier, region, and current Cortex offerings. Model selection may vary over time.
Usage Guidelines
Cost Management
Snowflake Cortex usage is billed through your Snowflake account. To manage costs:- Monitor Usage
- Optimize Usage
- Monitor Cortex function usage in the Snowflake console
- Track warehouse usage for AI workloads
- Set up Snowflake resource monitors and billing alerts
- Review token consumption regularly
Best Practices
Model Selection
Model Selection
- Use Claude 3.7 Sonnet for most daily automation and customer support tasks
- Use Claude Sonnet 4 for advanced reasoning and premium applications
- Reserve Claude Opus 4 for the most complex tasks requiring maximum intelligence
- Use Mistral Large 2 for European regulatory compliance and multilingual tasks
Prompt Engineering
Prompt Engineering
- Be specific and clear in your prompts
- Use system messages for consistent behavior
- Provide examples for better results
- Structure complex problems step-by-step for reasoning models
Performance Optimization
Performance Optimization
- Scale warehouses based on model complexity and concurrent usage
- Enable auto-scaling for variable workloads
- Choose models appropriate for the task complexity — avoid over-provisioning
- Implement result caching for repeated queries
Troubleshooting
Cortex Functions Not Available
Cortex Functions Not Available
Symptoms: Cannot access Snowflake Cortex AI functionsCommon Causes:
- Using password authentication instead of key-pair
- Insufficient permissions on Cortex functions
- Account doesn’t have Cortex access
- Verify key-pair authentication is configured on your CloudLink
- Check USAGE privileges on Cortex functions
- Contact Snowflake support for account access
- Verify account edition (Enterprise or higher) and region support
Model Discovery Issues
Model Discovery Issues
Symptoms: Expected models don’t appear in service creationCommon Causes:
- Regional model availability
- Account tier limitations
- CloudLink connection issues
- Verify CloudLink connection is active
- Check regional model availability in Snowflake documentation
- Review account tier and permissions
- Refresh provider configuration
Performance Issues
Performance Issues
Symptoms: Slow AI response times or timeoutsCommon Causes:
- Undersized warehouse for AI workloads
- Inefficient query patterns
- Large data volumes
- Scale up warehouse size
- Optimize data queries
- Implement result caching
- Consider dedicated warehouses for AI workloads
Security Considerations
- Data Residency
- Credential Management
Snowflake Cortex runs AI directly on your data warehouse, which provides key security advantages:
- Data never leaves your Snowflake environment
- Maintains existing data governance and compliance policies
- Leverages Snowflake’s built-in security model and encryption
- All access is auditable through Snowflake’s audit logging
Next Steps
With Snowflake Cortex configured as your AI Provider:Create AI Services
Set up specific LLM and embedding services using Cortex models
Enable AI Search
Use Snowflake embeddings for intelligent search on your data
Build Agents
Create agents that can directly access your Snowflake data
Connect Cortex Agents
Integrate Snowflake Cortex Agents into your Apps