• Pricing

timbr core

Knowledge Base for Data Agents

The Knowledge Base is the instruction layer for your ontology. It teaches AI agents which concepts to use, how to traverse relationships, which metrics are authoritative, and how to translate business questions into trusted SQL. Every validated interaction expands this guidance, making future agents smarter and more consistent.

knowledge base data agents process1
Natural-language question Knowledge Base context Governed SQL
The Problem

Every query starts from zero.

A data agent reasons brilliantly over language, but it has no memory of your organization. Conventions, metric definitions, prior decisions, and analyst-vetted patterns carry over from nothing.

Reinvents

The same answer, again

Each question re-derives logic an analyst already solved last week, with slight, often wrong, variations.

Forgets

Success, the moment it ends

A correct, approved query is discarded when the session closes. Nothing accumulates.

Scatters

Knowledge nobody can reach

Tribal knowledge lives in Slack threads, wiki pages, and individual heads, invisible to the agent.

Two Kinds of Knowledge

The ontology knows the data.
The Knowledge Base knows your organization.

Ontology · The Semantic Layer

“What does the data mean?”

Concepts, relationships, measures and governance rules - the structural truth of the business, encoded once.

Knowledge Base · The Interpretive Layer

“How do we actually use it?”

How analysts phrase questions, which joins they prefer, what “Q4 performance” means here, which past questions are equivalent to this one.

The Stack

Where the Knowledge Base sits.

Four layers, each responsible for one job: turning a raw question into governed data.

Asks

Data agent Reasoning

Reasons over the question in natural language.

question + context grounded answer
Remembers

Knowledge Base Memory · this layer

Retrieves and verifies prior knowledge. The interpretive layer.

verified, governed reuse
Means

Ontology Meaning

Concepts, measures, relationships, governance. The structural truth.

semantic model and rules
Stores

Your data platform Data

Queries pushed down and executed where the data already lives.

What It Is, in Timbr

A first-class, governed memory - built into the ontology.

A Knowledge Base is an object you create, name, and manage, just like the ontology itself. It lives alongside the semantic layer and inherits its governance.

01

Scoped per ontology

Each Knowledge Base belongs to an ontology, so its knowledge is always in the right context.

02

Shareable by data agents

Ontologies that share the same Knowledge Base reuse its knowledge automatically.

03

Governed end to end

Approvals are tracked and access is enforced. Every entry has a lifecycle: draft → approved → deprecated.

04

Fast & lightweight

Runs in memory at sub-second latency. No GPUs, no new infrastructure to operate.

What It Remembers

Tribal knowledge, made operational.

Approved Examples

Vetted question → SQL pairs

Real questions paired with analyst-approved logic. When a new question matches, the agent reuses what already worked.

Curated Guidance

Human annotations & rules

Instructions on questions, KPIs and reasoning steps - “revenue means completed orders only,” “default to the last 12 months.”

How It Works

A retrieval step, before generation.

When a question arrives, the Knowledge Base fetches relevant prior knowledge and hands it to the agent as context - before any SQL is written.

01 · Input

Question + ontology

The user's question, interpreted in the ontology's context.

02 · Retrieve

Hybrid search

Lexical and dense vector similarity, fused with reciprocal rank fusion.

03 · Rerank

Cross-encoder

Candidates are re-scored for precision. The strongest matches emerge.

04 · Verify

Governance gates

Path connectivity, parameter schema, and RBAC clearance are checked before reuse.

05 · Decide

Context for the agent

Direct reuse, exemplar guidance, or cold generation.

Learn - the answer and its feedback flow back asynchronously. The Knowledge Base grows with every use. Timbr validates and executes every query - governance, access, and pushdown stay intact throughout.
Graceful Degradation

It always has an answer - and it always knows how confident it is.

Highest Confidence

Direct reuse

A verified, approved query already answers this. Reuse it as-is.

Guided

Exemplar

Close matches become few-shot guidance, steering generation toward proven patterns.

Cold

Ontology-only

No relevant memory yet - generate from the ontology alone, still fully governed.

Governance & Trust

Flexible at the question, governed at the query, learning with every answer.

Agents can interpret intent freely - but nothing touches data until it clears the ontology’s gates. Verification, not hope.

  • Connectivity: valid by the graph Every reused path must actually be reachable in the ontology.
  • Parameters: shapes must match Inputs are checked against the ontology's types before anything binds.
  • Access: permissions enforced Role-based access is applied at retrieval - analysts only ever see what they're cleared to see.
  • Timbr is the execution boundary The Knowledge Base suggests; the ontology decides. Queries only ever run through Timbr.
The Model

Two verbs. Everything else is options.

CREATE spins up the container. ALTER teaches it: every item below is added, updated, or dropped through the same verb, each carrying a consistent OPTIONS(...) block. No new query language for analysts to learn, and nothing to migrate when an entry needs to change.

