Documentation

Memory Components

Memory components enable AI applications to maintain context and recall information from previous interactions. This persistence allows for more natural, coherent, and personalized conversations over time.

Why Use Memory Components?

  • Enable AI assistants to maintain context over long conversations
  • Provide personalized experiences by remembering user preferences
  • Create coherent multi-session interactions
  • Support complex workflows that span multiple interactions
  • Build systems that learn and improve from past interactions

Choosing the Right Memory Component

The choice of memory component depends on your specific requirements:

  • PostgreSQL Chat Memory: Best for enterprise applications requiring persistent storage and complex querying capabilities.
  • Redis Chat Memory: Ideal for high-performance applications where speed is critical, with optional persistence.
  • Memo Chat Memory: Perfect for applications needing advanced memory features like semantic search and sophisticated configuration options.