Choose Your Surface
Analyze Data
Chat with your data in governed workspaces in the Credible App.
Build Data Apps
Build and use interactive dashboards and applications shipped with your packages.
Connect your Agent
Connect Claude, ChatGPT, Gemini, or any MCP-compatible chat client to your semantic models.
Connect with Slack
Ask data questions from any channel or DM with the
@CredibleData bot.get_context and execute_query — and the same open-source agent skills that encode how to use them well. The only difference is where the agent runs: inside Credible, inside your agent, or inside your application.
How It Works
The engine works in three stages: distill your published models into an efficient, servable form, retrieve the right context for each question, and generate a grounded query.Distill
When you publish, the engine distills your model — the data and its context — into a representation built for serving:- It indexes meaning. Everything your model declares — the sources, dimensions, measures, and views; the business definitions in your
#(doc)descriptions; and the actual data values of every#(index)-tagged dimension — becomes a searchable index. This is the metadata you added in Discovery. - It materializes data. Every
#@ persistsource is built into a managed physical table, so queries serve from a fast, cheap copy instead of re-scanning your warehouse. This is the optimization you added in Performance & Cost.
Retrieve
When a question comes in, embedding-based semantic search matches it to governed entities by meaning, not by exact names. Ask about “soccer games” and the engine finds a program titled “World Cup Finals” through its indexed values and a “Sports” genre through its documentation — no exact string match, no prior knowledge of the schema. Just as important is what the engine doesn’t do: it doesn’t dump the entire model into every request. It retrieves the context that matches the question’s intent, so the agent gets the relevant definitions, relationships, and rules — and nothing to get lost in.Generate
The engine returns more than matches: it suggests a Malloy query addressing the question, built from governed views and matched entities. From there the agent does the querying — running, refining, and building on that grounded starting point as the conversation develops, guided by Credible’s open-source agent skills.Why Retrieval-First?
This design mirrors how people actually approach data. A business user rarely arrives with a query in hand — they have a goal (“understand customer churn”), a question (“why did revenue drop?”), or a hunch (“I think returns are up”). The traditional path forces them to learn the schema first; the Context Engine inverts it:- Understand the question — interpret what the user is trying to learn
- Discover relevant data — find governed entities that can help, even with imprecise terminology
- Suggest an approach — hand the agent not just data, but a way to analyze it
- Iterate naturally — follow up, refine, and explore in conversation, letting each answer and the model’s related dimensions suggest where to look next
get_context shows exactly which entities matched and why.
Optimizing for Retrieval
Beyond trust, a retrieval-based architecture has two big advantages:- It’s token-efficient. The agent receives the context that matches the question — not the whole model — so answers are faster, cheaper, and don’t degrade as your models grow.
- It’s measurable. You optimize what you measure — and you can’t optimize what you can’t measure. Retrieval quality is directly measurable, and semantic model quality with it: every question is a test of whether the model surfaced the right entities.
#(doc) and #(index) tags, republish, and every surface improves at once. And you’re not on your own: Credible’s open-source skills and our solutions engineers help you measure and optimize your models as your business and data evolve.
See Discovery for the full guide to documenting and indexing your models.