/

Artificial Intelligence

7 Essential Steps to Connect Business Data with AI Reasoning

Intergalactic Data Labs

โ€”

โ€”

13 min read

Table of contents

Summarize

Updated October 2026

To connect business data to AI reasoning, give agents meaning, not just tables. Define the decisions to improve and consolidate clean data. Model entities and metrics in a semantic layer and ontology, resolve them into a knowledge graph, and expose that context through governed interfaces. Then measure accuracy on real questions and keep the model current as the business changes.

Step

What you produce

Common standards and tools

1. Set objectives

Ranked use cases with KPIs

Decision inventory, golden questions

2. Prepare data

Clean, governed tables you control

Data contracts, OpenLineage

3. Pick a semantic backbone

Shared metrics and concepts

MetricFlow, semantic views, OWL

4. Build the knowledge graph

Resolved entities and relationships

Splink, RDF or property graphs

5. Assemble a world model

Rules, constraints, actions

SHACL, ontology action types

6. Give agents access

Scoped tools and resources

MCP, semantic layer APIs

7. Evaluate and improve

Scores, logs, feedback loops

Golden sets, decision logs

The seven steps below keep the structure of our original guide, updated with 2026 standards and evidence. For how the three main context approaches compare, read RAG vs knowledge graph vs semantic layer.

Why do AI agents need business context and not just data access?

Agents need context because raw schemas do not say what the business means. A column called status or amount can carry five meanings across five systems. Without definitions, a model guesses, and the guesses look plausible enough to pass review.

The evidence is consistent. In the data.world benchmark, GPT-4 answered enterprise insurance questions over SQL with 16 percent accuracy and 54 percent over a knowledge graph of the same database. A follow-up paper added ontology based query checks and reached 72.55 percent.

Newer models narrow the gap but do not close it. An April 2026 study found explicit business semantics added 17 to 23 points across Claude Opus 4.7, Claude Sonnet 4.6, and GPT-5.4. On Spider 2.0, with real enterprise schemas, the best agent solved 21.3 percent of tasks.

Step 1. Which business decisions should AI reasoning support first?

Start with a few decisions that are frequent, costly when wrong, and measurable. Reasoning pays off where an answer needs several hops across entities and rules, not a single lookup. Agree on the KPI before choosing any tooling.

Gartner predicted in June 2025 that over 40 percent of agentic AI projects will be canceled by the end of 2027. It named rising costs, unclear business value, and weak risk controls as the causes. Clear objectives answer the second cause directly.

Use case

Objective

KPIs

Inventory planning

Fewer stockouts at lower carrying cost

Fill rate, inventory turns

Support resolution

Resolve common tickets with agents

First contact resolution, handle time

Finance variance

Faster explanation of budget gaps

Close time, forecast error

Account health

Earlier warning on churn risk

Gross retention, time to intervene

For each use case, write 20 to 50 real questions with verified answers. This golden set becomes your test suite in step 7. It also shows which entities, metrics, and rules the later steps must model.

Step 2. How do you get business data ready for agents to reason over?

Consolidate the source systems behind your use cases into a warehouse or lakehouse you control, then fix quality where it matters most. Agents amplify bad data, because they act on it at machine speed. Focus on the tables your golden questions touch, not the whole estate.

Quality checks that matter for reasoning

Check completeness, freshness, and consistency on keys that link entities, such as customer IDs and product codes. Broken keys break relationships, and broken relationships break multi step reasoning. Validate constraints automatically on every load so problems stop before an agent reads them.

Lineage and versioning

Record where each table came from and which job produced it. OpenLineage is an open specification for this, hosted by the LF AI and Data Foundation. It models datasets, jobs, and runs. Lineage lets you trace a wrong agent answer back to the load that caused it.

Microsoft's agent data architecture guidance recommends governed data products as the main inputs for AI. It also asks teams to document how agents access each domain. Both habits make the next steps easier. Our guide to data governance for AI agents covers the access controls in depth.

Step 3. How do you choose a semantic backbone?

Choose based on the questions you collected. A semantic layer answers metric questions consistently. An ontology and knowledge graph answer relationship questions across many entities. Most enterprises end up with both, sharing one vocabulary.

Option

Best for

Strength

Limit

dbt MetricFlow

Governed metrics in SQL

Apache 2.0 and portable

Weak on deep entity hops

Snowflake semantic views

Metrics inside Snowflake

Native to Cortex Analyst

Tied to one platform

Databricks metric views

Metrics in Unity Catalog

Queryable by Genie and SQL

Tied to one platform

Fabric IQ ontology

Microsoft shops

Generated from Power BI models

