Amazon Bedrock Memory-Aware Agentic Retrieve
Amazon Bedrock Managed Knowledge Base now integrates memory-aware agentic retrieval for multi-user agents, maintaining conversation history and access control.

What changed
Amazon Bedrock Managed Knowledge Base now integrates with Amazon Bedrock AgentCore memory to support memory-aware agentic retrieval. Developers can add a memoryConfiguration parameter to the AgenticRetrieveStream request to automatically manage conversation history and long-term user context alongside document retrieval.
When this configuration is enabled, the service stores each conversation, extracts durable facts from exchanges, and determines which facts matter for the current query. The planner component automatically searches a user’s long-term memory and uses those findings to compose sub-queries sent to the knowledge base. After generating an answer, the service saves the interaction back to memory. This entire process occurs within a single API call and maintains backward compatibility with existing deployments.
The integration is opt-in and designed for multi-user applications. AWS released a sample application on GitHub demonstrating how to build a multi-tenant assistant where employees share one knowledge base and one memory resource while maintaining per-user document access control and memory isolation.
Why it matters
Users of knowledge-grounded applications expect the system to remember them across interactions, not just retrieve information well. They ask follow-up questions that depend on previous context and expect answers to reflect personal details mentioned in earlier conversations. Building this capability typically requires developers to store conversations separately, extract relevant facts, determine which ones matter for each new question, and inject them into searches. For multi-user applications, this process must be isolated per user and synchronized with document-level access control.
The Bedrock integration moves these responsibilities to a managed service. Document retrieval now incorporates awareness of the user’s personal memory, access permissions, and session history. This matters for customer support assistants, document chat features in SaaS products, and internal company assistants where consistency and personalization are expected.
For teams building on AWS, the integration eliminates the need to maintain a separate conversation storage system. The application authenticates users and passes their identity; Bedrock handles storing conversations, extracting facts, and deciding when to use that context. For organizations with strict access control requirements, the system enforces document and memory isolation through ACLs and IAM conditions, even if application code makes a mistake.
What to test
Before adopting memory-aware agentic retrieval, validate these vendor claims:
Functional behavior
Verify that conversation history persists across multiple turns and that follow-up questions reflect previous context. Test whether memory searches actually influence the planner’s decisions and the sub-queries it generates. Confirm that memory extraction produces accurate, actionable long-term records from raw conversations and that irrelevant information is not retained.
Access control and isolation
Deploy the sample application and verify that users can only read documents their ACL permits. Test with multiple roles (engineer, salesperson, HR) to ensure boundaries are enforced. Confirm that memory is truly isolated per user by attempting to retrieve one user’s memory from another user’s session and verifying it returns nothing. Verify that IAM conditions enforcing per-user memory namespaces actually prevent unauthorized access if application code passes an incorrect actor ID.
Performance and cost
Measure latency of a single AgenticRetrieveStream call with and without memoryConfiguration enabled. The documentation indicates this is a single call, but verify that the added memory operations do not introduce unacceptable delays. Test behavior under concurrent multi-user load to identify whether memory contention or session conflicts occur. Examine the cost structure for memory storage and extraction, noting that the sample application does not mention pricing details. Confirm how long memory is retained and what per-user storage costs at scale.
Integration patterns
Test session recovery by creating a session ID, closing the connection, and verifying the session can be reopened and continues from the correct context. Verify that the userContext and memory actor ID can be derived from identity providers beyond Cognito, such as Okta, Auth0, or custom JWT issuers. Confirm that ACL-filtered document retrieval works with custom S3 bucket structures and ACL file formats, as the sample uses a specific global ACL JSON structure.
Common questions
How does the service decide when to use memory in a search?
The planner component decides independently when a fact about the user would help. It can retrieve user facts from long-term memory and use them to compose the sub-queries sent to the knowledge base. The service supports speculative retrieval and memory searches, giving the planner flexibility in how it uses context.
Can memory be added to existing knowledge bases?
The integration requires that the memory resource be in the same AWS account as the knowledge base and in the ACTIVE state. If you deployed an application using AWS’s earlier multi-tenant knowledge base pattern, this feature replaces the manual conversation history persistence step, suggesting it can be added to existing knowledge bases without rebuilding them.
What happens to old memory if a user is deleted?
The sample application does not specify retention or deletion policies. This is a detail you should verify with AWS before deploying in production, especially for compliance-sensitive applications like HR or finance assistants.
Does every API call to the knowledge base trigger memory updates?
By default, the service saves the question and generated answer to the session with persistenceMode: DEFAULT. AgentCore memory then extracts long-term records asynchronously according to configured strategies. The sample shows that the persist parameter can be set to false for testing, allowing control over whether a given interaction is saved to memory.
The conclusion
Memory-aware agentic retrieval addresses a genuine gap in multi-user AI applications. It allows developers to move from ad-hoc session management to a structured, managed approach where conversation history and long-term context are integrated alongside document retrieval. The integration with Managed Knowledge Base eliminates the need to maintain separate vector stores or conversation tables.
The effectiveness of this feature depends on how well the planner learns when to use memory and how accurately long-term extraction performs on your specific domain. For teams already on Bedrock, this represents a natural extension. For teams evaluating whether to adopt Bedrock, the managed memory feature reduces architectural complexity and operational risk compared to building memory on top of standard retrieval-augmented generation.
Start by running the sample application with your own test users and documents. Verify that memory isolation holds under your access control scheme and that added latency is acceptable. If you need memory retention policies, cost predictability, or support for identity providers beyond Cognito, raise those questions with AWS before committing to production use.
The feature is available in the US West (Oregon) region.
Related reading
AI Tool Herald may earn a commission from some links on this site. It never changes what we report or recommend. Affiliate disclosure
Related stories

Claude Ship: automate GitHub code review and approvals
Anthropic launches Claude Ship to automate code review, fixes, and approvals for GitHub pull requests. Two new agents in beta eliminate approval bottlenecks in...
Perplexity Monitor API: scheduled web tracking for agents
Perplexity's Monitor API webhook service schedules recurring web searches and page monitoring, filtering results by relevance and sending updates to AI agents.

Perplexity Orchestrator API: 85+ models, unified billing
Perplexity Orchestrator API routes requests to OpenAI, Anthropic, Google, xAI and open models through one endpoint with automatic failover and unified billing.
