semantic-layer-setup

Orchestrate Databricks semantic layer creation with Metric Views, TVFs, and Genie Spaces.

5|6|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/databricks-solutions/vibe-coding-workshop-template --skill semantic-layer-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: semantic-layer-setup
Source: https://github.com/databricks-solutions/vibe-coding-workshop-template/tree/main/data_product_accelerator/skills/semantic-layer/00-semantic-layer-setup
Command: npx skills add https://github.com/databricks-solutions/vibe-coding-workshop-template --skill semantic-layer-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the creation of a robust Databricks semantic layer, enabling users to define metrics, create reusable functions, and set up AI-powered data exploration spaces efficiently.

Core Features & Use Cases

  • Metric Views: Define business metrics and dimensions using YAML for discoverability and consistency.
  • Table-Valued Functions (TVFs): Develop parameterized SQL functions for dynamic data access in Genie.
  • Genie Spaces: Configure AI agent environments with curated data assets and benchmark questions for natural language querying.
  • Use Case: A data team needs to expose key business metrics (e.g., Monthly Recurring Revenue, Customer Lifetime Value) and create standardized data access functions for their AI assistant (Genie) to answer business questions accurately and consistently.

Quick Start

Use the semantic-layer-setup skill to build the semantic layer for the 'wanderbricks' project.

Frequently Asked Questions about semantic-layer-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Databricks semantic layer with Metric Views and Genie Spaces?

To build a Databricks semantic layer, you define business metrics and dimensions in YAML Metric Views, create parameterized Table-Valued Functions, and configure Genie Spaces for natural language querying. This orchestrates end-to-end creation and validates artifacts against a project manifest.

What is a Databricks semantic layer and when do I need Metric Views and TVFs?

A Databricks semantic layer defines standardized business metrics and parameterized data access functions to ensure consistency. You need Metric Views and TVFs when a data team requires discoverable, reusable logic for AI-powered Genie Spaces to answer business questions accurately.

How do I create parameterized SQL functions for Genie Spaces in Databricks?

You create parameterized SQL functions for Genie Spaces by developing Table-Valued Functions (TVFs) that enable dynamic data access. The semantic layer setup orchestrates this process, validating dependencies and bundling assets to deploy these functions idempotently.

Can I deploy Databricks semantic layer components idempotently using asset bundles?

Yes, you can deploy Databricks semantic layer components idempotently using asset bundle configurations. The setup validates components against a project manifest and manages dependencies to ensure consistent artifact generation and deployment across environments.

How do I define business metrics in YAML for Databricks Genie Spaces?

You define business metrics in YAML using Metric Views to establish discoverability and consistency for dimensions like Monthly Recurring Revenue. These definitions are then validated against a project manifest to generate artifacts for Genie Spaces.

What are the limitations of using YAML Metric Views for Databricks semantic layer setup?

The setup requires managing dependencies on foundational skills for asset bundling and naming standards. If the project manifest validation fails or prerequisites are missing, artifact generation for Metric Views, TVFs, and Genie Spaces will not proceed correctly.