Skip to main content
Preview Ontology is one shared model of your business that agents read before they query your data. Data and platform teams define customers, orders, and their relationships so agents share the same meaning. You describe the model once, publish it as a fixed release, and map it to your warehouse tables. Agents then ask for just the part of the model a task needs. The running example on these pages is a retail company. Its model has four object types (Customer, Order, Product, Store) and two links: a Customer places an Order, and an Order contains Products. Its warehouse tables, such as analytics.sales.orders, are the same ones the Metrics Studio pages use.

How it works

Logical definitions follow five steps. The context tools read published releases.

What you can do

Model your business

Add types and links, then publish your first release.

Map model to tables

Tell agents which tables, columns and joins hold each type.

Give agents bounded context

Agents fetch only the definitions a question needs.

Govern policy records

Keep policies and controls with effective dates.

Review drafts from agents

Agents propose definitions; a person approves the save.

Automate with API

Import, validate and publish releases from scripts.

Get started

Build your first ontology

Publish a retail model and inspect its agent context in 15 minutes.

Key concepts

  • Object type: a kind of business thing, such as Customer, with its properties.
  • Link type: a named relationship between two types, such as Customer places Order.
  • Release: a published, unchangeable snapshot of the model that agents read.
  • Draft workbench: a saved, unpublished snapshot of work in progress.
  • How bindings work: a published mapping from one release to tables, columns and joins.
  • Knowledge record: a policy or control stored with the dates it is in force.

Ontology and Metrics Studio

Metrics Studio and Ontology give agents different parts of the same business context. Metrics govern what is measured and how it is calculated, including its grain, population and filters. Ontology supplies shared business definitions, relationships and policy context that help agents interpret the results. Use both for a question such as “Why did average order value drop in March?”: the metric gives the number and how it was calculated, and the ontology gives the definitions of customers, orders and products, how they relate, and which policies were in force. Explaining why the number changed still takes observations and analysis of the data itself; ontology context alone doesn’t establish a cause. A metric carries its own source table and joins, so you don’t need a binding for a number Metrics Studio already defines. Both products release versions that agents read through MCP Gateway, and neither runs SQL.

Roll out one domain first

Start with one small domain and take it all the way to an agent answer you can check, before you add more. Name a person to approve each layer:
  • Model owner: definitions, links and terminology, and each logical release.
  • Source owner: bindings, and a check against the warehouse itself that the tables, keys and joins they name are right. Ontology validation can’t do this; it never connects to the warehouse.
  • Record steward: policy records, their effective dates and cited documents, and each record-set release.
Then score the agent on questions with known answers, and look at what it read on each one, with evals and traces, the same way you would for an agent on Metrics Studio. Keep the release IDs each answer used; see Keep an audit trail.

Studio or API

Ontology Studio and the API share the same release rules, so you can start in one and continue in the other.

Common tasks

Availability and limits

  • Preview, opt-in app. An administrator installs the Ontology app; it is not part of default onboarding. See Install and manage apps.
  • No data copy. Ontology stores definitions and a small set of governed policy records. Customer, order and other warehouse rows stay in your warehouse.
  • No SQL runs. Neither Ontology nor bindings connect to a source, generate SQL or run a query. Agents query with their own connection.
  • Actions are described, not run. An action type records what an operation needs and changes. Nothing executes it.
  • Release size. One release holds up to 256 definitions.

Reference

Troubleshooting

See Ontology errors for import, validation, publication and context errors.