Skip to main content

Structure

Basic Usage

Memory can be configured in three main ways:

Memory References

Memory can be configured and accessed at three different levels:
At each level, memory can be accessed through:
  • {{ memory.<id>.current_thread }} - Access current conversation context
  • {{ memory.<id>.last_messages }} - Retrieve recent messages
  • {{ memory.<id>.semantic_search }} - Find relevant past interactions

Best Practices

Storage Selection

Choose whether to use the default in-memory storage or configure a persistent storage backend based on your needs.

Vector Configuration

Always configure your vector database with appropriate dimensions and connection details.

Embedder Selection

Consider configuring a specific embedder when you need control over the embedding process.

Memory IDs

Always provide clear, descriptive memory IDs as they are required for accessing memory through {{ memory.<id> }} references.