Condit
condit/semantic layer

Semantic layer

Teach the AI your data, once.

Tables, metrics, business terms, and how everything joins — defined once, used on every question, shared with your whole team. Not a pile of table comments: a real model of what your data means, with checks that catch it when the AI drifts from it.

Condit's Semantic Layer overview, showing Metrics, Glossary, Tables, Relationships, and Checks sections at a glance

How it fits together

Five areas, one model.

Tables, Relationships, Metrics, and Glossary describe what your data means. Checks verify the AI still gets it right. All of it is added to every question you ask on that connection — not documentation sitting next to the product, but context the AI actually reads.

Describe what a table is for

Not just what a column is called — what it’s for, and what it’s not. “Order Details” is described as the table for revenue and sales queries, explicitly notfor catalog or inventory questions — the exact kind of mistake an AI makes without that context.

Condit's Semantic Layer Tables view, showing a description and disambiguation note for the Order Details table

Settle what words mean

“Sales” and “revenue” can mean three different numbers depending on who you ask. Write down which one you mean — gross vs. net, order vs. order line — and every answer uses the same definition, not whatever an LLM guesses on a given day.

Condit's Semantic Layer Glossary view, disambiguating sales, revenue, gross sales, and net sales

Define a metric once

A named metric is a real SQL expression with the edge cases already worked out — like why “average discount rate” has to be revenue-weighted, not a flat average per row. Ask for it by name or synonym, and Condit reuses the same formula every time instead of re-deriving it (possibly wrong) per question.

Condit's Semantic Layer Metrics view, showing the weighted_discount_rate metric with its SQL expression and description

Map how tables actually join

Condit detects candidate joins from your schema’s foreign keys, and you confirm the ones that are right — with cardinality, so a join can’t silently double-count rows.

Condit's Semantic Layer Relationships view, showing a verified one-to-many join with auto-detected candidates below

Catch it when the AI drifts

A real example: a confirmed answer of 4 rows regressed to 2 after an unrelated change, because the generated SQL quietly switched to grouping by the wrong column. Condit flagged it automatically — the question and its confirmed answer are saved, and every re-run is compared against them.

Condit's Semantic Layer Checks view, showing a flagged check where the AI's answer regressed from 4 rows to 2 rows

Import, export, share

One definition for the whole team.

The whole semantic layer exports as one portable JSON file. Commit it to your repo, and every teammate’s Condit imports the identical table descriptions, metrics, and join logic — no more two people’s AI computing “revenue” two different ways.

Already have a dbt project? Import an existing schema.yml directly — your dbt model and column descriptions become Condit’s, with no re-typing.

FAQ

Common questions

What’s in Condit’s semantic layer?

Tables, relationships, metrics, a glossary, and checks — scoped per connection and applied automatically to every question Condit’s AI answers on that connection.

Does the AI fill it in for me?

It can. “Draft with AI” proposes table descriptions, starter metrics, and glossary terms using whichever model you’ve already set up for chat (a local model or your own API key). Nothing is saved until you accept, edit, or discard each draft.

How do Checks know something changed?

You confirm a real question’s answer once, and it becomes a saved baseline (question, SQL, and result). Re-run the check later — after a schema change, a model swap, or just periodically — and Condit compares the new result to the baseline. If they differ, the check is flagged for you to review; the baseline is never overwritten silently.

Does any of this leave my machine?

The semantic layer itself is stored locally and only leaves your machine if you export the file and share it yourself. When you ask a question, the relevant definitions go to whichever model you’ve configured — the same as any other AI request in Condit.

Try it on your own database.

Free with a local model or your own API key. No account required.

↓ Download for free