Introduction to Databricks Genie
Gang Wang
Senior Data Scientist

Instructions as "Guardrails"
Instructions should:
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" |

Adding an instruction:

$$
Create a dropdown filter for:
$$
Let users type when:
$$

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