A knowledge graph is a database that stores facts as entities, such as people or companies, and records how they relate to each other.
Each fact is a short statement such as "Paris is the capital of France." Knowledge graphs matter in SEO because search engines and AI assistants use these stored facts to understand things in the world beyond the words on a page.
For a marketer, a knowledge graph is the record Google or an AI assistant keeps of who your brand is and what it connects to. Your company is one entity. It links to your founders and products. It also connects to your locations and industry. When that record is accurate, machines describe you correctly. When it's thin, they guess or leave you out.
AI systems use knowledge graphs to check facts and to match a name to the right thing. A language model on its own predicts likely words. That's why it can confuse two firms with similar names. A graph gives it a fixed fact to anchor the answer.
A knowledge graph stores every fact as a triple in which a relationship connects a subject to an object. Entities are the nodes, and relationships are the lines between them. Each entity gets a unique ID, so "Apple" the company and "apple" the fruit stay separate. The facts come from structured data and public databases like Wikidata. They also come from text that machines extract from web pages. When two sources disagree, the system weighs which one it trusts more.
A knowledge graph stores explicit facts you can read and edit, while a large language model (LLM) stores patterns from its training text and generates new sentences. You can trace a graph fact back to its source. You can't do that with an LLM. But a graph can't write a paragraph, so the two work together.
Retrieval-augmented generation (RAG) is a method, while a knowledge graph is a data store. RAG fetches information when a question comes in and passes it to the LLM. Plain RAG pulls passages of text. Graph-based RAG pulls linked facts from a knowledge graph instead.
Picture a small graph about a local bakery:
Ask "where was the founder of the Lyon sourdough bakery born?" and the system follows the links from Lyon to the bakery, then to Rosa, then to Turin. No single page needs to contain that whole answer.
Google uses its Knowledge Graph to understand which entity a search refers to and to show facts about it directly. Amit Singhal, then Google's SVP of Engineering, described it at its May 2012 launch as a model that understands "things, not strings." Today it fills knowledge panels and helps Google tell apart entities that share a name. Search your brand and see whether a panel appears.
You get into Google's knowledge graph by making your brand an entity it can confirm across sources:
An entity is a single, distinct thing a machine can identify, like a person or a brand. Keywords are strings of text, and entities are what those strings point to. Every node in a knowledge graph is an entity.
Structured data is code on a web page that labels facts in the machine-readable Schema.org vocabulary. It feeds the graph. The knowledge graph is where those facts end up after Google checks them.
A knowledge panel is the box beside Google results that shows facts about one entity. It's the visible output of the graph. If you understand what is a knowledge graph, the panel is the part your customers actually see.
Look up more AI search and SEO terms in our glossary.
Related terms
All termsSee how AI talks about your brand