# AWS Makes Serverless OpenSearch Memory GA for AI Agents

*Updated on November 19, 2026*

Amazon Web Services has announced the general availability of **`Amazon OpenSearch Memory`**, a fully serverless capability built on Amazon OpenSearch Serverless that gives production AI agents durable, cross-session memory without requiring engineering teams to stitch together separate transcript databases, extraction jobs, vector indexes, and reconciliation pipelines.

As enterprise agents transition from one-off Q&amp;A widgets into multi-week customer support, sales engineering, and operations assistants, replaying entire raw conversation logs into every prompt rapidly degrades both latency and unit economics. AWS's launch benchmark illustrates the bottleneck starkly: feeding full multi-session history across 50 prior conversations averages roughly **`167,000` context tokens per question**, burning input budgets while burying critical preference changes inside stale dialogue.

`Amazon OpenSearch Memory` solves the persistence lifecycle inside a single managed resource called a **`space`**. Applications write each conversational turn verbatim via `CreateEvent`, making raw interactions searchable within seconds while asynchronous background pipelines driven by an **Amazon Bedrock** model extract structured facts, user preferences, and session summaries, embed them, and **consolidate** conflicting updates automatically.

Launched simultaneously across **five AWS regions**, the service connects through AWS SDKs, an **AWS Model Context Protocol (`MCP`) server**, lifecycle hooks, and major agent frameworks, with **extraction and embedding costs bundled directly into OpenSearch Memory pricing** rather than billed through fragmented external pipelines.

<a aria-hidden="true" id="executive-fast-facts"></a>  Fast Facts

- **General Availability Regions (`Nov 18, 2026`)**: Live across **US East (N. Virginia)**, **US East (Ohio)**, **US West (Oregon)**, **Europe (Frankfurt)**, and **Asia Pacific (Tokyo)**, announced via the [AWS Amazon OpenSearch Memory GA notice](https://aws.amazon.com/about-aws/whats-new/2026/11/amazon-opensearch-memory-generally-available/).
- **Benchmark Accuracy vs. Token Savings**: In the [AWS Big Data Blog technical launch benchmark](https://aws.amazon.com/blogs/big-data/introducing-amazon-opensearch-memory-persistent-memory-for-ai-agents/) on **`LongMemEval-S`** (`500` questions across `~50` sessions per user, Wu et al., ICLR 2025), OpenSearch Memory reached **`93.0%` accuracy** using **`~13,500` tokens** (`91.9%` fewer tokens than full history replay at `~167,000` tokens / `95.2%`).
- **Beat Raw Keyword Retrieval by `4.4` Points**: Outperformed BM25 top-30 raw turn search (`88.6%` accuracy at `~22,700` tokens) while cutting retrieved context size by **`40.5%`**.
- **Automatic Memory Consolidation &amp; Provenance**: Automatically adds, updates, or skips derived memories as user facts evolve (for example, merging a relocation from New York to Seattle into one current record) and attaches **`sourceEventIds`** to every memory for full audit traceability.
- **Enterprise Isolation &amp; Compliance**: Enforces per-store **AWS IAM** policies with **`actorId`** and **`sessionId`** scoping, **AWS KMS** encryption (including customer-managed keys), configurable event/memory TTL expiration, **AWS CloudTrail** API logging, and **Amazon CloudWatch** telemetry.

## `LongMemEval-S` Evaluation: Persistent Memory vs. Full Replay

AWS evaluated OpenSearch Memory on the public `LongMemEval-S` multi-session benchmark using `Claude Haiku 5.5` for extraction, `Amazon Titan Text Embeddings` for vectorization, and `Claude Opus 5.5` for both answering (receiving top-30 hybrid results) and blind grading against reference answers (`95%` confidence interval of `+/- 2–3` points):

| Context Strategy Supplied to Model | Answer Accuracy | Avg. Context Tokens / Question | Token Reduction vs. Full History |
|---|---|---|---|
| **Amazon OpenSearch Memory (Top-30 Hybrid)** | **`93.0%`** | **`~13,500` tokens** | **`-91.9%` (`12.4x` smaller)** |
| **BM25 Raw Conversation Turns (Top-30)** | `88.6%` | `~22,700` tokens | `-86.4%` (`7.4x` smaller) |
| **Full Multi-Session History Replay** | `95.2%` | `~167,000` tokens | Baseline (`1.0x`) |

The operational trade-off is compelling for production engineering leads. Accepting a `2.2`-percentage-point delta against brute-force 167K-token full history replay slashes prompt payload size by **`12.4x`**, preserving context budget for active tool schemas, RAG documents, and multi-step reasoning while avoiding the stale-fact contradictions that plague raw BM25 search. Hybrid retrieval (`match` + `neural`) is particularly critical in support and ERP workflows: keyword matching pinpoints exact identifiers like `Case #78234`, while semantic vector search simultaneously pulls the user's preferred callback channel and pending blocker.

Because OpenSearch Memory operates serverlessly, engineering teams provision zero OpenSearch clusters, choose zero instance types, and manage zero custom embedding indices. Capacity for asynchronous extraction, vectorization, consolidation, and hybrid retrieval scales automatically with workload volume, while `AWS IAM` condition keys restrict every agent role to authorized `actorId` and `sessionId` scopes backed by customer-managed `AWS KMS` keys and `AWS CloudTrail` API audit logs.

## Integrating Two-Call Hybrid Memory Into an Agent Loop

AWS reduces runtime agent memory integration to two calls per turn: a hybrid `search_memories` query scoped strictly to `actorId` before inference, and a verbatim `create_event` write afterward:

```
# 1. Pre-turn hybrid retrieval (exact case ID match + semantic context)
results = osm.search_memories(
 spaceId=space_id,
 actorId="user-42",
 query={
     "hybrid": {
         "queries": [
             {"match": {"memory_text": "Case #78234 open cases and account status"}},
             {"neural": {"memory_vector": {"query_text": "open cases and account status", "k": 10}}},
         ]
     }
 },
 maxResults=10,
)

# Traceable context with sourceEventIds for auditability
memory_context = "\n".join(m["content"] for m in results["memories"])

# 2. Post-turn verbatim write (triggers async extraction & consolidation)
osm.create_event(
 spaceId=space_id,
 actorId="user-42",
 sessionId="s-010",
 payload=[{"role": "USER", "content": "I relocated to Seattle last week; update shipping preferences."}],
)
```

For regulated workflows requiring immutable historical audit logs rather than merged facts, teams can disable overwriting per strategy by setting `consolidationEnabled: False` inside the `SEMANTIC` strategy configuration.

  Next Steps

1. **Replace Full-History Replay on Multi-Session Agents**: Benchmark OpenSearch Memory's top-20 to top-30 hybrid retrieval against your existing long-running support or account-management bots to capture `85%–92%` token compression.
2. **Enforce Strict IAM `actorId` Condition Keys**: Lock every agent IAM execution role with actor-level condition keys and KMS customer-managed encryption before storing multi-tenant client interactions.
3. **Configure Explicit TTL Retention Windows**: Set automatic expiration periods on raw conversational events versus derived preference memories to satisfy GDPR, CCPA, and enterprise data-minimization policies.