Snowflake Cortex AI: What It Actually Does and When to Use It

Quick answer: Snowflake Cortex AI is a suite of built-in AI functions and services that let you run LLMs directly inside Snowflake using SQL. You get task-specific functions like AI_COMPLETE, AI_CLASSIFY, AI_SENTIMENT, AI_TRANSLATE, AI_EXTRACT, and AI_TRANSCRIBE. You also get higher-level services: Cortex Search for RAG over unstructured data, Cortex Analyst for natural language to SQL, and the newly announced Cortex Code for AI-assisted development. The big advantage? Your data never leaves Snowflake. Cortex AI functions went GA in November 2025, and the platform now supports models including Claude Opus 4.6, GPT-5.2, Mistral's Pixtral Large, and Snowflake's own open-source Arctic model.

Why Cortex AI Matters

Here is the problem most data teams face. You have valuable data sitting in Snowflake. You want to use AI on that data. So you extract it, send it to an external API, wait for results, and load them back. That workflow is slow, expensive, and creates data governance headaches. Every API call is a potential data leak. Every extraction step adds latency and complexity.

Cortex AI eliminates that entire loop. You write SQL. The AI runs inside Snowflake. Results land in your tables. Your existing Snowflake access controls and policies apply automatically. No external APIs to manage. No data egress charges. No new security reviews.

That matters a lot for regulated industries where data cannot leave the platform. It also matters for teams that just want to get AI into production without building a separate ML infrastructure stack.

The Core Cortex AI Functions

Cortex AI functions went generally available in November 2025. Each function is designed for a specific AI task and can be called directly in SQL. Let us walk through them one by one.

AI_COMPLETE: General-Purpose Text Generation

This is the most flexible function. You give it a prompt and it returns generated text. You pick the model. You can use it for summarization, content generation, question answering, or any open-ended text task.

SQL
SELECT
  ticket_id,
  AI_COMPLETE(
    'claude-opus-4-6',
    'Summarize this customer support ticket in two sentences: ' || ticket_text
  ) AS summary
FROM support_tickets
WHERE created_date = CURRENT_DATE();

You can also pass system prompts and structured options for more control over the output. The function supports every model available in Cortex, so you can use a cheaper, smaller model for simple tasks and reserve the larger models for complex reasoning.

AI_CLASSIFY: Text Classification

Need to categorize text into predefined buckets? AI_CLASSIFY handles that. You provide the text and an array of categories, and it returns the best match. No training data required.

SQL
SELECT
  feedback_id,
  feedback_text,
  AI_CLASSIFY(
    feedback_text,
    ARRAY_CONSTRUCT('billing issue', 'product bug', 'feature request', 'praise', 'other')
  ) AS category
FROM customer_feedback;

This works surprisingly well for most classification tasks. For a tagging pipeline that previously required training a custom model, AI_CLASSIFY can get you 80 to 90 percent accuracy with zero training effort. If you need higher accuracy for a specific domain, consider fine-tuning, but start here.

AI_SENTIMENT: Sentiment Analysis

Returns a sentiment score between -1 (very negative) and 1 (very positive). Straightforward and effective for tracking customer sentiment at scale.

SQL
SELECT
  review_id,
  review_text,
  AI_SENTIMENT(review_text) AS sentiment_score,
  CASE
    WHEN AI_SENTIMENT(review_text) > 0.3 THEN 'Positive'
    WHEN AI_SENTIMENT(review_text) < -0.3 THEN 'Negative'
    ELSE 'Neutral'
  END AS sentiment_label
FROM product_reviews
WHERE review_date >= '2026-01-01';

AI_TRANSLATE, AI_EXTRACT, and AI_TRANSCRIBE

AI_TRANSLATE converts text between languages. Pass the source text, the source language, and the target language. It handles dozens of language pairs.

AI_EXTRACT pulls structured information from unstructured text. Give it a text blob and tell it what to extract (names, dates, amounts, product codes), and it returns structured output. Great for parsing invoices, contracts, or any document where you need specific fields.

AI_TRANSCRIBE converts audio to text. If you store audio files in Snowflake stages, you can transcribe them directly without sending data to an external speech-to-text service.

SQL
-- Translate customer feedback from Spanish to English
SELECT
  AI_TRANSLATE(feedback_text, 'es', 'en') AS translated_feedback
FROM international_feedback
WHERE language_code = 'es';

-- Extract key fields from invoice text
SELECT
  AI_EXTRACT(
    invoice_text,
    OBJECT_CONSTRUCT('vendor_name', 'string', 'total_amount', 'number', 'due_date', 'date')
  ) AS extracted_fields
FROM raw_invoices;

Supported Models: Choosing the Right One

Cortex does not lock you into a single model. You choose per function call, which means you can optimize for cost and quality on a task-by-task basis. Here is what is available as of early 2026:

The practical advice: use Arctic or a smaller model for high-volume, simple tasks like sentiment analysis and classification. Save the premium models for tasks that need deeper reasoning, like summarizing complex legal documents or generating nuanced analysis. This keeps costs manageable. For a broader look at how AI fits into your data stack, see our AI/ML services overview.

