Skip to main content

Genie Code

Genie Code is the AI coding and data assistant for developers and technical practitioners in the Databricks workspace. It generates and runs code, builds pipelines and AI/BI dashboards, debugs errors, and works directly with Unity Catalog tables, columns, and lineage to accelerate multi-step data work. It runs in notebooks, the SQL editor, the Lakeflow Pipelines Editor, AI/BI dashboards, and MLflow, and chat threads persist as you navigate between pages.

Genie Code is governed by your Unity Catalog permissions, so it can only access data and perform operations that you have permissions for. It is available at no additional cost to all Databricks customers; you pay only for the compute used to run your notebooks, queries, and jobs. Fair usage limits prevent abuse but do not affect most users.

Genie Code is part of the Genie family of AI experiences. Business users who want a simplified chat interface to ask data questions, explore dashboards, and run apps should use Genie. Data teams configuring trusted data, metrics, and business rules for domain-specific environments should see Genie Spaces. For privacy, trust, and security details, see Databricks AI assistive features trust and safety.

Demo video

See Genie Code in action in this demo video.

Agent mode capabilities by product surface

In Agent mode, Genie Code adapts to the product surface you are using and handles multi-step tasks autonomously. In the Lakeflow Pipelines Editor, it focuses on pipeline editing and data engineering. In notebooks and the SQL Editor, it supports data exploration and analysis. In dashboards, it supports data analysis and dashboard creation. In MLflow, it helps debug and improve GenAI applications.

Built-in features for code assistance

Genie Code uses Unity Catalog metadata (tables, columns, descriptions, and your company's popular data assets) to give personalized responses while you write, debug, and run code. Use the following built-in features:

Tutorial

To get started, try the Genie Code tutorial:

Geo availability of Genie Code features

Genie Code is a Designated Service that uses Geos to manage data residency when processing customer content. To learn more about the availability of Genie Code features in different geographic areas, see Databricks Designated Services.

tip

If you can't enable Genie Code, you might need to disable Enforce data processing within workspace Geography for AI features. See Enable cross-Geo processing.