Feature Requests

Metrics Catalog

M
Marcos AlcozerinFeature Requests
8 months ago

A browsable, read-only catalog of all available metrics within Kai, so end users can understand what data is available and what each metric means without having to ask the agent.

Problem

Today, the only way for a Kai user to learn about available metrics is to ask the agent in chat. This works for one-off questions, but falls short when users want to:

  • Get an overview of everything available to them before starting a conversation

  • Compare metrics side by side to understand which one to ask about

  • Share a reference with colleagues who haven't used Kai yet

  • Build confidence in the data before diving into analysis

Districts that want a comprehensive metrics reference today must maintain a separate internal document. That document inevitably drifts out of sync with the semantic layer, creating confusion about which definitions are authoritative. Every org's dbt project already contains complete metric metadata in its manifest files (manifest.json and semantic_manifest.json).

Proposed Solution

A dedicated "Metrics" section in the Kai UI that presents a browsable, read-only catalog of all metrics available to the user's organization.

  • Metrics list view: All metrics displayed in a searchable, filterable list. Each entry shows the metric name, label, a short description, and its data domain/entity grouping.

  • Metric detail view: Clicking a metric shows its full definition -- description, formula/calculation, metric type (simple, ratio, derived), measure aggregation details (sum/count/avg and source expression), available dimensions with descriptions, related metrics (siblings on the same semantic model), and joinable entities.

  • Search and filter: Users can search by name or description, and filter by data domain or entity to narrow down what they're looking for.

User Stories

  • As a district admin, I want to browse all available metrics before starting a chat so that I know what questions I can ask Kai.

  • As a school leader, I want to look up a metric's definition and see how it's calculated so that I can trust the numbers in my chat responses.

  • As a data team member, I want to share a link to a specific metric's catalog page with a colleague so that we're referencing the same definition.

  • As a new Kai user, I want to see an organized view of all metrics grouped by domain so that I can orient myself without needing to know what to search for.

Data Source

Every org in Kai has a linked dbt project. Each dbt project produces two manifest files:

  • manifest.json -- Contains model definitions, column descriptions, and dbt metadata

  • semantic_manifest.json -- Contains metric definitions, measures (aggregation type + expression), dimensions, entities, and semantic model metadata

Together, these files contain everything needed to populate the catalog, including the metadata that the Semantic Layer API doesn't expose (measure aggregation types, underlying column expressions, semantic model descriptions, default time dimensions). Parsing these manifests eliminates the need to call the Semantic Layer API at runtime and provides richer detail than the API alone.

The catalog data pipeline: parse manifest files from each org's dbt project, extract and normalize metric metadata, store in Kai's database, and serve to the UI. Refresh whenever manifests are updated (e.g., after a dbt build).

Success Criteria

  • Users can view all metrics available to their org without initiating a chat

  • Each metric displays: name, label, description, type, formula, measure details, dimensions, and related metrics

  • Users can search metrics by name or description

  • Users can filter metrics by data domain or entity

  • Metric definitions stay in sync with the dbt manifests automatically

  • Metric names in chat responses link to the corresponding catalog entry

Open Questions

  • None at time of writing

Out of Scope

  • Editing or annotating metric definitions from the catalog UI (this is read-only)

  • Governance doc content (business context, caveats, example query patterns)

  • Metric usage analytics

  • Custom metric creation by end users


  1. In Review
  2. Planned
  3. In Progress
  4. Completed
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...