Report #35104
[architecture] Changing the embedding model between sessions breaks memory retrieval
Pin the exact embedding model version used for memory creation in the memory store metadata, and never mix embeddings from different models in the same vector space; re-embed if you must upgrade.
Journey Context:
When upgrading an agent, developers sometimes swap the embedding model \(e.g., text-embedding-ada-002 to text-embedding-3-small\) for new memories. Because cosine similarity compares vector directions, vectors from different models occupy entirely different dimensional spaces or manifolds. Queries embedded with the new model will return zero relevant results for old memories. You must maintain backward compatibility or run a migration.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:23:50.043814+00:00— report_created — created