cubiclabs
ConceptSample company: a Dutch food wholesaler with three distribution centres

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.

Databricks Unity Catalog Metric views
AssistantNoordvaart Foodservice · Week 47
Saved questions
Recent
Reads from
sales_mv
stock_mv
waste_mv
service_mv

Pinned

New chat

wholesale.metrics

Sample 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

ERPExcel files

Sources

Orders, stock, waste and customer data from the ERP, plus a few spreadsheets.

DatabricksDelta Lake

Lakehouse

Bronze, silver and gold tables, loaded nightly, with access rules in Unity Catalog.

Metric views

Metrics

One definition each for revenue, margin %, waste %, service level and stock cover.

Databricks Apps

Assistant

Takes the question, picks a metric, runs the query and shows the steps, the answer and the SQL.