How darshilparmar/zomato-ai-data-engineering-end-to-end-project works
This repository implements a batch food-delivery analytics platform: source CSVs land in S3, load into Snowflake, and are transformed by dbt into staging views, dimensions, facts, and business marts. Airflow schedules the load, core transformations, review enrichment, and AI marts. Separate AI applications provide review search/chat and natural-language warehouse queries. The README documents the broad architecture; sampled code confirms the Airflow tasks, enrichment behavior, and text-to-SQL flow. RAG implementation details and some dbt dependencies were not sampled.
Main entry points: 04_raw_tables.sql Raw Tables · zomato_batch.py Daily DAG · enrich_reviews.py Review Enrichment · staging Silver Staging
Components 22
Ingestion
- S3 Data Lake
- Raw Tables
snowflake/04_raw_tables.sql - Snowflake Setup
snowflake/01_setup.sql - Storage Integration
snowflake/02_storage_integration.sql - Stage and Formats
snowflake/03_stage_and_formats.sql - Raw Load SQL
snowflake/05_copy_into.sql
Warehouse Modeling
- Silver Staging
zomato/models/staging - Gold Dimensions
zomato/models/marts - Incremental Facts
zomato/models/marts - Business Marts
zomato/models/marts - Review Insights Mart
zomato/models/marts/mart_review_insights.sql
Orchestration
- Daily DAG
airflow/dags/zomato_batch.py - Core dbt Build
zomato/dbt_project.yml - AI dbt Build
zomato/dbt_project.yml
AI Applications
- Review Enrichment
ai/enrich_reviews.py - Enriched Reviews
- Review RAG Chat
ai/rag_chat.py - Text-to-SQL App
ai/text_to_sql.py
Other components
- Food CSVs
- OpenAI
- Snowflake
- Analyst
Connections 23
- Food CSVs → S3 Data Lake: uploads CSVs
README.md - S3 Data Lake → Raw Tables: loads raw data
README.md - Storage Integration → Snowflake: configures access
- Stage and Formats → Raw Tables: configures stage
README.md - Raw Load SQL → Raw Tables: copies into
- Raw Tables → Silver Staging: cleans sources
README.md - Silver Staging → Gold Dimensions: models dimensions
README.md - Silver Staging → Incremental Facts: models facts
README.md - Gold Dimensions → Business Marts: supports marts
README.md - Incremental Facts → Business Marts: supports marts
README.md - Enriched Reviews → Review Insights Mart: models insights
README.md - Daily DAG → Raw Tables: runs COPY
airflow/dags/zomato_batch.py - Daily DAG → Core dbt Build: runs core build
airflow/dags/zomato_batch.py - Daily DAG → Review Enrichment: runs enrichment
airflow/dags/zomato_batch.py - Daily DAG → AI dbt Build: runs AI build
airflow/dags/zomato_batch.py - Review Enrichment → Raw Tables: reads reviews
ai/enrich_reviews.py - Review Enrichment → OpenAI: classifies reviews
ai/enrich_reviews.py - Review Enrichment → Enriched Reviews: writes results
ai/enrich_reviews.py - Review RAG Chat → OpenAI: embeds and answers
README.md - Review RAG Chat → Snowflake: retrieves reviews
README.md - Analyst → Text-to-SQL App: asks question
ai/text_to_sql.py - Text-to-SQL App → OpenAI: generates SQL
ai/text_to_sql.py - Text-to-SQL App → Snowflake: runs query
ai/text_to_sql.py