EXAMPLE · reusable question → SQL pattern INSTRUCTION · guides usage VALIDATION · guards correctness SELECTION_RULE · decides when it’s chosen
1Create 2Teach 3Bind 4Ask
SQL
1 · Create the container
CREATE KNOWLEDGEBASE finance_kb
  DESCRIPTION 'Finance KB';

-- update the container in place
CREATE OR REPLACE KNOWLEDGEBASE finance_kb
  DESCRIPTION 'Updated Finance KB';
SQL
2 · Teach a question → SQL pattern
ALTER KNOWLEDGEBASE finance_kb ADD EXAMPLE monthly_revenue
OPTIONS (
  question     = 'Show total revenue by month',
  validate_sql = true,
  instructions = 'Only include completed orders.'
) AS
SELECT DATE_TRUNC('month', order_date) AS month,
       SUM(amount) AS revenue
FROM orders
WHERE status = 'completed'
GROUP BY 1;
// AS SELECT is optional - write instruction-only guidance with no SQL, or a validated SQL-only pattern with no extra instructions.
SQL
3 · Annotate the ontology - one shape, three uses
-- INSTRUCTION: guides usage
ALTER KNOWLEDGEBASE finance_kb ADD INSTRUCTION revenue_definition
OPTIONS (target_name='revenue', target_type='measure',
  instructions='Reflect only completed orders unless asked.');

-- VALIDATION: guards correctness
ALTER KNOWLEDGEBASE finance_kb ADD VALIDATION revenue_nonnegative
OPTIONS (target_name='revenue', target_type='measure',
  instructions='Revenue should never resolve to a negative value.');

-- SELECTION_RULE: decides when it's chosen
ALTER KNOWLEDGEBASE finance_kb ADD SELECTION_RULE default_customer_join
OPTIONS (target_name='order_customer', target_type='relationship',
  instructions='Prefer a LEFT JOIN unless only matched rows.');
SQL
4 · Bind the ontology to the KB
-- subscribe
ALTER ONTOLOGY timbr_tests
  ADD KNOWLEDGEBASE finance_kb;

-- every query against timbr_tests
-- can now draw on finance_kb
RBAC is enforced at retrieval time - a user only ever sees context they’re cleared for. One Knowledge Base can serve many ontologies; many Knowledge Bases can stack on one. SHOW KBS, SHOW KB EXAMPLES, and SHOW KB RULES make every item inspectable at any time.
In Practice

From question to governed SQL, in one pass.

The knowledge entries from the previous section do their job: three approved items combine into one traceable, executable query.

Analyst Asks

“What was our monthly revenue last year?”

  • EXAMPLE · monthly_revenue Approved question → SQL pair, retrieved as a high-confidence match.
  • INSTRUCTION · revenue_definition “Reflect only completed orders.”
  • SELECTION_RULE · completed_orders_default Defaults the status filter.
Injected Context → Governed SQL
SELECT DATE_TRUNC('month', order_date) AS month,
       SUM(amount) AS revenue
FROM orders
WHERE status = 'completed'          -- from rule
  AND order_date >= DATE_TRUNC('year', NOW()) - INTERVAL '1 year'
GROUP BY 1
ORDER BY 1;

-- validated and executed through Timbr governance
The Flywheel

It gets better the more it's used.

Approved work compounds

Every approved query becomes future context. The Knowledge Base grows organically from real analyst work.

Corrections become signal

Every correction is a labeled signal; every reviewer annotation becomes guidance for the next similar question.

Fast & bounded

Retrieval runs entirely in memory, returning context in under a second, inside Timbr’s execution boundary.

Value accumulates as a durable asset - it doesn't evaporate when the session ends.
Where This Sits

A third position in the data-agent field.

Camp One

Thin LLM wrappers

Fast to demo, fragile in production. Hallucinate, and govern nothing.

Camp Two

Rigid templates

Robust but inflexible - every query pattern must be predefined by engineers.

Most teams have one piece. Timbr already has the semantic layer - the Knowledge Base adds the memory.

In Summary

Give your data agent a memory it can trust.

Governed by the ontology, fast by design, and growing more valuable with every approved query.

Timbr Product Overview

Partner programs enquiry

The information you provide will be used in accordance with the terms of our

privacy policy.

Schedule Meeting

Model a Timbr SQL Knowledge Graph in just a few minutes and learn how easy it is to explore and query your data with the semantic graph

Model a Timbr SQL Knowledge Graph in just a few minutes and learn how easy it is to explore and query your data with the semantic graph

Register to try for free

The information you provide will be used in accordance with the terms of our privacy policy.

Talk to an Expert

Your PDF Is On Its Way!

We’ve emailed the PDF to the address you provided.

If you don’t see it in a couple of minutes, please check your Promotions or Spam folder.

Thank You!

Our team has received your inquiry and will follow up with you shortly.

In the meantime, we invite you to watch demo and presentation videos of Timbr in our Youtube channel: