product updateAmazon Web Services

AWS adds metadata filtering to AgentCore Memory, improving agent retrieval accuracy from 40% to 64%

TL;DR

Amazon has added metadata filtering to its AgentCore Memory service for AI agents. In AWS evaluations across 151 questions, the feature improved overall question-answering accuracy from 40% to 64%, with context-dependent questions jumping from 16% to 69% accuracy. The update allows agents to filter memory retrieval by attributes like priority, department, or time range before semantic search runs.

2 min read
0

AWS adds metadata filtering to AgentCore Memory, improving agent retrieval accuracy from 40% to 64%

Amazon has added metadata filtering to its AgentCore Memory service, addressing a core problem in long-running AI agent deployments: semantic search returns contextually irrelevant results when agents accumulate weeks of interaction history.

Performance gains

According to AWS, internal evaluations across a 151-question test set based on long-term memory benchmarks showed overall question-answering accuracy improved from 40% to 64% with metadata filtering enabled. For questions requiring contextual boundaries—time-bounded lookups, priority-based filtering, or department-scoped searches—accuracy jumped from 16% to 69%.

How it works

AgentCore Memory organizes agent memory into namespaces that isolate data by entity (e.g., clients/client-123). The new metadata filtering layer adds attribute-based filters on top of namespace isolation. Teams can now scope retrieval by business dimensions like priority, status, department, or time range before similarity search executes.

The system operates through a three-phase lifecycle:

Configuration phase: Teams declare which metadata keys to index when creating a memory resource. Indexed keys include type (STRING, NUMBER, STRINGLIST), extraction instructions, and optional validation rules like allowed values or min-max ranges.

Ingestion phase: During conversations, string-based key-value pairs attach to events. An LLM extracts structured metadata from conversation content based on schema definitions. When multiple events in a session carry the same key, the system merges values using defined resolution behaviors (e.g., LATEST_VALUE for recency-based resolution).

Retrieval phase: Agents filter memory queries using these indexed metadata fields before semantic search runs.

Enterprise use cases

The update targets multi-agent and multi-tenant architectures. In a customer support scenario, an agent can now filter for "billing issues" with status:open and priority:high from the past 30 days, rather than receiving mixed results spanning technical tickets, sales conversations, and resolved disputes.

For financial services, relationship managers can query "portfolio rebalancing discussions" scoped to high-priority conversations from the last week, distinguishing them from routine inquiries three months ago—even though both are semantically similar.

Technical implementation

Metadata operates across both short-term and long-term memory layers. Short-term memory attaches string-based key-value pairs to events. These tags propagate into long-term memory during extraction and consolidation.

The schema supports validation constraints: allowedValues for STRING and STRINGLIST types, maxItems for STRINGLIST, and min-max ranges for NUMBER types. Non-indexed keys store alongside memory records for informational purposes without query optimization.

AWS notes that sentiment analysis can be defined in the schema without indexing, allowing the LLM to derive values from conversation content without making them filterable dimensions.

What this means

This addresses a scaling problem in production agent deployments. As conversation history grows beyond a few weeks, semantic similarity alone produces too many false positives. The 53% improvement in context-dependent question accuracy (16% to 69%) suggests metadata filtering is necessary infrastructure for agents handling multi-month interaction histories. Teams running customer support, IT helpdesk, or financial advisory agents with accumulated history will see immediate gains by layering business-specific filters over namespace isolation.

Related Articles

product update

AWS Publishes Reference Architecture for Contract Intelligence Using Bedrock AgentCore and Dual Claude Models

AWS published a reference architecture showing how to combine structured data extraction with Bedrock AgentCore, dual Claude models, and Amazon Quick to answer portfolio-wide questions that standard RAG systems get wrong. The design uses Claude Sonnet 4.6 for extraction and Claude Haiku 4.5 for independent verification, with Amazon Textract as a deterministic tiebreaker.

product update

Meta Launches Muse for Small Business, Expanding AI Agent Into Enterprise Software Stack

Meta launched Muse for Small Business, connecting its consumer AI agent to workplace tools including Slack, Zoom, Asana, Intuit, Box and Canva. The move follows Muse's top-of-App-Store debut on September 8 and comes a day after Meta announced a new enterprise platform led by former MongoDB CEO CJ Desai.

product update

Grok 4.7 Arrives on Amazon Bedrock with 500K Context Window and Configurable Reasoning

xAI's Grok 4.7 is now accessible through Amazon Bedrock via cross-Region inference profiles, offering a 500K token context window and four configurable reasoning effort levels. The model supports the Responses, Chat Completions, and Converse APIs, with Bedrock features including prompt caching, Guardrails, and structured outputs.

product update

Meta Launches Enterprise Platform to Sell Muse AI Agent and Coding Tools to Businesses

Meta is launching the Meta Enterprise Platform, a business unit that will sell AI tools including the Muse agent, Muse API, and Muse Code to companies. Former MongoDB CEO Chirantan Desai will lead the unit and report directly to Mark Zuckerberg.

Comments

Loading...