holographic-memory 0.6.3

Local-first search engine and agent memory: fast approximate nearest-neighbor and BM25 full-text search, encrypted stores, provable deletion, built on vector-symbolic architectures.
Documentation
1
2
3
4
5
6
7
8
from holographic_memory import PhaseHVec, resonator_factorize

left = PhaseHVec.random(1024, 256, 1)
right = PhaseHVec.random(1024, 256, 2)
composite = left.bind(right)

assert composite.unbind(right).similarity(left) == 1.0
print(resonator_factorize(composite, [[left], [right]], max_iter=50))