top of page

Ontology and AI: Why Agents Need Business Context, Not Just Data

peterrivera813
Nov 15
6 min read


Imagine you ask an AI agent a simple question: "How many of our customers are at risk of churning this quarter?" Within seconds it returns a confident number, a tidy chart, and a short explanation, and everything about the answer looks trustworthy. The problem is that the number is wrong, and nobody in the room can tell, because the agent quietly picked one of five different definitions of "customer" that exist across your systems and never told you which one it used.

If you have worked in infrastructure or data for any length of time, this probably feels familiar, because people have been disagreeing about definitions in meetings for decades. What has changed is that we are now handing those same ambiguous definitions to AI agents that act on them at machine speed, and the agents do not pause to ask what we meant. In this post I want to explain, in plain language, why giving agents more data rarely fixes this, and why giving them business context through an ontology often does.


So what is an ontology, really?


An ontology is a shared, written-down description of the things your business cares about, how those things relate to each other, and the rules that apply to them. The word sounds academic, but the idea is something every company already has in an informal way, scattered across people's heads, old slide decks, and tribal knowledge. An ontology simply takes that knowledge and makes it explicit, consistent, and readable by both people and machines.

A helpful way to picture it is as the combination of a company dictionary and an org chart, but for your data instead of your people. The dictionary part says what a "customer", an "order", or a "shipment" actually means in your business, while the org chart part says how they connect, for example that a customer places many orders and each order contains one or more shipments. On top of that you can add rules, such as the fact that a shipment arriving more than two days after its promised date counts as late and may trigger a penalty.

It also helps to separate this from things you may already know. A database schema tells you how data is stored, a data catalog tells you where data lives, and an ontology tells you what the data means. All three are useful, but only the last one captures the business understanding that a new employee would otherwise spend months picking up.


Why more data does not make agents smarter


An AI agent is very good at reading what is in front of it, but it cannot read what was never written down. When you connect an agent to your tables, documents, and APIs, it can see column names, rows of values, and paragraphs of text, yet it has no reliable way of knowing which of two similar fields is the official one, or that a status of "closed" means something different in the support system than it does in finance.

So the agent does what a capable but new colleague would do under pressure, which is to guess based on patterns it has seen before. Most of the time the guess is reasonable, and that is exactly what makes the failures dangerous, because a wrong answer delivered with a polished explanation is far harder to catch than an obvious error.

This is also why the usual fix of adding more data often backfires. Every new source adds another set of names, definitions, and quirks, so the agent has more places to get confused and more plausible-looking ways to be wrong. What the agent is missing is not volume, it is meaning, and meaning has to come from somewhere other than the raw data itself.


A simple example: the late shipment question


Let's make this concrete with a small logistics company and a question an operations manager might type into an agent: "Which customers had late deliveries last month, and what do we owe them?" To answer it well, the agent needs far more than a list of tables, and the comparison below shows what it sees with and without an ontology.

What the agent needs to know

Without an ontology

With an ontology

What "customer" means

Picks whichever customer table it finds first, possibly a billing contact or a sales lead

Uses the one agreed definition: an account with at least one active contract

What "late" means

Compares two date columns and hopes they are the right ones

Applies the rule that late means delivered more than two days after the promised date

How things connect

Guesses joins between orders, shipments, and invoices from column names

Follows defined relationships: customer places order, order contains shipments

What is owed

Invents a calculation or leaves it out

Applies the penalty rule attached to late shipments in each contract

Notice that nothing in the right-hand column requires new data. The shipments, orders, and contracts were already there, and the ontology simply tells the agent how to read them. That is the whole idea in miniature, and it is why a modest amount of modelling work can change the quality of an agent's answers far more than another round of data integration would.


Where this shows up in Azure


Microsoft has clearly noticed the same gap, and the Azure ecosystem now has several places where business meaning can live. Microsoft Fabric IQ includes an ontology capability aimed at defining business entities, relationships, and rules on top of your Fabric data, and Foundry IQ can use a Fabric IQ ontology as a knowledge source for agents, which at the time of writing is listed as a public preview. Azure Digital Twins has offered a model-based approach for years through DTDL, mostly for physical environments such as buildings and factories. Feature status changes quickly, so please check Microsoft's current documentation before you design anything around a specific capability.

As an infrastructure architect, I find the more interesting question is not which product to pick, but who owns the definitions. If the ontology lives in one place and is governed like any other shared platform asset, agents across your organization can rely on the same meaning. If every team builds its own version inside its own project, you have simply recreated the five-definitions-of-customer problem at a higher level, and the agents will happily amplify it.


How to start without boiling the ocean


The most common mistake I see is trying to model the entire company on day one. That approach produces a huge diagram, months of workshops, and an ontology that is out of date before anyone uses it, so a much better habit is to start from a single decision or question that matters, such as the late shipment example above, and model only what an agent needs to answer it well.

A practical starting path looks like this:

  1. Pick one high-value question that people already ask and currently get inconsistent answers to.

  2. List the five or six business terms involved and agree, in writing, on what each one means and who owns the definition.

  3. Map how those terms connect and capture the two or three rules that turn raw data into a business answer.

  4. Connect an agent to that small model, test it against questions where you already know the correct answer, and only then expand.

The second common mistake is treating the ontology as a one-time project instead of a living asset. Definitions change when products, regulations, and organizations change, so it needs an owner, a review rhythm, and ideally version control, in the same way you would treat any other piece of shared platform infrastructure.


The Takeaway


AI agents are only as reliable as the context we give them, and raw data on its own carries very little context. An ontology closes that gap by writing down what your business terms mean, how they relate, and which rules apply, so that an agent can reason the way an experienced colleague would instead of guessing from column names.

If you take one thing from this post, let it be this: before you invest in connecting more data to your agents, ask whether your organization can answer "what does this word mean here?" in a single, agreed place. If the answer is no, that is probably the most valuable thing to fix first, and the good news is that you can start small, with one question and a handful of terms.

In a follow-up post I would like to dig into the architecture side, such as where the ontology should live, how to govern it, and how to keep it under version control, so if that interests you, let me know.

 
 
 

Comments


bottom of page