Back

ELEPHANT Engine — How AI Memory Works

ELEPHANT Engine — How AI Memory Works

? ELEPHANT: Never Forget

ELEPHANT is Alfred's persistent long-term memory engine. It remembers your preferences, past conversations, and project context across sessions using vector embeddings.

How It Works

  1. Capture — When you have important conversations, ELEPHANT stores key facts as vector-embedded memories
  2. Categorize — Memories are tagged by type: preferences, project context, session summaries, personal facts
  3. Retrieve — When relevant, ELEPHANT surfaces past context so Alfred can personalize responses
  4. Prune — The Context Pruner module manages memory decay, keeping important memories fresh

Memory Types

TypeExampleRetention
Preferences"User prefers Sonnet for code review"Permanent
Project Context"Working on e-commerce site with Stripe"Until project changes
Session Summary"Fixed auth bug in login.php today"30 days
Personal Facts"User's name is Sarah, runs a bakery"Permanent

? Related: Conversation Summarizer

Works alongside ELEPHANT to automatically summarize long chat sessions and store them as "session_summary" memories.

Was this answer helpful?