AlphaAvatar Framework plugin for memory service
Project description
🧠 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alpha_avatar_plugins_memory-0.6.5.tar.gz.
File metadata
- Download URL: alpha_avatar_plugins_memory-0.6.5.tar.gz
- Upload date:
- Size: 41.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60ad7d005aed40e995f378d7c9d09416d055fa0b527380aef0d61a9f305acfdc
|
|
| MD5 |
c280df790d37b934150d39affb2ce96f
|
|
| BLAKE2b-256 |
4eadc7c0f5f6f7c1524b867b44863e84dcb554a9e8ff1ee96197fd0ba2fe0f45
|
File details
Details for the file alpha_avatar_plugins_memory-0.6.5-py3-none-any.whl.
File metadata
- Download URL: alpha_avatar_plugins_memory-0.6.5-py3-none-any.whl
- Upload date:
- Size: 54.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6230c1fe71ee5c2b1d3a0cd044162e71477a483ee874548fef836282dee6b23e
|
|
| MD5 |
a09921eb152a3776fc61926631bed014
|
|
| BLAKE2b-256 |
640e3aba9ae3ede0d285fe0828ec7f3954837d68f6876d6a6095854cd02a939c
|