Skip to main content
The --auto-memory flag enables automatic extraction and storage of important information from conversations.

Quick Start

Usage

Basic Auto Memory

Expected Output:

With User Isolation

Expected Output:

Combine with Other Features

How It Works

  1. Conversation Analysis: The system analyzes the conversation
  2. Information Extraction: Important information is identified
  3. Categorization: Information is categorized (entities, facts, preferences)
  4. Storage: Memories are stored for future retrieval
  5. Retrieval: Memories are automatically injected into future conversations

Memory Types Extracted

Use Cases

Personal Assistant

Expected Output (second conversation):

Project Context

Team Preferences

Viewing Stored Memories

Use the memory command to view whatโ€™s been stored:
Expected Output:

Memory Persistence

Memories are stored locally and persist across sessions:

Best Practices

Use --user-id to keep memories separate for different users or projects.
Auto memory increases token usage as memories are injected into prompts. Monitor with --metrics.

User Isolation

Use --user-id for multi-user scenarios

Regular Cleanup

Periodically clear old memories with praisonai memory clear

Combine with Sessions

Use with --session for project-specific memory

Monitor Usage

Use --metrics to track memory-related token costs

Privacy Considerations

Memories are stored locally on your machine. No data is sent to external servers for memory storage.
  • Memories are stored in .praison/memory/
  • Use praisonai memory clear all to delete all memories
  • Each user ID has isolated memory storage