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 Multimodal WhatsApp Ordering Agents Using Bedrock AgentCore and Nova 2

AWS published a reference architecture showing how to deploy a WhatsApp ordering assistant on Amazon Bedrock AgentCore, using Nova 2 Lite for text and Nova 2 Sonic for voice, with shared cross-channel memory and MCP-based tool access to backend systems.

product update

t54 Processes 20 Million Autonomous Agent Payments Using Amazon Bedrock AgentCore

t54's x402-secure trust layer, running on Amazon Bedrock AgentCore payments, has processed over 20 million agent-initiated micropayments without human approval. The system uses a deterministic risk-scoring gate to block payments to unsafe endpoints before funds settle.

product update

xAI Brings Grok Bot to iPad and Android, Cuts Price From $300/Month to $20/Month

xAI has expanded its Grok Bot AI agent app from iPhone and Mac to iPad and Android, while slashing the price from $300/month to compatibility with the $20/month Cursor Pro plan. Enterprise customers using Grok or Cursor get free access for a limited time.

product update

GitHub Launches Project HydraFusion, a Multi-Model Orchestration System for Copilot Coding Workflows

GitHub has released Project HydraFusion as a research preview in GitHub Copilot, an orchestration system that routes coding tasks across multiple models. GitHub claims its selective workflows matched or exceeded an Opus 5 baseline in offline evaluations while cutting estimated workflow cost.

Comments

Loading...