Vector Memory

aka Semantic Memory, Embedding-Indexed Memory

category: memory · status: mature

Intent

Store memories as embeddings in a vector index and retrieve the most semantically similar items at query time.

Context

Long-running agents accumulate facts/observations whose relevance is best judged by similarity to the current context.

Problem

Append-only logs grow unboundedly; without semantic retrieval the agent cannot find the relevant past.

Forces

Solution

Each memory item is embedded and indexed. At query time, embed the query (or a summary of current state), retrieve top-k most similar memories, prepend to context. Optional decay (boost recent, age old) and salience weighting.

Constrains

The agent reads memory only through the retriever; full-store scans are not part of the loop.

Consequences

Benefits

Liabilities

Known Uses

Related Patterns

References