Glossary

The glossary exists to solve a specific problem: people don't talk like database schemas.

The glossary solves a fundamental problem: people don't talk like database schemas.

Your sales team talks about "quotes", but your database calls them "contracts with status='quoted'". Your executives ask about "active customers", but your schema has multiple flags and date fields that define "active". The glossary bridges this gap by mapping business terminology to your semantic layer.

Why Use a Glossary?

Natural Language Understanding

When someone asks "How many quotes did we make this year?", agents need to know that "quotes" maps to specific filters, measures, or models in your semantic layer.

Without a glossary, agents must guess what "quotes" means. With a glossary, they know exactly which components to use.

Consistency

Everyone uses the same definition. When your sales team, marketing team, and executives all ask about "active customers", they get the same answer because the glossary defines it once.

Discoverability

Users can ask questions using the terms they know, without needing to understand your data schema or semantic layer structure.

Creating a Glossary Term

When you add a term to your glossary, you'll configure several components:

Term Name

The business word or phrase you want to define.

Examples: Active Customer, Quote, Premium User, Transaction, Order Status

Use terms that match how your team naturally talks about your business.

Definition

A clear, complete explanation of what this term means in your business context.

Example: "A customer with at least one transaction in the last 90 days and an active subscription status."

Write definitions that someone unfamiliar with your business could understand. Explain edge cases and important distinctions.

Synonyms

Alternative words or phrases people might use for this term. This helps agents understand questions phrased different ways.

Example: For the term "Active Customer", you might add synonyms:

  • Current Customer

  • Engaged Customer

  • Active Account

When someone asks about "current customers", agents will know to use the "Active Customer" glossary term and its mappings.

To add synonyms, type them in the field and press Enter. You can add multiple synonyms for each term.

Tags

Organizational labels that help categorize your glossary terms. These are optional but helpful for managing large glossaries.

Example tags: core-concept, user-types, metrics, time-periods

Tags appear in the UI and help users browse related terms.

Mappings: Connecting Terms to Your Data

The most powerful part of the glossary is mappings—connecting business terms to specific semantic layer components. This is how agents know what to query when someone uses a glossary term.

Models Mapping

Connect this term to one or more models in your semantic layer.

Example: The term "Active Customer" might map to the customers model, since active customers are represented in that model.

When you map a term to a model, you provide a description explaining the connection: "Customers with recent activity and valid subscription status"

Dimensions Mapping

Connect this term to specific dimensions that represent or describe this concept.

Example: The term "Active Customer" might map to:

  • customer_tier dimension - "Customer tier - either 'premium', 'standard', or 'basic'"

When someone asks "Show me active customers by tier", agents know to use the customer_tier dimension.

Filters Mapping

Connect this term to pre-defined filters that subset data to this concept.

Example: The term "Active Customer" might map to:

  • active_customers_only - "Filter to include only customers with recent activity"

  • premium_customers_only - "Filter to include only premium tier customers"

When someone asks "Show me just active customers", agents know to apply the active_customers_only filter.

Measures Mapping

Connect this term to measures that count, sum, or aggregate this concept.

Example: The term "Active Customer" might map to:

  • total_customers - "Total count of customers"

  • total_active_customers - "Count of active customers only"

  • total_premium_customers - "Count of premium tier customers only"

When someone asks "How many active customers do we have?", agents know to use the total_active_customers measure.

Metrics Mapping

Connect this term to metrics that calculate business KPIs related to this concept.

Example: Customer-related terms might map to metrics like monthly_active_customers, customer_retention_rate, or average_revenue_per_customer.

When someone asks "What's our weekly active user count?", agents use the mapped metric.

How Agents Use the Glossary

When a user asks a question, agents:

  1. Identify business terms in the question

  2. Look up those terms in the glossary

  3. Use the mappings to find relevant models, dimensions, filters, measures, or metrics

  4. Construct the query using those components

Example Flow:

  • User asks: "How many customers placed orders last week?"

  • Agent finds "customers" in glossary → mapped to customers model and total_customers measure

  • Agent finds "orders" in glossary → mapped to orders model

  • Agent finds "last week" → uses time dimension with week grain

  • Agent constructs query combining these components

Alphabetical Organization

The glossary displays terms alphabetically in the UI, grouped by first letter (A, B, C, etc.). This makes it easy to browse and find terms.

Each term shows:

  • The term name

  • A brief preview of the definition

  • A count of mappings (shown as a number badge)

Best Practices

Define commonly used terms first: Start with the words your team uses most frequently in questions.

Include variations: Add synonyms for how different departments might refer to the same concept.

Write clear definitions: Assume the reader doesn't know your business. Explain edge cases and important distinctions.

Map comprehensively: Connect each term to all relevant models, dimensions, filters, measures, and metrics. The more mappings, the better agents can answer questions.

Update regularly: As your business evolves and your semantic layer grows, keep your glossary current.

Use descriptions in mappings: When you map a term to a component, always include a description explaining the connection. This helps both agents and your team understand the relationship.

Glossary vs Semantic Layer Components

Glossary = Business vocabulary and how it maps to your data Models, Metrics, Measures = Technical structure of your data

The glossary is the bridge between how people talk and how data is organized. Without it, agents must guess. With it, they can confidently translate questions into queries.

Last updated

Was this helpful?