Zhidaily AI · Intelligence · Daily
Zhidaily
Issue 18 · November 17, 2026 · Tue
Today's stories
14 stories · 7 companies
Home / November 17, 2026 / Memory-aware agents on Bedrock Managed Knowledge Base
← Back
Release Official Agents · Amazon·AWS Score62

Memory-aware agents on Bedrock Managed Knowledge Base

AWS Machine Learning Blog aws.amazon.com
Nov 17 · 06:43 Read the original ↗
01Summary

Knowledge-grounded assistants are expected to remember users across sessions — a role, location, or product tier mentioned weeks ago should shape today's answer — while still citing only documents that user may read. That context lives outside the knowledge base, so teams have had to store every conversation, extract durable facts, replay history into each request, and isolate all of it per user. Amazon Bedrock Managed Knowledge Base and AgentCore memory now take over those steps, and this AWS post shows how to wire them together for many users sharing one knowledge base and one memory resource.

02Background

Knowledge-grounded assistants are expected to remember users across sessions — a role, location, or product tier mentioned weeks ago should shape today's answer — while still citing only documents that user may read. That context lives outside the knowledge base, so teams have had to store every conversation, extract durable facts, replay history into each request, and isolate all of it per user. Amazon Bedrock Managed Knowledge Base and AgentCore memory now take over those steps, and this AWS post shows how to wire them together for many users sharing one knowledge base and one memory resource.

03Solution

The central move is a `memoryConfiguration` block added to the existing `AgenticRetrieveStream` request, which makes AgentCore memory a retrieval source alongside the knowledge base. In one call the service restores the conversation from short-term memory, lets its planner decide when a stored fact about the user would help, retrieves that fact from long-term memory, and uses it to compose the sub-queries sent to the knowledge base. After answering, it saves the turn back and extracts long-term records asynchronously. The same request carries a `userContext`, so ACL filtering returns only permitted documents. The integration is opt-in and backward compatible; the application keeps only authentication and identity passing. The author's running example is an internal employee assistant for a fictional company, with employees signing in through Amazon Cognito. Two claims from the verified ID token drive everything: `sub` becomes the memory `actorId` and the root of the user's memory namespace, and the verified `email` becomes `userContext.userId` for document ACLs. Nothing comes from the request body. Because short-term memory is keyed by memory, actor, and session, accepting a client-supplied `sessionId` is safe — another user's ID simply names an empty session in their own space. The author stresses that agentic retrieval does not itself verify that the actor, session, or namespace belong to the caller, so those must never come from the client. As a second line of defense, the backend assumes a per-user IAM role session tagged with the user ID, and an IAM condition key enforces that memory calls only touch that user's namespace even if application code errs. With `sessionBinding`, `messages` carries only the current question, and the old query-before and write-after steps disappear; there is no conversation table, since listing or reopening conversations reads the memory resource directly. `persistenceMode: NONE` restores history without writing, for audit or replay. The author reports session restore adds roughly 200 milliseconds, and a full turn with one knowledge base, ACLs, and memory took 4–10 seconds with the managed model — planning iterations, not memory, drive that time. These are observed figures, not service commitments, and pricing is per call plus retrievals plus AgentCore memory usage. A request can carry up to five knowledge bases, routed by their descriptions.

04Takeaway

If you already run multi-tenant retrieval on Bedrock, adding `memoryConfiguration` removes your conversation store, history replay, and fact-extraction pipeline, leaving authentication and two token claims as your job. Expect a few hundred milliseconds of restore overhead and multi-second turns, and treat IAM condition keys as the real isolation boundary rather than trusting your own request-building code.