Skip to main content

Genie Code features and capabilities

Genie Code helps developers generate, optimize, explain, and fix code in Databricks notebooks, the SQL editor, jobs, AI/BI dashboards, and the file editor. It answers questions sourced from Databricks documentation, adapts to the product surface you are working in, and offers built-in code assistance.

To run Genie Code as an autonomous agent, see Agent mode. To open and navigate the Genie Code interface, see Navigate Genie Code.

Get help with code

Get help with code from Genie Code directly in your notebooks. Genie Code offers:

Databricks recommends that you always review any code generated by Genie Code before running it, because it can sometimes make mistakes.

For more information about how Genie Code can help with code, see Get coding help from Genie Code.

Code optimized for the Databricks environment

Code generated by Genie Code is intended to run in a Databricks compute environment. It is optimized to create code in Databricks-supported programming languages, frameworks, and dialects. It is not intended to be a general-purpose programming assistant.

Genie Code often uses information from Databricks resources, such as the Databricks documentation website or Knowledge Base, to better answer user queries. It performs best when the user question is related to questions that can be answered with knowledge from Databricks documentation, Unity Catalog, and user code in the workspace.

Get answers sourced from documentation

Genie Code searches Databricks documentation to answer your questions. When it references documentation, you see a Searched documentation step in the response. You can ask Genie Code to cite its sources, and it provides links to relevant documentation pages.

A Genie Code response showing a documentation-sourced answer.

Genie Code across the Databricks platform

Genie Code adapts to the product surface you are using and handles multi-step tasks autonomously.

Built-in 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:

    • Chat with Genie Code
    • Ask Genie Code questions and it responds with relevant information, including citations from Databricks documentation.
    • Quick fix
    • Genie Code automatically suggests fixes for basic errors that you can choose to accept and run.
    • Filter data
    • Filter data using natural language in supported surfaces.
    • Genie Ontology
    • Public Preview. Genie Code searches your organization's business context, such as metric definitions and join hints, to write more accurate SQL.

More ways to use Genie Code

    • Explore sample data
    • Ask natural-language questions about sample data in Unity Catalog tables, then review or auto-run the generated SQL.
    • Search the web
    • Let Genie Code search the public web for current information, such as recent release notes, third-party documentation, and news, and cite its sources.

Additional resources