Introduction
Now that the dedicated mortgage_ai_lab catalog has been created, it's time to organize the project. I'll use four schemas based on the Medallion Architecture, with an additional schema for AI-related assets.
We are building upon what we already have :
- Databricks series : Starting a new python project in Visual Studio Code (Part I)
- Databricks series : setting up a connection to Databricks from local IDE (Part II)
- Databricks series : Setting up a Databricks project in Visual Studio Code (part III)
- Databricks series : Deployment from Visual Studio Code (Part IV)
- Databricks series : Execute the job in Databricks (Part V)
- Databricks series : A configrable framework in Databricks (Part VI)
- Databricks series : Loading strategies in Databricks (Part VII)
- Databricks series : Data contracts in Databricks (Part VIII)
- Databricks series : Debugging Python code in Visual Studio Code with arguments (Part IX)
- Databricks series : ODCS Data contracts in Databricks (Part X)
- Databricks series : reading an API (Part XI)
- Databricks series : Building a mediallion architecture with SCD Type 2 (step 1)(Part XII)
- Databricks series : Building a mediallion architecture with SCD Type 2 (step 2) (Part XIII)
- Databricks series : Building a mediallion architecture with SCD Type 2 (step 3) (Part XIV)
- Databricks series : Working with JSON in Databricks SQL : STRUCT
- Databricks series : Working with JSON in Databricks SQL : ARRAY
- Databricks series : Working with JSON in Databricks SQL : MAP
- Databricks series : Working with JSON in Databricks SQL : VARIANT
- Databricks series : AI Project: Creating a Dedicated Unity Catalog
Create the schemas
CREATE SCHEMA IF NOT EXISTS mortgage_ai_lab.bronze COMMENT 'Raw source data'; CREATE SCHEMA IF NOT EXISTS mortgage_ai_lab.silver COMMENT 'Cleansed and validated data'; CREATE SCHEMA IF NOT EXISTS mortgage_ai_lab.gold COMMENT 'Business-ready analytical data'; CREATE SCHEMA IF NOT EXISTS mortgage_ai_lab.ai COMMENT 'AI-related assets and supporting data';
Each schema has its own responsibility:
Bronze: stores raw data as received from source systems.
Silver: contains cleansed, validated and structured data.
Gold: provides business-ready data for analytics and reporting.
AI: organizes AI-related assets and supporting data.
The project now has a clear structure, separating raw data, refined data, analytical models and AI-related components. In the next step, I'll design the mortgage domain and create the first synthetic source datasets that will feed the Bronze layer.
Geen opmerkingen:
Een reactie posten