Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/core / / GraphEntity
Interface: GraphEntity
Defined in: packages/core/src/types/memory.ts:353
Stable
Canonical entity in the lightweight in-SQLite relation graph. The entity resolver (@graphorin/memory) deduplicates the raw subject/object strings on facts into canonical entities - merging aliases ("Anna", "Anna S.", "my sister") via lexical + embedding similarity (with optional LLM adjudication) - so multi-hop recall can traverse relationships instead of fragmenting them.
Merges are append-only and reversible: a merged entity is never deleted - its GraphEntity.mergedInto points at the surviving canonical entity, every merge / unmerge is recorded in an audit ledger, and mergedInto is single-level (it always points directly at a root), so mergedInto ?? id is the canonical id.
Core defines only the record shape; the storage surface for the graph (upsert / link / merge / one-hop expansion) is NOT part of the baseline MemoryStore contract - it lives in the optional GraphMemoryStoreExt exported from @graphorin/memory. Adapters without it simply have no relation graph.