Technarion logo

Technarion

Availability About Me Snowflake Contact

AI in Snowflake: Snowpark and Cortex

Cortex provides a seamless way to use LLM models agains the data. User can select the model and the semantic model from the data is fetched automatically into the context. Non-technical users can use natural language to get information from the data.

With Snowpark, there is no need to use custom object relational models or construct dynamic sql queries. When building machine learning models or other data analysis, Snowpark provides similar API with the data than spark.

Snowflake account · governance boundary Business user plain-language question Analyst SQL Engineer Python, Java, Scala Cortex Analyst & Search question to SQL, document retrieval Cortex AI SQL functions summarise, classify, extract Snowpark code pushed down to the data Hosted models LLMs from several vendors, ML functions, Document AI Container Services custom models, Model Registry Governed data tables and documents roles, masking and audit apply to every call asks queries runs inference inference serves reads with user's role read, write Prompts, data and models stay inside the account. Nothing is exported.
Each type of user has an entry point that matches the way they already work. All three paths call models that Snowflake hosts and read data under the caller's existing role, so no copy of the data leaves the platform.

Cortex: managed AI as a service

Cortex brings data available for users without deep technical knowledge. There are many capabilities to orchestrate and untilize Cortex, from simple we UI to code tools.

Snowpark: code where the data lives

Snowpark lets engineers and data scientists write Python, Java, or Scala that runs inside Snowflake's compute. A Snowpark DataFrame looks like pandas or Spark, but the work is pushed down to the warehouse, so a transformation over a billion rows does not require moving a billion rows anywhere. The same code can be packaged as a user-defined function or stored procedure and called from plain SQL by anyone in the organisation.

For heavier workloads, Snowpark Container Services runs user defined containers, including GPU workloads, inside the Snowflake account. This is how teams train custom models, host open-source models, or run existing Python services in one place inside Snowflake. Snowflake's Model Registry and Feature Store then handle versioning and deployment of the models that come out of that work.

Why this matters for a business