AlphaAvatar Framework plugin for memory service
Project description
๐ง Memory Plugin for AlphaAvatar
Give AlphaAvatar the ability to remember you, its tools, and its environment โ across conversations, sessions, and time.
๐ค What is the Memory Plugin?
Imagine talking to an assistant that forgets everything the moment you close the app. Frustrating, right?
The Memory Plugin gives AlphaAvatar a persistent memory layer. It can:
- Remember your preferences, goals, and important facts
- Recall past conversations and previous decisions
- Learn from tool usage, research, and retrieved documents
- Build environment memories from live visual observations
- Retrieve related memories through semantic and graph-aware search
Think of it as AlphaAvatar's long-term notebook โ important information is extracted, organized, stored, and brought back when it becomes useful.
๐ก How Does it Work? (Simple Flow)
Conversation / Tool Result / Visual Observation
โ
AlphaAvatar extracts useful memory updates
โ
Runtime adds identity, session, graph, and evidence metadata
โ
Memories are stored in local or remote vector storage
โ
Relevant memories are retrieved in future turns
โ
AlphaAvatar responds with better continuity and grounding
Conversation and tool memory work automatically in the background.
Online ENV memory is enabled when a multimodal env_delta_task is configured.
โจ Features
๐ Persistent Memory
AlphaAvatar maintains memories beyond a single chat session.
This includes:
- Things you told it
- Important conversation decisions
- Results from MCP, RAG, and DeepResearch
- Useful observations from the camera, screen, or surrounding environment
- Links between people, objects, sessions, tools, and events
โก Runtime Memory Updates
Memory can update while a session is active instead of waiting until the conversation ends.
Conversation, tool, and ENV memory use separate extraction paths, while the runtime controls timestamps, ownership, evidence, graph structure, and session metadata.
๐๏ธ Online ENV Memory
The Memory plugin can consume ordered observation windows from PerceptionRuntime.
Video / Screen Observations
โ
PerceptionRuntime Window
โ
Multimodal ENV Extraction Task
โ
EnvMemoryDelta
โ
MemoryType.ENV
ENV memory prefers annotated visual evidence when available and falls back to raw frames. Heavy runtime payloads such as video frames are never written directly into memory storage.
๐ธ๏ธ Graph-aware Retrieval
Memories can include graph nodes and links for entities such as:
- users
- faces and speakers
- objects
- sessions
- tools
- locations
- events
Graph nodes act as retrieval anchors, while memory text remains the source of truth.
๐ฆ What Kind of Things Does AlphaAvatar Remember?
| Type | Example |
|---|---|
| ๐ค Personal facts | โMy name is Alex and I live in New York.โ |
| โค๏ธ Preferences | โI prefer short, direct answers.โ |
| ๐๏ธ Conversation memory | A decision or topic from an earlier session |
| ๐ Research results | Findings from a DeepResearch task |
| ๐ Document knowledge | Useful information retrieved through RAG |
| ๐ ๏ธ Tool interactions | Results from MCP tools such as Gmail or Notion |
| ๐๏ธ ENV memory | โA person placed a red cup on the desk.โ |
| ๐ธ๏ธ Graph associations | A user, object, tool, and event linked across memories |
๐ง Installation
pip install alpha-avatar-plugins-memory
The plugin is then loaded through the AlphaAvatar configuration.
To enable online ENV memory, configure a multimodal provider task such as:
env_delta_task: memory.env_delta
If no ENV extraction task is configured, the rest of the Memory plugin continues to work normally.
๐๏ธ How Memories are Stored
AlphaAvatar stores memories as structured records with searchable embeddings and runtime-owned metadata.
Memory records can include:
- memory text
- memory type
- object ownership
- timestamps and session IDs
- evidence references
- graph nodes and links
- additional runtime metadata
Supported Backends
| Backend | What it Does |
|---|---|
| LanceDB | Local vector storage and graph-aware retrieval (default) |
| Qdrant | Remote or self-hosted vector storage |
| Provider Gateway | Routes extraction tasks to configured LLM or VLM providers |
By default, AlphaAvatar can run with local LanceDB storage. Raw camera frames, audio buffers, and other heavy runtime payloads are not persisted as memory items.
๐ How Memory Connects to Other Modules
PerceptionRuntime
โโโ โ ENV Memory (visual and future audio observations)
Persona Plugin
โโโ โ Identity Aliases (face / speaker / user relationships)
RAG / DeepResearch / MCP
โโโ โ Tool Memory (documents, research, and actions)
Memory Plugin
โโโ โ Avatar Runtime (dynamic per-turn context)
โโโ โ Graph Retrieval (entity and relationship lookup)
โโโ โ Reflection* (behavior improvement)
โโโ โ Planning* (goals and reminders)
* Planned
๐ Common Questions
Q: Does memory work across sessions? Yes. Stored memories can be retrieved in later sessions.
Q: Does ENV memory save my raw camera stream? No. Raw runtime frames are not stored as memory records. The configured multimodal model extracts useful environment memories from selected observation windows.
Q: Is ENV memory always enabled?
No. It is optional and only runs when env_delta_task is configured.
Q: Can memory distinguish different users? Memory supports multi-object ownership and graph aliases. Persona can resolve temporary face or speaker identities to stable users.
Q: Can I see or delete individual memories? Fine-grained inspection, correction, export, and deletion controls are still being developed.
Q: Is my data private? Local LanceDB storage keeps memory data on your own machine unless you configure a remote backend or external model provider.
๐ Coming Soon
| Feature | Description |
|---|---|
| ๐ค Audio ENV Memory | Extract useful events and context from continuous audio streams |
| ๐ Rich Visual-history Search | Search by objects, events, identities, and time ranges |
| ๐งฉ Multi-annotation Fusion | Combine face, speaker, object, action, and scene annotations |
| ๐ Memory Privacy Controls | Inspect, edit, export, and delete memories |
| ๐ฅ Stronger Multi-user Memory | Better separation and merging across shared sessions |
| ๐ง Reflection & Planning | Use memory for longer-term behavior improvement and goals |
๐ Related Links
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.4.tar.gz.
File metadata
- Download URL: alpha_avatar_plugins_memory-0.6.4.tar.gz
- Upload date:
- Size: 38.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
794af9f50951815870310cf83f98174c5b22901ebd01233348ae05138bc73d53
|
|
| MD5 |
bfed094884abd855b7bc263b23815915
|
|
| BLAKE2b-256 |
4fa78955b492ef52bca9c3699642a3a839ac3bf589d8548580b65b72a4b5d78d
|
File details
Details for the file alpha_avatar_plugins_memory-0.6.4-py3-none-any.whl.
File metadata
- Download URL: alpha_avatar_plugins_memory-0.6.4-py3-none-any.whl
- Upload date:
- Size: 49.8 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 |
c6b70cdc819d11ff0e1b3c9a10b84e4733a961b56e42d3539b27bced4c899039
|
|
| MD5 |
fa9de1613570294c9662510988e5679b
|
|
| BLAKE2b-256 |
4dcbb0d07588fdc1145d17f725e2ab395846c01ba43abfe5419dbafc904d28dd
|