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 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.
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
Amazon Quick AI Assistant Now Embeds Directly Into Word, Excel, PowerPoint, and Outlook
Amazon has released Microsoft 365 extensions for its Quick AI assistant, embedding agentic capabilities directly into Word, Excel, PowerPoint, and Outlook. The extensions run entirely in the cloud, require no client-side installation, and connect to existing Quick data sources like Salesforce, Jira, Slack, and SharePoint.
Astro Creator Fred Schott Ships Flue 2, Bringing React-Style Hooks to AI Agent Development
Fred Schott, creator of the Astro web framework, has released Flue 2, the first stable version of his agent development framework. The update introduces React-inspired 'Agent Hooks' that let developers build agents whose configuration changes dynamically during a conversation rather than being fixed in advance.
AWS Details Custom Reward Function Design for Multi-Turn RL on Amazon Nova Forge
AWS published a technical guide on designing custom composite reward functions for multi-turn reinforcement fine-tuning (RFT) of Amazon Nova models via Nova Forge's Bring Your Own Orchestration (BYOO) capability. The post covers GRPO-based reward scoring, combining outcome rewards, behavioral rewards, and penalties, plus a serverless multi-turn RL option now generally available.
GitHub Details Agent Apps That Automate Scoping, Security, Rollout, and Shipping in SDLC
GitHub published guidance on using four Agent Apps to manage software delivery workflow stages—scoping, security, rollout, and shipping—directly within GitHub. The post positions Agent Apps as a way to consolidate SDLC tasks into a single platform.
Comments
Loading...