Ask your numbers.
A chat on top of the governed metrics. Every answer shows the metric it used and the query it ran, so people can check it.
sales_mvstock_mvwaste_mvservice_mvPinned
New chat
wholesale.metricsSample data. Names and figures are made up for this demo.
What we built
- Answers only from the metric views in Unity Catalog, never from raw tables
- Shows the agent steps, the metric and the query behind every number
- Says so when a question is outside the metrics
- Runs as a Databricks App inside your workspace, with the permissions of the person asking
The assistant does not write free SQL against raw tables. It asks for a measure by name, so the margin in the chat is the margin finance signs off. If you cannot see a distribution centre in Unity Catalog, you cannot see it in the chat either.
In this concept the answers are scripted. A live version would use a language model to turn the question into a metric query, and it would refuse questions that no metric covers instead of guessing.
How it is built
Sources
Orders, stock, waste and customer data from the ERP, plus a few spreadsheets.
Lakehouse
Bronze, silver and gold tables, loaded nightly, with access rules in Unity Catalog.
Metrics
One definition each for revenue, margin %, waste %, service level and stock cover.
Assistant
Takes the question, picks a metric, runs the query and shows the steps, the answer and the SQL.