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.7.tar.gz (57.5 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.7-py3-none-any.whl (84.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for alpha_avatar_plugins_memory-0.6.7.tar.gz
Algorithm Hash digest
SHA256 5f33560db270ed5b836b69d2b8026336b1dd08c497e94a6759abf74c54f9b881
MD5 c8a46b2da828e2303b79cab59c54d1ed
BLAKE2b-256 850f1a995fc5cb41b69d4b3f39795381e99004ea42106028bb62c44843f8fe24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alpha_avatar_plugins_memory-0.6.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bbba53d9cdbfa9b9141e43e71ca55b94067f01918f8c33e84687244f0f8eb64b
MD5 1a63c9e707d739059b08e412ccda4235
BLAKE2b-256 2d8f586dd12701ab4e1ef1235f7fec3d41947ee614e6a7f767baf4911c79c67a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6.7 This release

2 files

0.6.6

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