Still in preview

OWL ontology with a graph

Cross domain relationships

Open W3C standards

Needs modeling skill

MetricFlow moved to an Apache 2.0 license. Snowflake semantic views store logical tables, relationships, facts, dimensions, and metrics. Databricks metric views keep measures separate from dimensions. Microsoft lists Fabric IQ Ontology as preview.

The dbt April 2026 benchmark, a vendor study on 11 questions, scored the semantic layer 98 to 100 percent against 84 to 90 percent for text to SQL. It also found semantic layers fail on questions with too many entity hops. That is the gap an ontology fills.

Why ownership matters here

Institutional knowledge is one of a company's most valuable assets. Keep definitions in open formats such as OWL 2, SHACL, or MetricFlow YAML, versioned in your own repository. The Apache Ossie project, formerly Open Semantic Interchange, aims to make semantic models portable across tools.

Teams can build this themselves or with a partner. Galaxy is an applied lab that builds semantic layers, ontologies, and entity resolution with teams on the stack they already run, using its own internal tooling. It builds in the open with Filament by Galaxy, its Apache 2.0 data movement engine, and plans to open source more.

Step 4. How do you build a knowledge graph of enterprise data?

Start from the entities in your golden questions, resolve duplicates across systems, then load the resolved entities and their relationships into a graph. Keep it small at first. A graph of customers, contracts, products, and tickets can answer far more than a graph of everything.

Resolve entities before you connect them

Entity resolution decides which records describe the same real thing. Splink, an open source Python library, uses the Fellegi Sunter probabilistic model on DuckDB, Spark, SQLite, or Postgres. Give every resolved entity a stable ID so relationships survive reloads. Our enterprise entity resolution guide compares the main tools.

Choose a graph model

RDF graphs suit shared vocabularies and formal reasoning. Labeled property graphs suit traversal heavy application queries. Both work for agents, and the choice depends on your team and query patterns. Our comparison of RDF vs LPG explains the tradeoffs.

Keep the graph synchronized with its sources on a schedule tied to how fast the business changes. A support graph may need hourly updates. A product hierarchy may change monthly. Stale relationships produce confident wrong answers, which are worse than refusals.

Step 5. What goes into a world model for AI agents?

A world model is the ontology plus the rules and actions an agent needs to reason and act safely. It holds canonical entities, their relationships, constraints, business rules, and metric definitions. It also records where each concept lives physically.

Salesforce describes two ontology types agents need. A descriptive ontology defines meaning, policies, and rules. A structural ontology binds that meaning to where the data actually lives. Palantir's Foundry Ontology makes a similar split between semantic elements such as objects and links, and kinetic elements such as actions.

Component

Example

How to encode it

Entities

Customer, contract, product

Ontology classes with stable IDs

Relationships

Customer holds contract

Object properties or graph edges

Constraints

A contract has one owner

SHACL shapes or database checks

Metrics

Net revenue retention

Semantic layer definitions

Rules

Discounts above 20% need approval

Policy code or action types

Actions

Issue a credit

Governed tools with approval gates

Write rules where they can be tested. A rule hidden in a prompt can be ignored or argued away. A rule in a SHACL shape or a policy check returns a clear pass or fail. Our explainer on how ontology powers AI analytics goes deeper on modeling.

Step 6. How should AI agents access entities and relationships?

Expose the world model through governed interfaces that carry the user's permissions. The Model Context Protocol is now the common choice. Its specification lets servers offer resources for context and tools for actions. It also says hosts must get explicit user consent before invoking any tool.

Microsoft's guidance says to choose MCP when agents must take actions or read live data. It also asks for authentication on every tool call. Anthropic donated MCP to the Agentic AI Foundation under the Linux Foundation in December 2025.

A worked example

A support agent receives a high priority ticket. It looks up the customer, follows links to the products they own, checks known issues for those products, and reads the entitlement rules in their contract. It then proposes a fix, requests approval for any credit, and logs every entity and rule it used.

Enforce limits outside the model

OWASP ranks prompt injection as the top LLM risk. It recommends least privilege, privileged functions executed by code rather than the model, and human approval for high risk actions. Put row and column rules in the warehouse and scope each MCP tool narrowly.

Semantic search and agent reasoning are different jobs. Search retrieves relevant passages. Reasoning chains entities, rules, and metrics into a decision and can explain each hop. Most agents need both, with the graph and semantic layer handling the structured half.

Step 7. How do you evaluate and improve AI reasoning over time?

Treat AI reasoning as a product with a test suite, not a one time project. Run the golden questions from step 1 against every change to the model, the ontology, or the data. Track accuracy, refusals, latency, and cost per answer.

