Guiding users with instructions

Introduction to Databricks Genie

Gang Wang

Senior Data Scientist

The power of instructions

recraft: half: A friendly guide holding a signpost with clear directions, helping travelers find their way, modern flat illustration style

Instructions as "Guardrails"

Instructions should:

  • Explain how the business uses the data, not just what it is
  • Resolve ambiguity and enforce business logic
  • Guide Genie toward consistent, accurate answers
Introduction to Databricks Genie

Types of instructions

Four types of effective instructions:

Type Good Bad
Metric definitions "Use (totalPrice - unitPrice * quantity) / totalPrice for Gross Margin" "Calculate profit correctly"
Synonyms "franchise, store, and shop all refer to sales_franchises" "Refer to the franchise table for store info"
Data quality "Exclude rows where paymentMethod is TEST or VOID" "Don't show test data"
Formatting "Round financial figures to two decimal places with $" "Format numbers nicely"
Introduction to Databricks Genie

Adding instructions

Screenshot 2026-04-17 at 10.10.31.png

Adding an instruction:

  1. Open Space settings
  2. Find the Instructions section
  3. Write clear, specific guidance
  4. Genie applies it to all queries in the space
Introduction to Databricks Genie

Filters for common parameters

nanobanana: half: E-commerce style sidebar with dropdown filter menus for City, Date Range, and Category

$$

Create a dropdown filter for:

  • High-frequency categories
  • Fields with complex spellings (City, Date)

$$

Let users type when:

  • One-off logic or open-ended comparisons
  • e.g., "Compare London to Paris"
Introduction to Databricks Genie

Sharing your space

$$

hierarchy: Space Owner, Curators, Query Users

Permission levels

Role Can Do
Owner Full control, delete space
Curator Edit examples, instructions
User Query only

$$

Tip: Start with query-only access, promote curators as needed

Introduction to Databricks Genie

Let's practice!

Introduction to Databricks Genie

Preparing Video For Download...