Announcing US$ 3.2M pre-seed round · OneVC · Maya · Norte Ventures Read →
Back to blog

Enterprise knowledge graph:
what it is and how it supports AI in the company

In short

A purchasing manager is about to renegotiate a packaging supplier's contract and wants to know who in the company has negotiated with them before and what the last agreed terms were. The terms are in an amendment, the negotiation happened over an email thread, the buyer who ran the process moved to another department and the delivery history is in the ERP. An AI assistant that only reads documents finds the original contract and stops there. The enterprise knowledge graph, or corporate knowledge graph, is the model that links these pieces: content, people, systems, records and activity across the whole company. It is the central structure of the Company Brain, the layer that knows the company: which data exists, where it lives, how it connects and who can see what.

An enterprise knowledge graph models the whole company for AI

An enterprise knowledge graph is a knowledge graph built on an organisation's private data, with a practical goal: letting AI models and agents find and use the right context for each question. It represents the content the company produces, the people who work there, the systems where the data lives, the transactional records in those systems, the activity around all of it and the relationships between these elements.

The mechanics of nodes and edges are covered in this series' article on knowledge graphs. Here the focus is on what goes into the graph, how it is built and maintained, and which rules it follows to serve AI in production.

The academic literature uses the term in the same sense. The survey of knowledge graphs published by Hogan and co-authors in ACM Computing Surveys in 2021 describes enterprise graphs as structures internal to a company, applied to commercial use cases such as search, recommendation, business analytics, risk assessment and automation.

Five layers make up an enterprise knowledge graph built for AI

The layers live in the same graph. A query starts from a supplier, passes through a document, reaches a person and is filtered by the permissions of the person who asked.

Business entities

Client, contract, product, order, supplier and project are the entities that transactional systems already record, with an identifier, attributes and state. They form the skeleton of the graph, because almost every business question starts from one of them.

Content

Documents, emails, conversations, tickets and meeting transcripts come in as nodes linked to the entities they mention. The proposal links to the client, the minutes link to the project, the ticket links to the product.

People and structure

This layer records who owns each account, who approved each contract and who works with whom. It also reveals subject-matter experts, such as the person who has resolved the most cases involving a given supplier. This is where the answer about who has negotiated with the packaging supplier lives.

Activity and usage signals

What is consulted, by whom, how often and when it was last changed. These signals separate the document in use from the abandoned one. A policy that the legal team reads every week and revised last month carries more authority than an old copy kept in a personal folder.

Permissions

The last layer records who can see each node and each relationship, and it runs alongside all the others. A contract visible to the controller's office may be closed to the marketing team. The relationship between a client and the negotiated margin may be more restricted than the client record itself.

Layers of an enterprise knowledge graph built for AI, with permissions wrapping all the others
In an enterprise knowledge graph, permissions wrap every layer and each fact carries source, date, validity and scope

An enterprise knowledge graph is built in steps that repeat

Building it is continuous. The steps run again whenever the sources change:

  1. Connectors. Each source (CRM, ERP, helpdesk, drive, email, contract management) is connected once, reading the records, the metadata and the permissions.
  2. Entity extraction. Free text goes through a process that identifies mentions of clients, products, suppliers, people and dates and turns them into links to nodes that already exist.
  3. Entity resolution. Records that represent the same thing in different systems are merged, a topic with its own article in this series.
  4. Relationship inference. Some relationships are not written down anywhere and are deduced. Two people who exchange emails about the same project work together, and the ticket opened by a client's contact belongs to that client.
  5. Incremental updates. The graph receives only what has changed since the last read, with the date of each change, so it reflects the current state without reprocessing the whole base.
  6. Ontology. The business ontology gives meaning to the node and relationship types: what counts as a project, what separates an approved supplier from one under evaluation, which relationship indicates responsibility and which indicates mere participation.

With the ontology, the approved relationship and the commented relationship reach the model with different meanings, and the context shows who decided and who only took part.

Steps for building an enterprise knowledge graph, from connectors to ontology, in a continuous cycle
An enterprise knowledge graph is built in steps that run again whenever the sources change

Corporate AI depends on the enterprise knowledge graph to find the right context

A language model answers based on what it receives in context. The graph improves the choice of that context in five ways.

Retrieval that takes relationships and authority into account

