# Knowledge Graph

> Facts stored as things and the links between them, like a map you can follow.

**Field:** Artificial Intelligence  
**Category:** Retrieval & Search  
**Also known as:** Knowledge Graphs, Entity Graph

## Think of it like

It is like a family tree. Dots are people, and lines say how they are linked.

## Definition

A knowledge graph stores facts as things and the links between them. Each thing, like a person, a city or a company, is a node. Each link is a labelled line, like "works at" or "born in". You can follow the lines to answer questions that hop across facts. Search engines use them for the fact boxes beside results. AI systems use them to find linked facts that plain text search misses.

## Example

A graph holds "Emma works at Acme" and "Acme is in London". Asked where Emma works, the system follows two links and answers London.

## Why it matters

Some answers need two or three facts joined together. A graph keeps those links ready to follow.

## Common mistake

Thinking it builds itself. Someone, or a model, must pull out the things and links, and keep them up to date.

## Three principles

- **Things are nodes.** People, places, products.
- **Links have names.** Works at, born in, part of.
- **Follow the lines.** Hop across facts to answer.

## Related terms

- [GraphRAG](https://learn.benibix.com/term/ai/graphrag)
- [Named Entity Recognition (NER)](https://learn.benibix.com/term/ai/named-entity-recognition)
- [Semantic Search](https://learn.benibix.com/term/ai/semantic-search)
- [Retrieval-Augmented Generation (RAG)](https://learn.benibix.com/term/ai/retrieval-augmented-generation)
- [Expert System](https://learn.benibix.com/term/ai/expert-system)

## Told apart from

- [Knowledge Base vs Knowledge Graph](https://learn.benibix.com/compare/knowledge-base-vs-knowledge-graph): People think a knowledge base and a knowledge graph are the same store, and they are not. A knowledge base is a set of documents that an AI system searches as text. A knowledge graph holds facts as things and named links between them. You read the first. You follow the lines of the second.

![Two dashed groups of linked circles. In the first, Emma works at Acme, Acme is in London, and Jack is a friend of Emma, with a summary line on top about who works where. In the second, Acme makes Bike X, which is part of E-bikes, with a summary line about what Acme sells.](https://learn.benibix.com/diagrams/ai3-graph-rag.svg)

---

Source: https://learn.benibix.com/term/ai/knowledge-graph
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
