The Knowledge Graph
The Knowledge Graph is the "brain" of the Memory Platform. It is a structured representation of everything the platform knows about your subjects, their relationships, and the memories associated with them.
Graph Architecture
The graph is built using JanusGraph, a distributed, scalable graph database. It consists of:
- Nodes (Vertices): Representing entities (Users, Orgs, Projects) and
MemoryBlocks. - Edges (Relationships): Representing the connections between nodes (ABOUT, WORKS_ON, SUPERSEDES).
graph TD
U[User: Sarah] -- WORKS_ON --> P[Project: Bridge]
P -- BELONGS_TO --> O[Org: Acme Corp]
M1[Memory: Prefers PDF] -- ABOUT --> U
M2[Memory: Status Green] -- ABOUT --> P
M3[Memory: Headquartered in NY] -- ABOUT --> O
M2 -- DERIVED_FROM --> D[Document: Report.pdf]
How the Graph Grows
- Explicit Discovery: Relations defined in API calls (e.g., adding a user to a project).
- Implicit Extraction: The engine detects mentions of entities in chat transcriptions and creates
MENTIONSedges. - Temporal Mapping: As new information arrives,
SUPERSEDESedges are created, forming a timeline of knowledge evolution. - Platform Mapping: Your platform's custom entities are injected as nodes, creating a domain-aware network.
Graph vs. Vector Search
The Memory Platform combines the Knowledge Graph with Vector Search (semantic similarity) to provide a complete retrieval system:
| Feature | Vector Search (Qdrant) | Knowledge Graph (JanusGraph) |
|---|---|---|
| Logic | Semantic similarity | Explicit relationships |
| Search | "Find memories about 'budget'" | "Find memories for Users in Org X" |
| Context | Single-node focus | Multi-hop traversal |
| Discovery | Finds hidden themes | Finds structural connections |
| Best For | Natural language queries | Structural & scoped retrieval |
Visualizing the Graph
The Graph Visualizer provides an interactive UI to explore this data. You can navigate through nodes, expand relationships, and see how knowledge clusters around your primary subjects.
By navigating the graph, you can audit the connections the AI is making and ensure the "context breadcrumbs" it follows are accurate and useful.