Knowledge Graphs
The Library · Context Engineering & MemoryStoring facts as linked entities so agents can traverse relationships.
Also called: knowledge graph, graphrag, graph rag, graph memory. In the glossary.
How it works, as a machineThe String Board · facts
Follow one fact from a source passage to an answer with its path, in a case room with a string board wall.
- Pull out the triples
- Merge the twins
- Tie it to its source
- Light the seed nodes
- Walk the strings
- Hand over the path
Knowledge Graphs in plain words
A knowledge graph stores facts as things and the links between them: this person works at that company, which makes this product. An agent can follow the links to answer questions that need several hops. It gives structure that a pile of documents lacks, and it has to be built and kept current.
An analogy
A family tree pinned to the wall. Each name is a card and each string a relationship, so finding a great-aunt's grandson means tracing strings, not rereading every letter in the attic. The tree is only useful if someone keeps adding the new babies.