Keyboard shortcuts

Press ← or β†’ to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

HyperBinary Types

All vector types conform to a common interface. In Go this is the HyperBinary interface; in Rust it is the HyperBinary trait. The two implementations are kept at feature parity.

Python doesn’t have the concept of interface/trait, but all HyperBinary derived types share a common set of methods.

v.model()        # Model enum
v.width()
v.cardinality()
v.hint()
v.stable_hash()  # int
v.seed128()
v.exponent()

v.core()         # SparseSegmented
v.power(p)       # HyperBinary

Concrete Types

TypeDescription
SparseSegmented 🍑Foundational vector β€” packed per-segment offsets
Sparkle ✨Seeded, deterministic hypervector
Learner πŸ’«Online Hebbian learning
Set 🫧Unordered collection
Sequence πŸ“ΏOrdered collection with positional encoding
Octopus πŸ™Key-value composite
Knot πŸͺ’Bound (multiplied) group
Parcel 🎁Bundled (added) group
Last change: , commit: 03128b0