This specification extends v0 with Enterprise features: Pluggable Indexing, Quantization, and Host Metadata.
Strategies to accelerate vector search.
bruteforce: O(N) scan. Exact. Deterministic. (Default)hnsw: Graph-based. O(log N). Deterministic (seeded).flat: Contiguous memory scan optimization.
Strategies to compress vector storage.
none: Full precision (Q16.16).scalar: 8-bit per dimension (u8). lossy.product: PQ coding (future).
Key-Value storage attached to IDs. Not part of the deterministic kernel calculation but stored alongside it.
- Scope:
RecordId,NodeId, namespaced strings? - Format: JSON.
When starting the node, configuration flags determine the Index/Quantization strategy. (Currently compile-time or startup-config).
POST /v1/memory/search_vector
{
"query_vector": [0.1, ...],
"k": 5,
"index": "hnsw" // Optional override hint
}POST /v1/memory/meta/set
{
"target_id": "rec:123", // or "node:50"
"metadata": {
"author": "gwern",
"timestamp": 123456789
}
}GET /v1/memory/meta/get?target_id=rec:123
Response:
{
"target_id": "rec:123",
"metadata": { ... }
}- The system maintains
data.bin(Kernel Snapshot) andmeta.json(Metadata). - Auto-Save: Configurable interval (e.g., 30s) or on-change.
- Determinism: The
data.binis bit-perfect.meta.jsonis standard JSON.