AI & automation

What is a knowledge graph?

A knowledge graph is a way of storing information as a network: entities such as customers, products and locations are nodes, and the relationships between them, such as 'bought' or 'is located in', are the connecting links.

Why not just a table

A relational database is superb for rows with fixed columns. A graph is better when the questions are about connections: which suppliers provide parts used by products that were recalled, or which employees worked with a client who is also a partner's customer. Following several links in a graph is natural; in tables it needs many joins.

Use with AI

Retrieval from text passages can miss answers that depend on linking facts spread across documents. A graph can store those links explicitly, so an assistant answers multi-hop questions more reliably and can show the path it followed. Some systems build a graph automatically by having a model extract entities and relationships from documents.

Costs

Someone must design the entity types and keep data clean, otherwise duplicates ("IBM" and "International Business Machines") break the links. For many small projects, ordinary search plus a normal database is enough.

Questions, answered

It is powered by one. That is also why consistent business details across the web matter for search.

Dedicated graph databases exist, and some relational databases can also model simple graphs.

By the Stegnor team · Updated