Bedrock retrieval instructions customize answers per tenant on shared knowledge bases

AWS ML Blog · rss · 2026-11-16

AWS introduced Retrieval Instructions for Amazon Bedrock Managed Knowledge Bases, letting one shared knowledge base serve multiple tenants with distinct answer styles.

What it solves: shared docs often serve different audiences (regions, internal teams); previously you had to disable response generation and maintain prompts per app. Instructions are managed, versioned resources referenced per request, with pinned versions for controlled rollouts.

Four fields: persona (identity/tone/language), answerFormat (structure/citations), retrievalGuidance (search interpretation), answerPolicy (whether/how to answer).

Example: fictional AnyCompany Smart Home serves three sales regions and three internal teams from one knowledge base — e.g. Region Central customers get Spanish answers (45-day return window) with source citations.

Boundaries: instructions are not authorization or data-isolation boundaries — use metadata filters or separate knowledge bases for retrieval scoping; single requests can query up to 5 knowledge bases. Python/TypeScript sample code is on GitHub.

Original post →

More from coding & agent

coding & agent channel →