Skip to content
News

What is a knowledge graph? How AI connects facts and decisions

How knowledge graphs connect customers, products and decisions, with a practical release assessment that keeps evidence, uncertainty and permissions visible.

Fine connected metal foam forms irregular open cells with silver surfaces and warm reflections under soft raking light.

A knowledge graph represents things and the relationships between them. A thing might be a customer, feature, document, release or decision. The relationships explain how those things connect: a customer uses a feature, a release changes it, and a decision sets the conditions for that change.

That structure helps answer questions that depend on several records at once. Finding a document about an API is useful. Determining which customers depend on an endpoint, what they were promised and whether a proposed change affects them requires connecting information across sources.

For AI applications, those connections can make relevant context easier to assemble and inspect. Their value depends on the quality of the underlying claims. A graph should preserve what a relationship means, where it came from and when it applies. Drawing a line between two items does not establish that the connection is correct.

How does a knowledge graph work?

A graph contains nodes and relationships. Nodes identify the things being represented. Relationships express a particular connection, such as depends on, changes or was approved by. IBM's knowledge graph introduction describes this basic representation of entities and their relationships.

Consider a small set of statements:

  • Customer Alder uses the legacy export endpoint.

  • Release 8 removes that endpoint.

  • A migration plan covers Alder's replacement integration.

  • A product decision postpones removal until the migration is confirmed.

The statements let someone follow a path from the release to an affected customer and the decision governing the change. Each relationship has a meaning. A generic link labelled related would provide much less help.

RDF is one established way to represent graph statements. Its data model uses a subject, predicate and object, as defined in the W3C RDF specification. A customer, uses and an endpoint could fill those three roles. RDF is not a requirement for every knowledge graph; it is a useful example of making relationships explicit.

The important design choice is what the statements mean in the application. Teams need to distinguish a documented dependency from a suspected one, and a proposed decision from a current commitment.

Different mineral blocks rest on precise branching transfer tracks joined by pale ceramic guides.

What makes a graph useful for company knowledge?

A company question often crosses the boundaries of individual systems. Engineering owns an implementation, support sees how customers use it, and account teams retain commitments made during onboarding. The records can all be accurate while the relationship between them remains difficult to reconstruct.

A useful graph gives those records stable identities and meaningful connections. It should remain possible to inspect the evidence for a claim without relying on the graph's visual appearance or an agent's confidence.

For the endpoint example, the team would want to distinguish:

  • A customer's confirmed use of an endpoint.

  • A support ticket that merely mentions it.

  • A contract describing an obligation.

  • A proposed migration that has not been accepted.

  • A verified migration that changes the customer's dependency.

Treating all five as equivalent associations would produce a connected system with an unreliable account of the work. The distinctions are what make the connections useful.

Example: assessing the impact of a release

In this hypothetical workflow, a software company is preparing to remove an old export endpoint. The product team asks an agent to identify affected customers and unresolved commitments before the release decision.

The team needs an assessment of readiness. It does not want a list of every document containing the endpoint's name.

Start with the actual decision

Define the question narrowly: “Which confirmed dependencies or commitments would prevent removing this endpoint in the proposed release?” The release version and intended date belong in the brief because a dependency that matters now may have ended before the change takes effect.

The team identifies the relevant record types: endpoint definitions, customer integrations, migration confirmations and accepted commitments. It also decides who is responsible for confirming each type of claim.

Connect the records without overstating them

A support ticket reports that Alder uses the endpoint. An account note says the customer expects advance notice before removal. A migration document proposes a replacement but has no completion confirmation.

Those records support different statements. The ticket suggests a dependency that needs checking. The account note records a claimed expectation whose authority should be verified. The migration document establishes a plan, not a completed change.

An agent can propose these connections and retain their sources. It should not convert all three into an unconditional statement that the customer is ready or blocked. The assessment can identify what needs confirmation and who can supply it.

Make the reasoning path inspectable

For each potentially affected customer, the output records the relevant endpoint, the basis for the dependency, the migration status and any applicable decision. A reviewer can move from the conclusion to the records that support it.

For Alder, the useful result may be: dependency reported, replacement planned, completion unconfirmed. The proposed removal remains unresolved for this customer. That is a meaningful answer even though it does not resolve the release decision by itself.

Update the connection when the situation changes

An engineer later verifies that Alder has migrated. The active assessment should reflect that confirmation while retaining the earlier dependency and the evidence used to close it.

The historical statement was not necessarily wrong. It applied to an earlier state. Recording that distinction helps a later reviewer understand why the team delayed the release and what changed before it proceeded.

Knowledge graph versus knowledge base

A knowledge base is the broader collection of useful information a team maintains. It can include documentation, policies, accepted answers and operational guidance. A graph is a way of representing connections within or across that information.

The two can work together. A migration guide explains how to move an integration. A graph can connect that guide to the endpoint it replaces, the customers undertaking the migration and the decision that sets its deadline.

The graph does not eliminate the need for readable source material. People and agents may still need the complete guide, including its assumptions and limitations. Our knowledge base guide covers the responsibility for keeping that material current and applicable.

