• Home
  • Categories
  • Tags
  • Pricing
  • Submit
    Decorative pattern
    1. Home
    2. Concepts & Definitions
    3. Observer-Reflector Architecture

    Observer-Reflector Architecture

    Memory system architecture used in Mastra's Observational Memory with two background agents that compress and garbage collect conversation history achieving 5-40x compression.

    🌐Visit Website

    About this tool

    Overview

    The Observer-Reflector Architecture is a two-agent system used in Mastra's Observational Memory that watches conversations and maintains a compressed text-only observation log.

    Architecture Components

    Observer Agent

    When messages hit 30k tokens (configurable threshold), a separate "observer agent" compresses messages into new observations that are appended to the observation block. The compression is typically 5–40×.

    Reflector Agent

    When observations hit 40k tokens (also configurable), a separate "reflector agent" garbage collects observations that don't matter, removing outdated or irrelevant information.

    Context Window Structure

    The context window is broken into two blocks:

    1. First block: List of compressed observations
    2. Second block: Raw messages that haven't yet been compressed

    Key Benefits

    • Completely stable context window that's predictable and reproducible
    • Prompt-cacheable across many agent/user turns
    • Uses formatted text rather than structured objects
    • Easier to debug than vector-based approaches

    Performance

    Observational Memory achieves 94.87% on LongMemEval with GPT-5-mini, the highest score ever recorded on this benchmark.

    Pricing

    Open-source as part of Mastra framework.

    Surveys

    Loading more......

    Information

    Websitemastra.ai
    PublishedMar 24, 2026

    Categories

    1 Item
    Concepts & Definitions

    Tags

    3 Items
    #Memory#Compression#Architecture

    Similar Products

    6 result(s)
    Compression Ratio Optimization

    Techniques for optimizing the trade-off between memory usage and accuracy in vector quantization, achieving 5-40x compression in systems like Mastra's Observational Memory.

    Binary Quantization for Vector Search

    Compression technique that converts full-precision vectors to binary representations, achieving 32x storage reduction while maintaining 90-95% recall for efficient large-scale vector search.

    Co-partitioned Vector Index

    Indexing strategy where vector indexes are stored in the same partitions as corresponding table rows, ensuring data locality and operational advantages in distributed databases.

    Event-Driven Agent Core

    Agent architecture pattern in AG2 where agents respond to events rather than polling, enabling better async execution, scalability, and resource efficiency.

    Perpetual Sandbox

    Sandbox architecture that maintains state indefinitely while scaling costs to zero during idle periods. Pioneered by Blaxel with sub-25ms resume times from standby mode.

    Embedding Dimensions

    The size of vector embeddings, typically ranging from 128 to 1536 dimensions for text models. Higher dimensions capture more nuanced semantics but require more storage and computation. Modern techniques like Matryoshka embeddings allow flexible dimension selection from a single model.

    Decorative pattern
    Built with
    Ever Works
    Ever Works

    Connect with us

    Stay Updated

    Get the latest updates and exclusive content delivered to your inbox.

    Product

    • Categories
    • Tags
    • Pricing
    • Help

    Clients

    • Sign In
    • Register
    • Forgot password?

    Company

    • About Us
    • Admin
    • Sitemap

    Resources

    • Blog
    • Submit
    • API Documentation
    All product names, logos, and brands are the property of their respective owners. All company, product, and service names used in this repository, related repositories, and associated websites are for identification purposes only. The use of these names, logos, and brands does not imply endorsement, affiliation, or sponsorship. This directory may include content generated by artificial intelligence.
    Copyright © 2025 Awesome Vector Databases. All rights reserved.·Terms of Service·Privacy Policy·Cookies