|
|
--- |
|
|
title: Tasty Bytes Cortex Analyst Demo |
|
|
emoji: π |
|
|
colorFrom: blue |
|
|
colorTo: purple |
|
|
sdk: gradio |
|
|
sdk_version: 4.44.0 |
|
|
app_file: app.py |
|
|
pinned: false |
|
|
license: mit |
|
|
--- |
|
|
|
|
|
# Tasty Bytes Customer Analytics - Cortex Analyst Demo |
|
|
|
|
|
This interactive demo showcases a natural language interface for customer data analytics built with **Snowflake Cortex Analyst**. |
|
|
|
|
|
## π― What This Demonstrates |
|
|
|
|
|
Ask questions in plain English and get instant insights from customer loyalty data: |
|
|
|
|
|
- "How many customers are in our loyalty program?" |
|
|
- "Which countries have the most customers?" |
|
|
- "Show me the top 10 customers by total sales" |
|
|
- "What's the average sales per customer in each country?" |
|
|
|
|
|
**No SQL knowledge required!** The AI understands your questions and generates the appropriate queries automatically. |
|
|
|
|
|
## ποΈ Architecture |
|
|
|
|
|
This demo is built on: |
|
|
- **Data Layer**: Snowflake TASTY_BYTES public dataset |
|
|
- **Semantic Layer**: Native Snowflake Semantic View (business-friendly data definitions) |
|
|
- **AI Layer**: Cortex Analyst (LLM-powered query understanding) |
|
|
- **Interface**: Chat-based natural language interface |
|
|
|
|
|
## β οΈ Important Note |
|
|
|
|
|
This HuggingFace Space is a **demonstration and showcase** only. The actual Cortex Analyst agent runs on Snowflake infrastructure, not within this Space. |
|
|
|
|
|
To try the real thing: |
|
|
1. Get a Snowflake account (free trial available) |
|
|
2. Follow the setup instructions in the [GitHub repository](https://github.com/aamanlamba/tasty-bytes-cortex-analyst) |
|
|
3. Complete setup in 20-30 minutes |
|
|
|
|
|
## π What You'll Find Here |
|
|
|
|
|
- **Demo Video**: See Cortex Analyst in action |
|
|
- **Example Queries**: Sample questions you can ask |
|
|
- **Sample Results**: Real query outputs |
|
|
- **Architecture**: How the system works |
|
|
- **Setup Guide**: Build it yourself step-by-step |
|
|
|
|
|
## π Try It Yourself |
|
|
|
|
|
**GitHub Repository**: [tasty-bytes-cortex-analyst](https://github.com/aamanlamba/tasty-bytes-cortex-analyst) |
|
|
|
|
|
The repository includes: |
|
|
- Complete setup scripts |
|
|
- Semantic view YAML definition |
|
|
- Detailed documentation |
|
|
- 50+ example queries |
|
|
- Troubleshooting guide |
|
|
|
|
|
## π Dataset |
|
|
|
|
|
Uses Snowflake's **TASTY_BYTES** sample dataset: |
|
|
- 11,420+ customer loyalty members |
|
|
- Geographic data (30+ countries) |
|
|
- Sales transactions |
|
|
- Location visit history |
|
|
|
|
|
This is publicly available sample data - no real customer information. |
|
|
|
|
|
## π€ Author |
|
|
|
|
|
**Aaman Lamba** |
|
|
- Strategy Consultant & Author |
|
|
- AI Governance & Data Economy Expert |
|
|
- Former Senior Industry Principal, Infosys |
|
|
|
|
|
**Connect:** |
|
|
- [LinkedIn](https://linkedin.com/in/aamanlamba) |
|
|
- [GitHub](https://github.com/aamanlamba) |
|
|
|
|
|
## π License |
|
|
|
|
|
MIT License - Free to use and modify |
|
|
|
|
|
--- |
|
|
|
|
|
β **Like this demo?** Star the [GitHub repository](https://github.com/yourusername/tasty-bytes-cortex-analyst)! |
|
|
|
|
|
π **Questions or issues?** [Open an issue](https://github.com/yourusername/tasty-bytes-cortex-analyst/issues) |
|
|
|