What you will be able to do
- Decide whether a piece of business logic belongs in a SQL expression, an example SQL query, or a text instruction
- Write domain-specific text instructions, including instructions that make Genie ask clarifying questions
- Add example SQL queries, including suggested workspace queries, with titles that match how users ask
- Identify which assets count as Trusted Assets and what permissions they require
1.Domain-specific instructions: SQL first, text last
Once the data is attached, you teach Genie your business. You can do this in three ways, and Databricks ranks them clearly. Use SQL expressions in the knowledge store for common business terms, such as metrics, filters and dimensions. Use example SQL queries for complex or multi-part questions. Use plain-text instructions only for guidance that cannot be written as SQL. SQL-based definitions are more reliable and easier to maintain than text.
| Mechanism | Use it for | Example from the docs |
|---|---|---|
| SQL expressions | Frequently used metrics, filters, or dimensions | revenue, active_customers, gross_margin, recent_sales |
| Example SQL queries | Hard-to-interpret, multi-part, or complex questions | "breakdown my team's performance" |
| Text instructions | Guidance that requires natural language explanation | "Always round percentages to two decimal places in summaries." |
Write text instructions on the Text tab under Configure. General instructions apply to every question. If something applies only to some questions, put it in an example query, a function, or a table comment instead. Keep the list short: too many instructions make it harder for Genie to know which ones matter most, especially in long conversations. A space can hold 100 instructions. Each example SQL query counts as one, each SQL function counts as one, and the whole General instructions block counts as one. The docs give this example of good general instructions:
- **Company-specific business information**:
- Fiscal year starts in February, for example fiscal year 26 or FY26 is February 1, 2026 through January 31, 2027
- **Formatting**:
- Always respond in Spanish
- If no other specification exists, round all decimals to two places
- Omit commas in results for any column including "Id" or "id" or "\_id"Vague instructions don't help. To make Genie ask a clarifying question, say exactly when to ask and what to ask. Put these instructions at the end of your general instructions so Genie gives them priority. To change how Genie writes its summaries, such as the language or the citing of tables, add a section titled "Instructions you must follow when providing summaries". Only text instructions affect summaries. Finally, keep all your guidance consistent. If a text instruction says to round to two decimals, your example SQL must also round to two decimals.
Checkpoint 1 of 5· Match them up
Match each part of a clarification instruction to its role.
Tap a term, then the definition that fits it.
A good clarification instruction says when it applies, what information is missing, that Genie must ask, and exactly what to ask.
“Add clarification question instructions at the end of your general instructions to help Genie prioritize this behavior”Source: docs.databricks.com
Checkpoint 2 of 5· Exam question
An analyst tries to select a SQL warehouse while creating a Genie space, but the warehouse they need never appears in the picker. A workspace admin checks and finds the analyst has broad catalog access but nothing configured on the warehouse itself. What must be granted on the SQL warehouse for it to show up as selectable?
Correct answer: A — CAN USE permission on the SQL warehouse, which is the minimum access level required before it can be attached to a Genie space
- A. This is correct because CAN USE is documented as the minimum permission level a user needs on a SQL warehouse before that warehouse becomes available to attach to a Genie space.
- B. This is incorrect because Genie spaces do not require administrative control of the warehouse; the far lower CAN USE level is sufficient for attaching it.
- C. This is incorrect because attaching a warehouse to a Genie space only requires the ability to submit queries against it, not a separate restart-level permission.
- D. This is incorrect because read-only visibility does not let the warehouse actually execute queries submitted by the space; CAN USE, not CAN VIEW, is the required level.
2.Example SQL queries and suggested queries
You add example queries on the Examples tab. Each one is a question paired with the SQL that answers it. For the title, use the most common way a user would phrase the question, because that helps Genie match new questions to it. If a question matches, Genie can use the query as is. If a question is only similar, Genie learns from the query's structure. Choose examples that show logic specific to your organization, like this pipeline definition:
-- Return our current total open pipeline by region.
-- Opportunities are only considered pipelines if they are tagged as such.
SELECT
a.region__c AS `Region`,
sum(o.amount) AS `Open Pipeline`
FROM
sales.crm.opportunity o
JOIN sales.crm.accounts a ON o.accountid = a.id
WHERE
o.forecastcategory = 'Pipeline' AND
o.stagename NOT ILIKE '%closed%'
GROUP BY ALL;You don't have to write every example yourself. When you add data, Genie searches for popular workspace queries on those tables that you have at least CAN VIEW on. If it finds some, it shows a Review notification on the Data tab. In the Review Suggested Queries dialog, you can edit the question title, but the SQL in the Code field is read-only. Click Accept or Reject for each one. Accepted queries become fully editable examples. Genie suggests queries only for tables attached to the space. If you built a view just for Genie, queries against the original source table won't be suggested. To tell Genie when an example applies, add Usage guidance to it.
Checkpoint 3 of 5· Check yourself
You're reviewing a suggested workspace query, and its SQL needs a small fix. What can you do?
The Code field in the review dialog is read-only. Once you accept a query, both the SQL and the question become editable.
“After they are added to the agent, the suggested queries and associated questions are fully editable.”Source: docs.databricks.com
3.Vetting queries as Trusted Assets
Trusted Assets are how you vet a query. When Genie answers using one, the response is marked as a verified answer, which gives users extra confidence. There are two kinds. The first is a parameterized example SQL query. Genie marks the answer as verified only when it uses the query's exact text, and users can then change the parameter value and run it again. To add a parameter, click Add parameter or type a colon followed by a name (:parameter_name) in the query editor. Then fill in the parameter details:
| Field | Meaning |
|---|---|
| Keyword | The parameter's name in the query; change it only by editing the query text |
| Data type | String, Date, Date and Time, Decimal, or Integer; default is String |
| Comment | Possible values or limits, to help Genie pick the correct value |
Choose the data type carefully. If a value doesn't match the type, Genie treats it as the wrong type, and the results can be wrong. The second kind of Trusted Asset is a SQL function registered in Unity Catalog. Use one when the logic is too complex for a static or parameterized query. Genie supports scalar functions and table-valued functions. Genie can call a function with values from the user's question, but it cannot see or change the SQL inside it. That makes functions a good fit for logic you want to keep hidden or protected.
Two permission rules apply. To add or remove Trusted Assets, you need at least CAN EDIT on the space. Users of the space need EXECUTE on every SQL function used as a Trusted Asset. Once your assets are in place, be the space's first user. Ask realistic questions, read the SQL Genie generates, and adjust your instructions and examples until the answers are reliable.
Checkpoint 4 of 5· Check yourself
A space includes a Unity Catalog SQL function as a Trusted Asset. A business user has SELECT on every table, but questions that need the function still fail for them. What permission is most likely missing?
To use a SQL function as a Trusted Asset, users need EXECUTE on it. CAN EDIT is what authors need to add or remove Trusted Assets. Warehouse access comes from the credentials embedded in the space.
“Agent users must have EXECUTE permission on any SQL functions used as trusted assets.”Source: docs.databricks.com
Checkpoint 5 of 5· Exam question
A finance team wants to build a comprehensive Genie space by adding all 68 tables and views in their finance schema, hoping to give Genie maximum context for any possible question. What constraint applies here, and what is the better approach?
Correct answer: A — A Genie space supports at most 50 tables, views, and metric views combined, so the team should curate a focused subset instead of the entire schema
- A. This is correct because a Genie space is limited to 50 tables, views, and metric views combined, and Databricks guidance favors a small, well-documented curated set over dumping in an entire schema.
- B. This is incorrect because a Genie space does not support unlimited datasets; there is a documented 50-object cap that the finance team would exceed with 68 tables and views.
- C. This is incorrect because the actual limit is 50 combined objects, not 10, so splitting into several spaces for a 68-object schema is unnecessarily aggressive.
- D. This is incorrect because the 50-object limit counts tables, views, and metric views together, so mixing in views does not let the team exceed the cap with all 68 objects.
Exam traps
Each one states something that sounds right. Open it to see what is actually true.
1.Every example SQL query you add to a space is a Trusted Asset and produces a verified answer.Why is that wrong?
Only parameterized example queries and Unity Catalog SQL functions are Trusted Assets. The answer is marked verified only when Genie uses the exact text of a parameterized query.
Covered in Vetting queries as Trusted Assets
2.Text instructions are the main way to define business metrics such as revenue or gross margin in a Genie space.Why is that wrong?
Metrics should be defined as SQL expressions, and complex patterns as example SQL. Text instructions are a last resort.
Covered in Domain-specific instructions: SQL first, text last
Sources
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“Use text instructions only as a last resort when SQL expressions and examples cannot address the need.”
↩︎ Domain-specific instructions: SQL first, text last“Too many instructions can reduce effectiveness, especially in longer conversations”
↩︎ Domain-specific instructions: SQL first, text last“if text instructions specify rounding decimals to two digits, then example SQL queries must also round to two digits”
↩︎ Domain-specific instructions: SQL first, text last“Only text instructions affect summary generation.”
↩︎ Domain-specific instructions: SQL first, text last“You should be your agent's first user.”
↩︎ Vetting queries as Trusted Assets“Use text instructions only as a last resort when SQL expressions and examples cannot address the need.”
↩︎ Exam trap 2“Add clarification question instructions at the end of your general instructions to help Genie prioritize this behavior”
↩︎ Checkpoint - 2.
“Each example SQL query, each SQL function, and the entire General instructions text block each count as one instruction.”
↩︎ Domain-specific instructions: SQL first, text last“use the most typical phrasing of the user's question as the title”
↩︎ Example SQL queries and suggested queries“Trusted assets are example SQL queries and SQL functions that provide verified answers to questions you anticipate from users.”
↩︎ Vetting queries as Trusted Assets“Users with at least CAN EDIT permission on a Genie Agent can add or remove trusted assets.”
↩︎ Vetting queries as Trusted Assets“Genie cannot view or modify the SQL used in the function”
↩︎ Vetting queries as Trusted Assets“In chat mode, when the exact text of a parameterized query is used in a response, Genie provides a verified answer.”
↩︎ Exam trap 1“Agent users must have EXECUTE permission on any SQL functions used as trusted assets.”
↩︎ Checkpoint - 3.
“Genie automatically searches for relevant popular workspace queries associated with those assets.”
↩︎ Example SQL queries and suggested queries“Genie does not suggest queries on tables that are not added to the agent.”
↩︎ Example SQL queries and suggested queries“After they are added to the agent, the suggested queries and associated questions are fully editable.”
↩︎ Checkpoint
Also cited
“Parameterized example queries and SQL functions whose exact logic has been verified by an agent author.”
↩︎ Prediction