Skip to main content

🧠 AlphaAvatar Memory Plugin

The Memory Plugin provides persistent conversation, tool, and environment memory for AlphaAvatar.

🧩 Module Overview

The plugin is responsible for:

  • extracting durable memories from conversations and tool results;
  • building ENV memory from live perception observations;
  • attaching identity, session, evidence, and graph metadata;
  • storing memory records in local or remote vector databases;
  • retrieving relevant memories for future interactions.

Memory extraction is divided into independent paths:

Conversation
    └── → Conversation Memory

Tool / RAG / DeepResearch Result
    └── → Tool Memory

Visual or Audio Observation
    └── → ENV Memory

Supported memory types include:

Memory Type Description
Avatar Stable information about the avatar itself
Conversation User information, preferences, decisions, and interaction history
Tools Useful results produced by tools, RAG, MCP, or research
ENV Information extracted from visual or audio environment observations

🌍 ENV Memory

ENV Memory consumes observation windows from PerceptionRuntime.

Video / Screen / Audio Observation
                ↓
        PerceptionRuntime
                ↓
       EnvMemoryScheduler
                ↓
   Multimodal ENV Extraction
                ↓
         MemoryType.ENV

EnvMemoryScheduler manages:

  • periodic ENV memory updates;
  • updates triggered by user turns;
  • resetting the periodic interval after a successful triggered capture;
  • fast perception cursor commits;
  • serialized model inference;
  • pending batch merging and retry handling.

ENV memory is only updated when visual or audio observations are available.

User text does not independently create ENV memory. It is attached only as additional context when real environment observations are present.

Visual / Audio Observation + User Text
                    ↓
             ENV Memory Update

User Text Only
      ↓
No ENV Memory Update

Visual observations are sampled before extraction to avoid repeatedly processing similar frames. Raw audio frames are ignored; future audio support should use audio segments or semantic audio events.

Heavy runtime payloads such as video frames and audio buffers are not stored directly as memory records. ENV memory stores extracted text, evidence references, and metadata.

🕸️ Storage and Retrieval

Memory records may contain:

  • memory text;
  • memory type;
  • object ownership;
  • session and timestamp metadata;
  • observation evidence;
  • graph nodes and links;
  • provider-specific metadata.

Supported storage backends include:

Backend Usage
LanceDB Local vector storage and retrieval
Qdrant Remote or self-hosted vector storage

Memory retrieval supports:

  • semantic context search;
  • filtering by memory type, session, or object ID;
  • graph-node lookup;
  • graph-neighbor expansion;
  • identity alias resolution.

Graph metadata improves retrieval across related users, speakers, faces, objects, tools, sessions, and events, while memory text remains the primary stored information.

🔗 Module Relationships

PerceptionRuntime
    └── → ENV Memory observations

Persona Plugin
    └── → user, face, and speaker identity aliases

RAG / DeepResearch / MCP
    └── → Tool Memory

Memory Plugin
    ├── → Dynamic runtime context
    ├── → Semantic retrieval
    └── → Graph-aware retrieval

📦 Installation

pip install alpha-avatar-plugins-memory

The plugin is loaded through the AlphaAvatar configuration.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alpha_avatar_plugins_memory-0.6.6.tar.gz (43.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alpha_avatar_plugins_memory-0.6.6-py3-none-any.whl (58.1 kB view details)

Uploaded Python 3

File details

Details for the file alpha_avatar_plugins_memory-0.6.6.tar.gz.

File metadata

File hashes

Hashes for alpha_avatar_plugins_memory-0.6.6.tar.gz
Algorithm Hash digest
SHA256 fb2fc661f03ded882b5fed6cf5d4707a592ab0087d806eb7ad1425f4c62d08eb
MD5 6fe373fa6a4dfee4b47f2e3a7a725a85
BLAKE2b-256 db9ea5def9a0dd4b48be0b8646ce75cceb428ab34ca37820abf6b3c67a19abac

See more details on using hashes here.

File details

Details for the file alpha_avatar_plugins_memory-0.6.6-py3-none-any.whl.

File metadata

File hashes

Hashes for alpha_avatar_plugins_memory-0.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3ef1b6cbb04ec36b0b701bd15238d4c6db67ebee5e09607517aac77afc766f04
MD5 4e495064edd1ebe01d73734e23f3b1ac
BLAKE2b-256 1c8d55a8fe09c6729ee04f03df9fca157a32e96a1f3d36a7b06a761ec510211b

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.7

2 files

This release

0.6.6 This release

2 files

0.6.5

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page