A corporate search for the travel reimbursement policy returns six versions of the same document. The graph knows which one the finance team published, which one is in force, which one is accessed most and which ones were replaced. The model receives the version in force, with its source shown.

Disambiguating terms and people

Two analysts with the same name, a product with a commercial name and an internal code, an acronym that means different things in sales and in engineering. The graph resolves the reference from its surroundings, such as the project and team mentioned in the question.

Questions that cross several relationships

Putting together the context for an implementation project means following a chain. The contract defines the scope, the emails record agreed changes, the tickets show open problems and the people linked to each item show whom to ask. Each step is a relationship in the graph, and walking the chain in one query spares the agent dozens of trial-and-error searches.

Personalisation by the asker's role

The same question about a client calls for opportunities and contacts for the account executive, and for SLA and incidents for the support analyst. The graph knows the department and the accounts of the person asking and prioritises the relationships closest to that role.

A foundation for agents that act

An agent that opens a purchase order, updates a record or replies to a client needs to know which entity it is acting on. The graph provides the correct identifier, the record owner and the applicable restrictions before the action, which reduces the risk of the agent writing to the wrong record.

The enterprise knowledge graph is the knowledge layer agents need beyond RAG

Corporate search and RAG handle location questions well, such as where the travel policy is or which documents mention a project. Agents get other questions: why a client's credit release is stuck, who needs to approve the next step and whether the agent can carry it out without that approval. These are questions about relationships and state.

The knowledge layer that enterprise agents need beyond RAG is the piece between systems and agents that turns scattered artefacts into canonical, traceable concepts subject to permissions. A project shows up as an epic in the task tracker, a code repository, a chat channel and an incident record. Search returns each artefact separately, and the knowledge layer recognises that they all describe the same project.

In the stuck credit case, the client has a request, which follows a policy, which requires an approval, which is waiting on a specific role. With RAG, the model receives passages similar to the question and has to deduce those links. With the enterprise knowledge graph, the system walks the path and delivers the assembled chain, and the model only explains it and writes on top of it.

Each fact in the graph carries provenance, validity and scope

For the agent to know whether it can use or expose a piece of information, every node and every relationship carries metadata:

  • Source: the system or document the fact came from.
  • Date: the last read or change.
  • Validity: until when the fact holds and whether another one replaced it, such as the amendment that changes a clause.
  • Verification: whether it was confirmed or is awaiting review.
  • Access scope: who can see the fact and the relationship.
  • Authorship: declared by a person, generated by a system or extracted by a model.

Without this metadata, a relationship extracted from an old email reaches the agent with the same weight as a current ERP record.

Permissions are part of the enterprise knowledge graph from the first connection

Each source has its own rules: the CRM restricts accounts by portfolio, the drive shares folders by group and the ERP limits financial data by profile. The graph has to apply these rules at query time, with the current state of each person's permissions.

The most serious risk of an enterprise graph is flattening permissions. When ingestion reads the sources with a broad-access service account and the graph answers everyone with the same slice, anyone can see through AI what they would not see in the source system. Relationships expose information too: knowing that there is a contract with a supplier under confidential negotiation is already sensitive data.

The right approach is inherited permissions. Every node and every relationship carries the source's access rule, and the query filters the result by the identity of the person asking. When a permission changes in the source system, the graph follows at the next sync.

An agent acting on the enterprise knowledge graph goes through four controls

Inherited permissions define what each person can read. When an agent prepares or carries out actions, authorisation extends across four points:

  1. Retrieval. A fact only enters the context if both the person asking and the acting agent have access to it.
  2. Output. A rule defines whether the agent can summarise the content or draw conclusions from it.
  3. Action. Before making a change, the agent checks the applicable policy, and an action that requires approval goes to the person with the authority to approve it.
  4. Audit. Every execution is recorded with who asked, which agent acted and which facts it relied on.

The output control deals with leakage through inference. An agent can combine permitted facts, such as a change of account owner, suspended orders and a meeting with legal, and reach a sensitive conclusion that no source records.

The graph records validated decisions and outcomes

With agents in the processes, the graph keeps the operational chain: case, decision, evidence, approval, execution and outcome. This history makes it possible to reconstruct an earlier decision.

Validated facts, approved decisions and confirmed outcomes go into the graph. The agent's intermediate reasoning and tool calls stay in the audit log, so that an unverified output does not become a fact in later queries.