Knowledge graph versus vector search

Vector search ranks candidates by similarity in an embedding space. A graph follows explicitly represented relationships. They address different retrieval needs.

For the release assessment, similarity search could help find a ticket written in different language from the current brief. A represented dependency could then connect that ticket to an endpoint and customer. Neither result should silently establish a contractual commitment.

The question determines which method helps. “Find discussions about unreliable exports” may benefit from semantic retrieval. “Which active customer integrations depend on the endpoint being removed?” needs an accurate account of dependencies and their current status.

Our RAG and AI memory guide explains how retrieved information can become part of a model request. A graph can contribute to that process, but it does not automatically make the generated answer correct.

A tailor aligns dark fabric panels beside a precise metal cutting guide on a pale stone floor.

Evidence matters as much as the relationship

A relationship can be well formed and unsupported. A source can also be authentic while the proposed interpretation goes beyond what it says.

Retain the connection between a statement and its evidence. Useful details include the source revision, the relevant passage, when the statement was established and whether it remains applicable. The W3C provenance data model provides a formal vocabulary for describing entities, activities and responsibility behind information. A team can adopt the underlying discipline without adopting the entire standard.

In the endpoint example, “Alder has migrated” should point to the confirmation that supports it. A document saying that migration is scheduled for Friday supports a different claim. Rewriting both as completed migration would lose the information needed to make the decision.

Also distinguish a relationship observed in evidence from one inferred by an agent. An inference can be useful as a candidate for investigation. It should retain that status until the team's required checks are satisfied.

Handle identity, time and disagreement explicitly

Three practical problems can undermine a useful graph even when the source collection is good.

Identity: two records may refer to the same customer under different names. Two customers may also have similar names. Use stable identifiers where available and preserve ambiguity when the evidence does not establish that the records describe the same thing.

Time: a dependency can end, a policy can be superseded and an owner can change. Record when a statement applies and distinguish the active view from the historical record.

Disagreement: one record may say that migration is complete while another reports continued use of the old endpoint. Keep the conflict visible until it is resolved. A clean diagram should not conceal a real uncertainty.

These are application responsibilities. Adding more relationships without resolving their meaning can increase the amount of material a reviewer must untangle.

Permission boundaries still apply

A connected path can cross restricted information. A person allowed to see a release plan may not be allowed to read every customer agreement associated with it. Even the existence of a sensitive relationship can reveal information.

Design access checks for the information being returned, including derived summaries and relationship details. A path through the graph must not become a route around the source's permissions.

In the release example, the agent might be permitted to report that a customer needs an authorized review without disclosing restricted commercial terms. The exact behavior depends on the company's access policy. It should be established in the application, not improvised by the model.

How should you evaluate a knowledge graph?

Test whether the graph supports important questions with evidence that a reviewer can inspect. Counting nodes and relationships alone will not establish that it is useful.

For the release assessment, a review set could include these cases:

  • A customer uses an endpoint under an older product name.

  • A migration is planned but not confirmed.

  • A confirmed dependency ended before the proposed release.

  • Two records conflict about the current state.

  • A relevant source becomes inaccessible.

  • A proposed connection has no adequate supporting evidence.

Check the result, the path used and the source claims. A correct customer list produced from unsupported links is fragile evidence. An incomplete list that clearly identifies missing records may be a more useful basis for further investigation.

Start with one decision and a small vocabulary of relationships. Expand when a new relationship answers a real question. This keeps the representation understandable and gives the team a practical way to review changes.

Where does Swarm fit?

Swarm Spaces keep context, discussion, outputs, attempted work and human decisions together. A release assessment can retain the objective, source references, candidate findings and the team's accepted conclusions as the investigation develops.

Swarm distinguishes candidate knowledge from promoted memory. An agent should inspect the underlying sources and the status of a proposed update before treating it as accepted knowledge. A saved Space answer is durable work with its own sources; it is not simply an invisible extension of a model's conversation.

Connected clients still choose what enters their model context. Reading one source and sharing a result are separate permission decisions. The company also remains responsible for the customer dependency model and any integration needed to obtain its records.

The practical value is a shared place to preserve the evidence and decisions that make connected knowledge useful over time.

Rain falls across stepped greenhouse structures on a green hillside, with precise pale supports and sheltered paths.

Common questions about knowledge graphs

Is a knowledge graph a database or a diagram?

A graph is a representation of things and their relationships. A database can store it and a diagram can display it. The usefulness comes from the meaning and quality of the represented statements, not the visual arrangement alone.

Does a knowledge graph require a language model?

No. People, software and existing records can supply the statements. A model can help propose entities or connections, but those proposals need the evidence and review appropriate to their use.

Can a graph make an AI answer reliable?

It can supply connected evidence, but the application must still retrieve the appropriate records, respect permissions and check what the answer claims. A graph can contain outdated, ambiguous or incorrect statements.

What is the best place to start?

Choose a recurring question whose answer crosses several records. Identify the smallest set of entities and relationships needed to answer it, then establish how each claim will be supported, updated and reviewed.

Swarm | What is a knowledge graph? A practical guide