Data catalogs — where context comes from
Agents read from the Context Service via ctx.semantic.*. This page covers
the other side: how a tenant populates the glossary, ontology, and
skills the agents eventually read. Agent authors should understand this
because it determines what's actually available at ctx.semantic.* on
different tenants.
For the agent-side read API, see Context Service for agent authors.
The problem data catalogs solve#
The Context Service wants three things per tenant:
Business term definitions — refund_window_days = 30, vip_tier = {bronze, silver, gold}.
Entities with identity strategies + attributes — customer with identity.primary = email, fallbacks = [loyalty_id].
Named playbooks — evaluate_refund_eligibility.
Three ways a tenant populates these:
| Path | Effort | When to use |
|---|---|---|
| Standard Context Pack v1 | None — ships out of the box | 24 glossary terms, 24 ontology entities, 2 skills covering retail-core concepts. See Standard Context Pack. |
| Author directly in the portal | Slow | Glossary CRUD, Ontology editor, Skills builder. Use for custom terms specific to the tenant's business. |
| Import from a data catalog | Fast | Ingest from an existing semantic layer (dbt, Looker, Cube) or introspect a warehouse directly. For tenants with established data infrastructure. |
This page covers the third path.
Supported catalogue providers#
dbt (Core)#
Upload a target/manifest.json file produced by dbt compile or dbt docs generate.
The platform parses the dbt 1.6+ manifest shape and extracts:
| dbt artefact | Becomes |
|---|---|
| Metrics | Glossary term drafts (name, description, type, unit) |
| Model columns | Ontology entity attribute candidates |
| Source relationships | Ontology relationship proposals |
Setup (operator-side)
- Open the catalog settings
Portal → Settings → Context → Catalogs → Connect Catalog.
- Choose the provider
Select Semantic layer: dbt Core (manifest upload).
- Upload the manifest
Drag the
target/manifest.jsonfrom your dbt project. - Review the drafts
The platform runs the parse and proposes glossary drafts for review.
dbt Cloud#
Same shape as dbt Core, but polls dbt Cloud's API on a schedule — no manual upload needed.
- Connect
Catalogs → Connect Catalog → Semantic layer: dbt Cloud.
- Authenticate
Provide the dbt Cloud account ID, job ID and a service token.
- Pick a schedule
Hourly, daily, or manual trigger.
SQL Assistant (raw warehouse introspection)#
For tenants without dbt but with a warehouse. The SQL Assistant connects to Postgres, Azure SQL / SQL Server, or Snowflake and works in three stages:
What the LLM proposes from each part of the schema:
| Warehouse object | Proposed as |
|---|---|
| Table | Ontology entity. A heuristic classifier skips *_audit, *_log, *_type, *_lookup, config_* tables and tables with ≤ 2 columns. |
| Column | Entity attribute (type, enum values, nullable) |
| Foreign key | Ontology relationship edge, with an LLM-inferred verb (appointmentId → booked_with) |
Setup (Postgres example)
- Connect
Catalogs → Connect Catalog → Raw warehouse: Postgres.
- Provide credentials
Host, database and username.
- Scan
Pick schemas → choose a sample size → run the scan.
- Review proposals
Work through the Ontology proposals queue — bulk accept / reject per scan.
Self-authored (fallback)#
Tenants without a semantic layer and without a warehouse can still author directly via the portal. The authoring UX is documented in the admin guide, not on this page.
Multiple catalogs per tenant#
A tenant can connect several catalogs at once. A typical mix:
The Context Service merges proposals from all sources — each draft shows its source, sync time and repository ID. On conflict (the same term from two sources with different definitions), the admin picks which to keep via the ontology proposals queue.
Draft → active lifecycle#
Catalog ingestion lands records as drafts by default. Agents reading
ctx.semantic.* only see active records.
Reproducibility across catalog syncs#
Catalog syncs are versioned. Each sync produces a new version of each affected term / entity, with:
tenant_context_term.versionauto-incrementedtenant_context_term.sourcerecording which catalog produced ittenant_context_term.repository_id+repository_namepointing to the source catalog config
Agents calling ctx.semantic.glossary_lookup() get the current active version.
Building agents against catalog-fed context#
- Treat
ctx.semantic.*results as tenant-specific — what exists depends on which catalogs the tenant connected. - Expect a delay between a dbt metric shipping and it being readable: it must be accepted first.
- Store the version-pinned term
idalongside outputs that relied on it.
- Assume a term exists just because it's in the tenant's dbt project — drafts are invisible to agents.
- Hard-code definitions an admin can change; look them up at run time.