Skip to main contentCrate reliary_memory
Source - Hypervector
- Bit-packed hypervector: each bit represents a bipolar value (0 → -1, 1 → +1).
10,000 dims = 157 u64 words = 1,256 bytes (vs 10,000 bytes as Vec).
- MemoryRecord
- Memory record
- MemoryStore
- ScoredMemory
- Scored memory (from a search query)
- bipolar_clamp
- Bipolar clamp: for bit-packed HVs, values are already bipolar {-1,+1}.
This is a no-op — bit-packing enforces bipolar by construction.
- bundle
- Bundle: sum + bipolar clamp (legacy API — delegates to bit-packed).
- dot
- Dot product of two hypervectors (cosine similarity).
M1+M3: Uses XOR+popcount dot + precomputed norm.
- fnv_seed
- Grammar-free identifier scanning
M12: to_ascii_lowercase instead of to_lowercase (no Unicode table).
- make_hv
- Generate a deterministic random hypervector from a seed.
M1: Uses bit-packing — 1 bit per dim instead of 1 byte.
- open_persistent
- Open or create a persistent SQLite-backed memory store
- save_persistent
- Save all memories to SQLite
- scan_tokens