Glossary · data

Knowledge graph

A store of entities and the typed relationships between them, such as customer owns contract, so that a system can follow links rather than match text alone.

A knowledge graph is a store of entities and the relationships between them. A customer has a contract, a contract covers a product, a product is owned by a team. A graph lets a system follow those links to answer a question that spans several records, such as which open contracts depend on a product being retired.

Retrieval over text answers a question about a passage. A graph answers a question about how things connect.

In practice

I add a graph only where the questions need links. If the questions are about one document, text retrieval is enough. For questions that follow relationships across systems, the graph becomes the place where those relationships are stored, checked and kept current. The graph is built from systems of record, not from a summary of documents, so that its facts can be traced.

The relationships need a definition before the graph is built: the entities, the relationship types and the rules that hold between them. I write that definition with the client's data owners, and I test it with their questions.

Example

[Composite] A service team asked which customers would be affected if a platform were retired. The answer needed four hops across the account, contract, product and team records. A small graph built from those systems answered it in one query, and each link in the answer pointed to a record the team could open.

Common mistakes

  • Building a graph before agreeing the relationship types.
  • Filling the graph from documents, so that its facts cannot be traced to a record.
  • Forgetting permissions on the graph. A link can reveal a record its user cannot open.

Related terms

Cite this definition

Knowledge graph. Mayur Patil, mayurpatil.ai, updated 2026-11-02. https://mayurpatil.ai/glossary/knowledge-graph/

Enquiry

Tell me about the work

The use case, where it is blocked and who is involved. I reply with a suggested starting point. Or email hello@mayurpatil.ai.

Goes to my CRM and my inbox. No newsletter, no sharing. See Privacy (opens in a new tab).

Close