Reward honest refusals. In the ontology query check study, 8 percent of answers became "I don't know" and the error rate fell to 19.44 percent. A system that says it cannot answer is safer than one that guesses.

Log every agent decision with links to the entities, rules, and lineage it used. When an answer is wrong, the log shows whether the fault was the data, the definition, or the model. Review drift on a fixed cadence and retire rules the business no longer follows.

Train the people who use the answers. Analysts and operators should know which questions the system covers and how to read its explanations. Their feedback becomes new golden questions and new definitions. For the operating model behind this, see our guide to enterprise context management for AI agents.

What mistakes slow these projects down?

The most common mistake is modeling everything before answering anything. Start with the entities in one use case and grow from there. A second mistake is letting each team define revenue or active customer differently, which makes agents disagree with each other.

Other frequent mistakes include skipping entity resolution, putting access rules only in prompts, and measuring success by demos instead of a scored question set. Each one produces agents that look good in a meeting and fail in production. The seven steps above exist to prevent exactly these failures.

Frequently asked questions

What does it mean to connect business data to AI reasoning?

It means giving a model or agent the meaning of your data, not only access to tables. That includes the entities your business tracks, how they relate, the rules that constrain them, and governed metric definitions. With that context, an agent can plan multi step answers and explain them instead of guessing at joins and column names.

Why is direct database access not enough for AI agents?

Raw schemas rarely encode business meaning. In a 2023 benchmark, GPT-4 answered enterprise questions over SQL with 16 percent accuracy, rising to 54 percent over a knowledge graph of the same data. The Spider 2.0 benchmark found the best agent solved only 21.3 percent of real enterprise text to SQL tasks without added semantic context.

Do I need a knowledge graph, a semantic layer, or both?

Most teams need a semantic layer first for governed metrics, because agents ask many numeric questions. Add an ontology and knowledge graph when questions cross many entities and relationships, such as tracing a customer through contracts, products, and incidents. Many mature stacks use both, with the semantic layer for aggregation and the graph for relationships.

What is a world model in enterprise AI?

A world model is a machine readable description of your business that an agent consults before acting. It holds canonical entities, relationships, constraints, rules, and metric definitions, plus pointers to where the data lives. Palantir describes this split as semantic elements for objects and links, and kinetic elements for actions and functions.

How much does business context improve LLM accuracy?

Several studies point the same way. A 2024 paper raised accuracy to 72.55 percent by checking generated queries against an ontology. An April 2026 study found explicit business semantics added 17 to 23 points across Claude Opus 4.7, Claude Sonnet 4.6, and GPT-5.4. Results depend on the dataset and question mix, so test on your own data.

How should AI agents access enterprise data safely?

Expose data through governed interfaces such as an MCP server, a semantic layer API, or semantic views, never through a shared admin key. The MCP specification says hosts must get explicit user consent before invoking tools. OWASP recommends least privilege and human approval for privileged actions, enforced in code rather than in the prompt.

What role does entity resolution play in AI reasoning?

Entity resolution decides that records in different systems describe the same customer, supplier, or product. Without it, an agent counts one customer as three and misses links between their orders and tickets. Open source tools like Splink apply the Fellegi Sunter probabilistic model, and the resolved IDs become nodes in the knowledge graph.

How do I measure whether AI reasoning over business data works?

Build a golden set of real business questions with verified answers, then score every change against it. Track accuracy, the rate of honest refusals, latency, and cost per answer. Log each agent decision with links to the entities, rules, and lineage used, so reviewers can see why an answer was wrong and fix the model or data.

Why do agentic AI projects fail?

Gartner predicted in June 2025 that over 40 percent of agentic AI projects will be canceled by the end of 2027. It cited rising costs, unclear business value, and inadequate risk controls. Starting from measurable objectives, governed definitions, and enforced access controls addresses all three before an agent reaches production.

Who should own the ontology and semantic definitions?

The business should own them, with data teams as stewards. Keep definitions in open formats such as OWL, SHACL, or MetricFlow YAML, versioned in your own repository and deployed on infrastructure you control. That way the knowledge survives a change of model, vendor, or BI tool, and every agent reads the same definitions.

More articles

Stay up to date with what weโ€™re building

Stay up to date with what weโ€™re building

Stay up to date with what weโ€™re building

Questions

Answered

FAQ

What does Galaxy do?

What is Filament?

What is enterprise context management?

What does working with Galaxy look like?

How do you handle security and compliance?

Why does Galaxy build in the open?

Own your knowledge stack

Own your knowledge stack

Copyright ยฉ 2026 Galaxy. All rights reserved.