Skip to content
Konstera
Docs · Context Service
Konstera documentation.

Getting started, SDK quickstart, manifest reference, kernel MCP services, deploy guide and FAQ — everything you need to build and run agents on Konstera.

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.

FlowWhere the context your agent reads comes from Interactive — click a block

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:

Glossary

Business term definitions — refund_window_days = 30, vip_tier = {bronze, silver, gold}.

Ontology

Entities with identity strategies + attributes — customer with identity.primary = email, fallbacks = [loyalty_id].

Skills

Named playbooks — evaluate_refund_eligibility.

Three ways a tenant populates these:

PathEffortWhen to use
Standard Context Pack v1None — ships out of the box24 glossary terms, 24 ontology entities, 2 skills covering retail-core concepts. See Standard Context Pack.
Author directly in the portalSlowGlossary CRUD, Ontology editor, Skills builder. Use for custom terms specific to the tenant's business.
Import from a data catalogFastIngest 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 artefactBecomes
MetricsGlossary term drafts (name, description, type, unit)
Model columnsOntology entity attribute candidates
Source relationshipsOntology relationship proposals

Setup (operator-side)

  1. Open the catalog settings

    Portal → Settings → Context → Catalogs → Connect Catalog.

  2. Choose the provider

    Select Semantic layer: dbt Core (manifest upload).

  3. Upload the manifest

    Drag the target/manifest.json from your dbt project.

  4. 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.

  1. Connect

    Catalogs → Connect Catalog → Semantic layer: dbt Cloud.

  2. Authenticate

    Provide the dbt Cloud account ID, job ID and a service token.

  3. 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:

Flow Interactive — click a block

What the LLM proposes from each part of the schema:

Warehouse objectProposed as
TableOntology entity. A heuristic classifier skips *_audit, *_log, *_type, *_lookup, config_* tables and tables with ≤ 2 columns.
ColumnEntity attribute (type, enum values, nullable)
Foreign keyOntology relationship edge, with an LLM-inferred verb (appointmentId → booked_with)

Setup (Postgres example)

  1. Connect

    Catalogs → Connect Catalog → Raw warehouse: Postgres.

  2. Provide credentials

    Host, database and username.

  3. Scan

    Pick schemas → choose a sample size → run the scan.

  4. 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:

ArchitectureEach source feeds one merged, reviewable Context Service Interactive — click a block

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.

Flow Interactive — click a block

Reproducibility across catalog syncs#

Catalog syncs are versioned. Each sync produces a new version of each affected term / entity, with:

  • tenant_context_term.version auto-incremented
  • tenant_context_term.source recording which catalog produced it
  • tenant_context_term.repository_id + repository_name pointing to the source catalog config

Agents calling ctx.semantic.glossary_lookup() get the current active version.

Building agents against catalog-fed context#

Do
  • 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 id alongside outputs that relied on it.
Avoid
  • 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.

See also#