How snowflake-labs/sfguide-getting-started-with-cortex-analyst works
Project type and purpose
• This repository is a demo/quickstart for “Cortex Analyst” working on top of Snowflake. It provides sample Python scripts (for streaming and batch demos), SQL DDL/DML scripts to create and load Snowflake objects, and sample CSV data for ingestion. The goal is to show how to load data into Snowflake, configure Cortex Analyst, and run simple analytics.
File structure
• Top‑level demo scripts:
• cortex_analyst_sis_demo_app.py (batch or “SIS” demo)
• cortex_analyst_streaming_demo.py (streaming demo)
• SQL scripts for Snowflake schema & data setup:
• create_snowflake_objects.sql (DDL: tables, streams, tasks)
• cortex_search_create.sql (perhaps search/index setup)
• load_data.sql (ingests CSV files)
• data/ folder with sample CSVs (daily_revenue.csv, product.csv, region.csv)
• revenue_timeseries.yaml (configuration for Cortex timeseries analytics)
• requirements.txt (Python dependencies)
README for insights
• Confirms this is a Quickstart guide: you first run the SQL to set up schema & load data, then run the Python demos to connect to Snowflake (and Cortex Analyst), and execute analytics/stream processing.