Skip to main content
Memories connect to each other via typed edges, creating a knowledge graph.

Edge Types

TypeMeaningExample
updatesSupersedes previous knowledgeNew benchmark → updates old benchmark
contradictsInvalidates previous belief”Pooling helps” contradicts “Keep connections short”
related_toTopically connectedEval system → related to agent config
caused_byCausal chainTest failures caused by dependency upgrade
part_ofHierarchical groupingSession entries → part of milestone

Creating Edges

curl -X POST http://localhost:4360/api/memory/link \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"from": 42, "to": 17, "type": "updates"}'

Querying Edges

// Get what a memory updates
const links = await getLinksFrom(memoryId)

// Get what updates a memory  
const links = await getLinksTo(memoryId)

Future: Contradiction Detection

When a new memory contradicts existing knowledge, the system will automatically flag it and create an updates or contradicts edge.