Snowflake-Labs /sf-samples

Sample files, code snippets and downloads for Snowflake labs and tutorials.

★ 300⑂ 353👁 11⑃ 280● 17▤ 0
Apache-2.0Created 2021-08-04
+0
Daily
+0
Weekly
300
stars
353
forks
11
watchers
280
prs
17
issues
0
releases

README

Snowflake Samples

Working examples for every corner of the Snowflake platform — SQL snippets, Python apps, full-stack demos, quickstart companions, dbt projects, Native Apps, Cortex agents, and everything in between. Built by the community, maintained in the open.

55+ samples across AI, data engineering, Snowpark, Streamlit, Iceberg, ML, SPCS, geospatial, and more. Each one lives in its own directory under samples/ with a README explaining how to run it.

 Many of these samples are companion code for quickstarts, blog posts, and conference talks.

 Looking for something specific?

Some product areas have their own dedicated repos with more focused, maintained collections:

| If you're looking for... | Go here |
|--------------------------|---------|
| Snowflake Notebooks (demos, tutorials, data science) | snowflake-demo-notebooks |
| Cortex AI Toolkit (agents, RAG, search, fine-tuning, AI playground) | Snowflake-AI-Toolkit |
| Streamlit in Snowflake (app patterns, deployment, components) | snowflake-demo-streamlit |
| SPCS templates (container service blueprints) | spcs-templates |
| Quickstart guides (step-by-step walkthroughs) | sfquickstarts |
| Emerging Solutions Toolbox (SIT team frameworks and accelerators) | emerging-solutions-toolbox |

If it doesn't fit neatly into one of those — or crosses multiple areas — this repo is the right home.

---

 What's Inside

 Cortex AI and LLM

| Sample | Description |
|--------|-------------|
| aisql | AISQL use cases across marketing, e-commerce, healthcare, finance with Cortex AI functions |
| cortex-analyst | Industry-specific Cortex Analyst semantic model templates |
| cortex_analyst_native_app | Native App for natural language querying of Marketplace data via Cortex Analyst |
| cortex_analyst_salesforce_salescloud_template | Semantic YAML templates for querying Salesforce Sales Cloud data |
| cortex_ai_agents_local_streamlit | Cortex Agents demo analyzing sales conversations with Cortex Search and Analyst |
| cortex-nemoguardrails | NeMo Guardrails integration with Cortex LLMs on SPCS |
| snowfake-cortex | Snippets and scripts for Snowflake Cortex functions |
| operation_cortex | Spy Agency data scavenger hunt demo with Cortex Analyst and Streamlit |
| sow_llm | Open-source LLMs (FLAN-T5) on Snowpark Optimized Warehouses via UDFs |

 Agentic AI

| Sample | Description |
|--------|-------------|
| cloudflare-r2-logpush-agent | Cloudflare HTTP log pipeline from R2 into Snowflake with a natural-language Cortex Agent |
| create_ai_agents_on_snowflake_with_lang_ai | Retention AI Agent using Lang.ai's Native App |
| multi-player-ai-incident-room | A live room where a team and three Cortex Agents triage a broken pipeline, prove the fix on a zero-copy clone, and ship only after two people approve |
| vehicle-insurance-agentic-ai | End-to-end agentic insurance claim processor using Cortex Document AI and LangGraph |

 RAG and Document Intelligence

| Sample | Description |
|--------|-------------|
| RAG-to

Top issues

Snapshot: 2026-11-27T22:26:53Z · Data license Apache-2.0 · JSON