Cortex Search: RAG Without the Plumbing

Retrieval-augmented generation (RAG) is the standard pattern for building AI search over your own data. The typical approach involves setting up a vector database, building an embedding pipeline, creating a retrieval layer, and connecting it all to an LLM. It works, but it requires significant engineering effort.

Cortex Search packages all of that into a managed service. You point it at your data, define a search service, and it handles the embedding, indexing, and retrieval automatically. When a user asks a question, Cortex Search finds the relevant documents and uses them as context for generating an answer.

This is particularly valuable for internal knowledge bases, customer support documentation, product catalogs, and any scenario where users need to search through large volumes of unstructured text. You get RAG functionality without building and maintaining the infrastructure yourself.

Cortex Analyst: Natural Language to SQL

Cortex Analyst lets business users query structured data using natural language. Instead of writing SQL, they type questions like "What were our top 10 products by revenue last quarter?" and Cortex Analyst generates and executes the SQL.

Under the hood, it uses a semantic model that you define. The semantic model describes your tables, columns, relationships, and business terminology. This is crucial because it gives the AI the context it needs to generate accurate SQL. Without it, the AI would have to guess what "revenue" means in your schema.

Cortex AISQL, announced alongside Analyst, extends this capability to more complex analytical queries. It is designed to handle multi-step analytical questions that require joins, aggregations, and window functions.

A word of caution: natural language to SQL is not magic. It works well for straightforward queries against well-modeled data. Complex ad-hoc analysis still benefits from a skilled analyst writing SQL. Think of Cortex Analyst as a tool that handles 70 percent of routine questions so your data team can focus on the hard 30 percent. If your data engineering foundation is solid, the results are much better.

Cortex Code: The AI Coding Agent

Announced on February 3, 2026, Cortex Code is Snowflake's AI coding agent. It lives inside Snowflake Notebooks and helps developers write, debug, and optimize SQL and Python code.

What makes Cortex Code different from general-purpose AI coding assistants is context. It understands your Snowflake environment. It knows your schemas, your tables, your query history, and your access patterns. When you ask it to write a query, it can reference your actual table structures instead of guessing.

Early use cases we see being most valuable: generating boilerplate transformation code, debugging slow queries by analyzing query profiles, and helping junior engineers understand complex existing queries. It will not replace experienced data engineers, but it can significantly speed up routine development work.

When to Use Each Cortex Feature

Here is a practical decision framework:

Governance and Security

One of the strongest selling points of Cortex AI is that it inherits Snowflake's existing security model. Role-based access control, column-level masking, row access policies, and network policies all apply to Cortex AI functions. If a user does not have access to a column, they cannot run AI functions on that column. Period.

This is a massive advantage over external AI solutions where you have to build a separate access control layer. With Cortex, the governance you already have in place just works. For teams operating under strict cost and governance requirements, this simplifies the compliance conversation significantly.

Practical Tips from Our Projects

We have deployed Cortex AI across several client environments. Here is what we have learned:

Key Takeaways

CelestInfo Engineering Team

We help teams deploy Cortex AI on real Snowflake workloads. From initial setup to production pipelines, we handle the engineering so you get results faster. Talk to us

Related Articles

Frequently Asked Questions About Snowflake Cortex AI

What teams ask us most about Cortex AI

Cortex AI functions are billed per token processed, similar to calling an external LLM API. The exact cost depends on which model you use. Smaller models like Arctic cost less per token than larger models like Claude Opus 4.6 or GPT-5.2. All processing happens within Snowflake, so you avoid separate API billing and data egress charges. Check the Snowflake pricing page for current per-token rates by model.

Cortex supports multiple model families. This includes Snowflake's own Arctic model (480B parameters, 17B active, open-source under Apache 2.0), Claude Opus 4.6 from Anthropic, GPT-5.2 from OpenAI, and Pixtral Large from Mistral AI (available since April 2025). You choose the model per function call, so you can use a smaller model for simple classification and a larger one for complex reasoning.

No. Cortex AI runs inside Snowflake's secure processing environment. Your data is not sent to external APIs or third-party model providers. This is one of the biggest advantages over calling external LLM APIs directly. Your data stays within your Snowflake account's security perimeter, governed by your existing access controls and policies.

Cortex Search is a retrieval-augmented generation (RAG) service for building search over unstructured data like documents, tickets, and knowledge bases. Cortex Analyst converts natural language questions into SQL queries against your structured data. Think of Search as "find me relevant documents" and Analyst as "query my tables using plain English."

Cortex Code was announced on February 3, 2026 as an AI coding agent built into Snowflake. It helps developers write, debug, and optimize SQL and Python code within Snowflake Notebooks. It is designed to understand your Snowflake environment, including your schemas, tables, and query history, to generate context-aware code suggestions.

Ready? Let's Talk!

Get expert insights and answers tailored to your business requirements and transformation.