Skip to main content

AI glossary Data & Retrieval

What is a knowledge graph?

← All glossary terms
In short

A way of storing information as a network of entities and the relationships between them, which gives AI systems structure and context that plain text lacks.

Explained

A knowledge graph represents information as nodes (entities such as customers, products, contracts or people) connected by labelled edges (relationships such as "signed", "supplies" or "reports to"). Because the connections are explicit, a system can follow them to answer questions that span several sources, such as which suppliers are affected by a delayed part. Google popularised the term in 2012 to describe search based on "things, not strings". In enterprise AI, knowledge graphs improve retrieval and reasoning in RAG by adding structure and meaning beyond what text search finds.

How a knowledge graph works

  • Entities: the things that matter to the business, each with a stable identifier and attributes.
  • Relationships: typed links between entities, which can also carry attributes such as dates or sources.
  • Schema or ontology: the agreed types of entities and relationships, so that different teams describe the same thing the same way.
  • Queries: graph query languages or APIs that follow paths, for example from a customer to their contracts to the products in them.

Knowledge graphs and generative AI

Language models are good with text but weak at keeping track of many exact relationships. A knowledge graph supplies that structure. In GraphRAG approaches, a model extracts entities and relationships from documents to build a graph, then uses it to answer questions that need connections across many documents.

The graph can also work the other way: as a source of verified facts that the model must respect, which limits invented details in answers.

When it makes sense

  • Questions depend on relationships across systems, not on a single document.
  • The same entity (a customer, an asset) appears under different names in different sources.
  • Answers must be explainable: the path through the graph shows why.
  • Someone will own the schema and data quality over time; a graph without an owner decays quickly.

Frequently asked questions

What is the difference between a knowledge graph and a database?

A relational database stores data in tables and joins them when queried. A knowledge graph stores relationships as first-class data, so following chains of connections is natural and fast. Many knowledge graphs run on graph databases, but the term describes the model of knowledge, not the storage engine.

What is an example of a knowledge graph?

Google's Knowledge Graph, which powers the information panels in search results, is the best-known example. In companies, a typical graph links customers, products, contracts, suppliers and employees so that questions crossing those areas can be answered.

What is GraphRAG?

GraphRAG is a retrieval-augmented generation approach that uses a knowledge graph built from the documents. Microsoft Research described one version that groups related entities and summarises them, which helps answer broad questions about a whole collection.

Is a knowledge graph the same as an ontology?

Not quite. The ontology defines the types of entities and relationships and their rules; the knowledge graph contains the actual entities and links that follow those rules. The ontology is the schema, the graph is the data.

Do I need a knowledge graph for RAG?

No. Most RAG systems start with vector or hybrid search over text. A graph is worth adding when questions depend on relationships that text search misses, or when answers need an explicit, explainable path.

Decision guides that use this term

How to put it to work

Where it shows up at Thinkia

Further reading

Sources

Updated: 2026-10-21

Want to see how this applies to your organisation?

Talk to an AI Expert