Knowledge Graph, Ontology and GraphRAG in Plain Words
The knowledge graph is what software found by reading your company. The ontology is what your people agreed. GraphRAG turns both into answers.
By Bo Vande Sompele, co-founder and CEO of Plainsight.
What are a knowledge graph, an ontology and GraphRAG?
A knowledge graph is a map of the things in your company and how they connect, an ontology is the agreed set of definitions that says what those things are, and GraphRAG is the way an AI assistant uses that map to answer a question. Put simply: the graph is what the software found by reading, the ontology is what your people agreed, and GraphRAG is how an answer gets made from the two.
Three terms that usually arrive together in a slide deck, and usually leave the room more confused than before. Each one is a simple idea. Here they are one at a time.
What is a knowledge graph?
A knowledge graph stores things and the links between them, instead of loose text. A thing can be a client, an order, a person, a process step or a document. A link says how two things relate: this order belongs to that client, this step is done by that role, this decision was taken in that meeting.
Software builds it by reading. It goes through your documents and systems and writes down what it finds: "Zuidwind Verpakkingen is a client. Order 4471 belongs to Zuidwind Verpakkingen. Ines handles the account." Thousands of small facts like these, joined up, are the graph.
The value is in the links. A search finds the document in which a word appears. A graph can answer "which open orders belong to clients Ines handles", because it can walk from Ines to her clients to their orders.
The catch: a graph that software found is a set of proposals. If two procedures disagree about who approves a discount, the graph will faithfully contain both.
What is an ontology?
An ontology is the agreed vocabulary of a company: which kinds of things exist, what each word means, and how they may relate. The word is borrowed from philosophy and sounds heavier than it is. In daily work it is a set of definitions that somebody signed off.
- What a word means
- "Margin is revenue minus direct costs, before overhead."
- How a process runs
- "A request becomes an order after the credit check, not before."
- What an agent may do
- "The quote agent drafts. A person sends."
A purist will say the last two are rules and processes, not ontology. Fair. For a company they belong in the same place: things people agreed, with a name next to them.
Software cannot produce this by reading. It can propose. People decide.
What is GraphRAG?
RAG, retrieval augmented generation, means the assistant looks things up in your own material before it answers, instead of answering from what the model happens to remember. Plain RAG looks up passages of text that resemble the question. GraphRAG is retrieval augmented generation that also uses the graph: it finds the things the question is about and follows their links to collect the facts that belong together.
The difference shows in questions that span more than one document. "What does our policy say about working from abroad?" is a plain RAG question: the answer sits on one page of the handbook. "What did we agree with Zuidwind Verpakkingen since the price change, and who was involved?" needs the client, the meetings, the decisions and the people, connected. That is a GraphRAG question.
What is RAG, without the buzzwordsHow do the three relate?
One was found, one was agreed, and the third uses both.
- Found: the knowledge graph
- Made by software, by reading. Large, quick to build, sometimes wrong. Nobody has vouched for it yet.
- Agreed: the ontology
- Made by people, by confirming. Small, slower to build, and every part of it has an owner.
- GraphRAG
- The way an assistant answers from the two: it finds the things your question is about and follows the links between them.
A graph without the definitions is a heap of facts nobody vouches for. Definitions without the graph are a tidy document nobody opens. Together they give an assistant something to stand on.
Why should an answer say which of the two it rests on?
Because "the system says so" can mean two different things. If an answer rests on something agreed, a person with a name stands behind it and you can act on it. If it rests on something found, it is a well-read guess: usually right, and worth a check before you sign anything.
The same goes for an agent. An agent that follows a confirmed process does what the company decided. An agent that follows a process inferred from three old documents does what the documents said, which is not always the same thing.
A source link under an answer tells you where it came from. A line that says agreed or found tells you how much weight it can carry. You want both.
Where does each one show up in Plainsight Workspace?
In the product you will not meet any of these three words. That is on purpose: the people using it have work to do. Each idea is there under a plain name.
- Knowledge graph: processes and memory
- The knowledge base reads your documents and proposes your processes, drawn as a map: the steps, who does them, the systems and documents around each step. Memory connects people, clients, projects, decisions and documents.
- Ontology: definitions, confirmed processes and the label
- A process owner confirms, corrects or rejects what was found. In the data module a business definition has an owner, so a number means the same thing every time. On an agent, the label says what it may do.
- GraphRAG: no name at all
- You ask in the chat. You can ask how things relate and when they happened, like what you agreed with a client last month. Every step of the answer points back to its source.
Found and agreed are the two states everything moves through. An answer shows its sources, and says whether it rests on something agreed, with its owner, or on something found that nobody confirmed yet.
The knowledge graph, for IT Processes on the mapThe short answers
Related articles
Ready to see it in action?
Fifteen minutes on a call, on your own questions. We show the assistant on what your people ask most.