Snowflake-Labs /sf-samples
Sample files, code snippets and downloads for Snowflake labs and tutorials.
★ 300⑂ 353👁 11⑃ 280● 17▤ 0
+0
日增长
+0
周增长
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
#228Version compatibility issues in samples/ml/ml_jobs/e2e_task_graph1 comments · 2025-08-11#160execute queries concurrently in one worksheet1 comments · 2025-02-05#63Database 'OPENCELLID' does not exist or not authorized.1 comments · 2024-02-28#48Missing file: PERF-AU-84-wh-idle.sql1 comments · 2023-12-01#285All sfquickstarts repo links result in a 404 Error0 comments · 2026-07-21#275Retail realtime recommendations tutorial0 comments · 2026-05-27#171ML Jobs Sample Guide: AttributeError: Can't get attribute '_function_setstate' on <module 'cloudpickle.cloudpickle' from '/opt/conda/lib/python3.10/site-packages/cloudpickle/cloudpickle.py'>0 comments · 2025-03-31#170Command "ALTER ACCOUNT SET ENABLE_SNOWSERVICES_ASYNC_JOBS = TRUE;" can only be run by Snowflake team0 comments · 2025-03-31