NOTE

Memory

Distinguish model knowledge, short-term context, and long-term memory, with an emphasis on storage, retrieval, and lifecycle management.

AIUpdated 1 min read

Memory

Categories

  • Knowledge Encoded in Model Parameters
    • Knowledge acquired during training and stored implicitly in model weights.
  • Short-Term Memory
    • Information currently available in the model’s context window.
  • Long-Term Memory
    • Information persisted outside the model and retrieved when needed.

Why Is Memory Needed?

  • Context windows have finite capacity.
  • Agents need to preserve task history and intermediate state.
  • Useful information should remain available across sessions.

What Is Memory?

  • A mechanism for storing, retrieving, updating, and using information.

Memory Management

  • Store and Update Information
    • Summarize and Remove Duplicates
    • Expire or Forget Outdated Information
    • Resolve Conflicting Memories

Memory Retrieval

  • Database Queries or Search
  • Retrieval-Augmented Search

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub