Commit Graph
2 Commits
Author SHA1 Message Date
DhilipBinny 269394d72d test: add Redis update tests for vector=None embedding guard 2026-03-18 10:40:36 +08:00
DhilipBinny f38b6b0ecc fix: prevent embedding corruption in Valkey and Redis when vector is None
When update() is called with vector=None (metadata-only update),
np.array(None) silently creates a 4-byte scalar instead of raising
an error, overwriting the real embedding and making memories
unsearchable. Skip the embedding field entirely when vector is None,
matching the pattern used by 9 other vector store implementations.

Fixes #4336
2026-03-17 01:17:14 +08:00