Skip to main content

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


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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for alpha_avatar_plugins_memory-0.6.4.tar.gz
Algorithm Hash digest
SHA256 794af9f50951815870310cf83f98174c5b22901ebd01233348ae05138bc73d53
MD5 bfed094884abd855b7bc263b23815915
BLAKE2b-256 4fa78955b492ef52bca9c3699642a3a839ac3bf589d8548580b65b72a4b5d78d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alpha_avatar_plugins_memory-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c6b70cdc819d11ff0e1b3c9a10b84e4733a961b56e42d3539b27bced4c899039
MD5 fa9de1613570294c9662510988e5679b
BLAKE2b-256 4dcbb0d07588fdc1145d17f725e2ab395846c01ba43abfe5419dbafc904d28dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page