QuestionQ14

VerifiedKnowledge Retrieval and Genie Configuration

A context engineer is investigating why a Genie space serving the sales operations team gives inconsistent answers to revenue questions. When business users ask the same QUESTION NO: across different sessions, for example, “What was Q3 EMEA revenue?”, Genie returns different figures. The space is configured over a Unity Catalog managed table of transaction-level data.

On reviewing the space, the engineer finds:

  • The underlying table has comprehensive table and column comments.
  • The space’s text instructions describe how revenue should be computed, including currency conversion against a daily FX-rate table, accrual-timing rules, and intercompany-elimination logic.
  • The space includes several sample questions covering quarterly and regional revenue patterns.
  • In the query history, Genie composes a new SQL statement for the revenue calculation in each session, and the FX-conversion and elimination steps differ from run to run.

Which change will most reliably stabilize the space’s answers to this team’s revenue questions?

Explanation

A parameterized Unity Catalog SQL function can encapsulate the canonical FX conversion, accrual timing, and intercompany-elimination logic. When Genie uses the function as a trusted asset, it calls the established logic rather than regenerating those calculation steps. An example query may instead be used as a pattern for newly generated SQL, while a SQL expression may not capture the complete multi-step workflow. Results can still change if the underlying data changes. (docs.databricks.com)

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!