09 — Vector memory
Basis
Vectors as first-class records. A hierarchical navigable small-world index sits on top of Strand-backed history, giving you vector search over stable record IDs. Preserve embedding dimensions, metric and original record references; verify index recovery separately from log replication.
A closer lookMemory with a little more meaning.
Semantic organization gives an agent another way to retrieve its stored context.
- 01Collect the context
- 02Organize by meaning
- 03Retrieve what matters
01 — Concepts
01
Hierarchical Navigable Small-World index over Strand-backed history.
02
BLAKE3 content-addressing — identical vectors deduplicate at the chunk layer.
03
Defaults: M=12 neighbors per layer, M0=24 at the base, ef=24 search width.
04
Tombstone deletion preserves the audit trail; nothing is rewritten.
05
RAG retrieval, semantic search, anomaly detection — same primitive.
02 — Code
A handful of lines.
// Given an opened Basis, stable record UUID and compatible vector.
node.basis_add("semantic", record_id, &embedding).await?;
let matches = node.basis_search("semantic", &query, 5).await?;
// Resolve returned UUIDs to authorized source records.