QuestionQ6

VerifiedKnowledge Retrieval and Genie Configuration

A context engineer runs a finance Q&A agent on Databricks. The agent invokes a Genie space backed by tables in the finance.silver schema, and Genie chooses which table to query for each user QUESTION NO: by reading Unity Catalog table and column metadata. Two tables exist in the schema: revenue and revenue_gross.

MLflow evaluation runs show the Correctness scorer flagging frequent failures in which Genie queries revenue_gross when the user asks about net revenue, and queries revenue when the user asks about gross figures. Both tables are in active production use and must remain available to the Genie space, and the same disambiguation should be usable by other Genie spaces and BI consumers building against the same schema.

Which intervention resolves this failure?

Explanation

Unity Catalog table and column comments can describe the net or gross basis, meaning, and units of each table. Genie uses these descriptions as context when generating queries, while catalog metadata is available to other authorized consumers. Space-level instructions can guide an individual Genie space, but they do not provide the same shared catalog-level disambiguation. (docs.databricks.com)

Learn more

Community Discussion

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