Entities (Nodes)
Entities represent named concepts: people, projects, technologies, organizations, etc.search_graph.
Edges (Relationships)
Edges connect two entities with a typed relationship and an optional fact.Bi-Temporal Model
Edges support bi-temporal tracking:| Field | Purpose |
|---|---|
validAt | When the fact became true in the real world |
invalidAt | When the fact stopped being true |
expiredAt | When the edge was superseded in the system |
Updating Facts
When a fact changes,update_edge preserves history:
- The old edge is invalidated (marked with
expiredAtandinvalidAt) - A new edge is created with the updated fact and a fresh
validAt
Invalidation
Useinvalidate_edge when a relationship ends without replacement:
Graph Traversal
search_graph combines two search strategies:
- Vector search — Find relevant nodes and edges by semantic similarity
- Graph traversal — Walk N hops from hit nodes to discover connected entities
traverseDepth parameter controls traversal:
| Value | Behavior |
|---|---|
0 | Vector search only, no traversal |
1 | Include direct neighbors of hit nodes |
2 | Include neighbors of neighbors |