Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Snowflake · SnowPro Core

Notebooks, Streamlit, Snowpark, and Cortex AI

SnowPro Core · Lesson 9 of 27 · 48:32

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the SnowPro Core Certification exam (COF-C03). In this lesson: Snowflake Notebooks, Streamlit in Snowflake, Snowpark, the Cortex AI functions, Cortex Search and Cortex Analyst, and Snowflake ML. Follows Foxglove Apparel, a fictional online clothing retailer. Includes three original practice questions.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Code and AI next to the data

Foxglove's data scientists want to forecast demand, its support team receives thousands of reviews a day, and its merchandisers want answers without writing SQL. Each of these needs used to mean moving data out to another platform. In Snowflake, notebooks, apps, Python code, and AI functions all run next to the governed data.

Notebooks and Streamlit

Snowflake Notebooks are a cell-based environment in Snowsight, for Python, SQL, and Markdown, and an administrator can set the default warehouse for new notebooks, on the account, a database, or a schema. Code runs on a warehouse runtime, or on a container runtime that adds extra packages and G P Us for machine learning, and the newer notebooks in Workspaces are compatible with Jupyter. Streamlit in Snowflake turns a Python script into an interactive web app, built and shared inside Snowflake, without moving the data. Roles control who can open an app, and the app runs with the privileges of its owner.

Snowpark

Snowpark is a set of libraries for Python, Java, and Scala, which build queries as DataFrames. DataFrames are lazy: nothing runs until an action, such as collect or show, asks for results. Snowpark then pushes the whole work down to Snowflake, so there is no separate cluster to manage, and no data to move out. You can write Snowpark code in local tools, such as Jupyter or V S Code, and run it on a standard warehouse, or on a Snowpark-optimized one for memory-heavy training.

Cortex AI functions

Snowflake Cortex brings large language models to your data, through SQL functions whose names start with AI. AI_COMPLETE sends a prompt to the model you choose, and it covers most generative tasks. Task functions handle common jobs directly: AI_SENTIMENT scores the sentiment of text, AI_CLASSIFY sorts text or images into your own categories, AI_TRANSLATE translates, and AI_SUMMARIZE summarizes. AI_FILTER returns true or false, so it fits in a WHERE clause, while AI_AGG and AI_SUMMARIZE_AGG work across many rows, without context window limits.

More AI functions

Other functions work on content: AI_EXTRACT pulls fields from text, images, or documents, AI_PARSE_DOCUMENT reads the text and layout of documents, AI_REDACT removes personal information, and AI_EMBED creates vectors for similarity search. The models run inside Snowflake's security and governance perimeter, unless you choose otherwise. And AI_COUNT_TOKENS counts the tokens in a prompt, to stay within a model's limit.

Cortex Search and Cortex Analyst

Cortex Search is a managed hybrid search engine, which mixes vector and keyword search over your text, with no embeddings or index refreshes to manage. Its two main uses are retrieval augmented generation, where a chatbot grounds its answers in your documents, and enterprise search. Cortex Analyst answers business questions asked in natural language, by generating SQL over structured data. It relies on a semantic model or a semantic view, which describes the tables in business terms, and applications call it through its REST API.

Snowflake ML

Snowflake ML covers the machine learning lifecycle, on governed data. The Feature Store manages the features that models use, and experiments compare trained models against chosen metrics. The Model Registry stores models as schema-level objects, with versions, and serves them for inference at scale. And ML Jobs and observability run the pipelines, and monitor models in production.

Recap

Let's recap. Notebooks offer Python, SQL, and Markdown cells, and Streamlit in Snowflake turns Python into shared apps. Snowpark builds lazy DataFrames in Python, Java, or Scala, and pushes the work down to Snowflake. Cortex AI functions bring language models to SQL, such as AI_COMPLETE, AI_FILTER, and AI_CLASSIFY. Cortex Search powers retrieval and enterprise search, and Cortex Analyst turns questions into SQL through a semantic model. And Snowflake ML adds a Feature Store, a Model Registry, and tools to run and monitor models.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Foxglove’s data engineers have Python code that pulls millions of order rows to a laptop to transform them. They want the transformation to run inside Snowflake, without managing a separate cluster. What should they use?

    • Streamlit in Snowflake
    • Cortex Analyst
    • Snowpark DataFrames
    • The Spark connector and a Spark cluster
    Show the answer

    Snowpark DataFrames

    Snowpark DataFrames are written in Python, and their work is pushed down to run inside Snowflake. “Streamlit in Snowflake” is for interactive apps, not for moving transformation code into Snowflake. “Cortex Analyst” is for business questions in plain language, and it does not run their Python code. And “The Spark connector and a Spark cluster” would keep a separate Spark cluster to manage.

  2. Foxglove wants to keep only the product reviews that mention a sizing problem, directly in a SELECT statement on its reviews table. Which function fits best?

    • AI_SENTIMENT
    • AI_FILTER
    • AI_TRANSLATE
    • AI_EMBED
    Show the answer

    AI_FILTER

    AI_FILTER returns true or false for each review, so it works directly in a WHERE clause. “AI_SENTIMENT” is wrong, because a sentiment score does not tell whether a review is about sizing. “AI_TRANSLATE” only translates the text. And “AI_EMBED” would return vectors, which still need a similarity search.

  3. Foxglove’s support team wants a chatbot that answers customer questions from thousands of care and returns documents, grounded in those documents. Which feature should find the relevant passages?

    • Cortex Analyst
    • AI_SENTIMENT
    • The Model Registry
    • Cortex Search
    Show the answer

    Cortex Search

    Cortex Search is built for retrieval augmented generation, and it finds the passages that ground the chatbot's answers. “Cortex Analyst” is wrong, because Cortex Analyst generates SQL over structured tables, not documents. “AI_SENTIMENT” only scores sentiment. And “The Model Registry” stores machine learning models, and it does not search documents.