The enterprise graph deals with private data, its own vocabulary and constant change

Public search graphs describe cities, companies and works, with stable facts visible to anyone. The enterprise knowledge graph describes a single organisation, with private data and access defined person by person.

Acronyms, project names and product codes exist only inside the company, and the ontology has to record them. Change is daily: contracts get amendments, people move departments, tickets open and close. That is why the enterprise graph works with continuous updates and a date on every fact.

A complete enterprise knowledge graph combines documents and transactional data

There are two common ways to build the graph. The first starts from documents and collaboration tools (drive, wiki, email, chat) and organises written knowledge well.

The second includes live data from transactional systems, such as CRM, ERP, helpdesk and contract management. Those systems hold the invoiced amount, the order status, the contracted SLA and the outstanding balance. A graph made of documents answers what the company wrote about a client. With transactional systems, it also answers where the client stands today.

The Company Brain models both. The contract PDF and the contract record in the management system become linked nodes, the conversation about a price adjustment links to the invoice it produced, and the model receives over MCP the slice the question requires, with documents and records in the same context.

An enterprise knowledge graph made only of documents compared with one that includes CRM, ERP and helpdesk
With transactional systems, the enterprise knowledge graph also shows the current state of each entity

The Company Brain implements the enterprise knowledge graph with an ontology and a semantic layer

In the Company Brain, the enterprise knowledge graph shows up as three components that work together. The knowledge graph holds entities, content, people and relationships. The business ontology defines what each type means in that company. The semantic layer translates a natural language question into the right path through the graph and the sources.

Four properties come with this design:

  • Inherited permissions: each person receives through AI only what they already see in the source system.
  • Traceability: every answer points to the document, the record and the system the information came from.
  • Data inside the perimeter: the structure runs in the client's environment, and the model receives only the slice for each query, with no copy of the base sent to the provider.
  • Reuse: sources are connected once, and the same graph serves purchasing, customer service, finance and engineering, served over MCP to any model or agent.

In the purchasing case, the query starts from the supplier, follows through to the contract and the amendment, reaches the person who negotiated, finds the latest email about price and returns the current terms with the source of each item. The decision about the proposal stays with the manager.

Company Brain implementing the enterprise knowledge graph with ontology, semantic layer, inherited permissions and MCP
The Company Brain serves over MCP the slice of the enterprise knowledge graph that each person can see

Quality, maintenance and privacy limit the enterprise knowledge graph

The graph inherits the quality of its sources. The most frequent limits:

  • Quality and freshness: duplicate records, empty fields and delayed syncs produce wrong or outdated relationships, and AI repeats the error with a tone of certainty.
  • Maintenance cost: connectors break when a source changes version, extraction rules need adjusting and ambiguous resolution cases require human review. Token savings at query time, on their own, do not cover this ongoing work.
  • Reading the structure: a task with no link to a stated objective may be waste or resilience work that nobody classified. A missing relationship calls for investigation before any conclusion.
  • Model governance: someone has to decide who creates node and relationship types, who approves changes to the ontology and who arbitrates when two departments disagree on a definition.
  • Privacy of activity signals: recording who read what and who works with whom involves personal data. Brazil's data protection law (LGPD) requires purpose, necessity and transparency, and these signals call for a retention rule, aggregation where possible and restricted access. They are meant for finding process friction and recurring failures, and using them to measure individual performance pushes the graph towards surveillance.
  • Scale: relationships grow faster than entities, and the permission filter must not make queries slow.

A first enterprise knowledge graph starts with a recurring question

Modelling every layer before the first use tends to stall the project. The shortest path is to pick a question that today requires opening several systems and chasing people, such as who has negotiated with a given supplier or which version of a policy is in force.

That question defines the first entities, sources, activity signals and permission rules to inherit. The ontology also grows out of this flow. Responsible can mean the person who changed the record, the person accountable for the outcome or the person with authority to approve, and the right meaning is pinned down before expanding to other departments.

A set of test questions evaluates this case: whether the system identifies the same object across different sources, shows the path of evidence, respects permissions on inferred relationships and detects the missing approval before acting. Running the same questions with RAG and with a graph query shows where each approach fails.

With the answer working and traceable, the next use case reuses connectors, entities and ontology, and the graph grows in the direction of the questions the company asks every day.

Get the next articles on the Company Brain