Customize answers per tenant in Amazon Bedrock Managed Knowledge Base
Retrieval instructions in Amazon Bedrock Managed Knowledge Base set the voice, format, retrieval guidance, and answer policy for each tenant on shared knowledge bases. This post shows how to give each tenant its own answers, keep tenant data apart with metadata filters, scope access with IAM tags, and roll out changes one tenant at a time.
First seen by Oriel on .
AI summary
This AWS post shows how Amazon Bedrock Managed Knowledge Base retrieval instructions customize answer style, retrieval behavior, and policy per tenant while metadata filters or separate knowledge bases provide data isolation.
- Retrieval instructions define persona, answerFormat, retrievalGuidance, and answerPolicy, allowing shared documents to produce tenant-specific language, formatting, citations, and policies.
- Instructions are asynchronously reviewed, activated, versioned immutably, and referenced by ID and optional version; the first Planning trace reports appliedInstruction.
- Instructions do not restrict retrieved documents, so backends must build metadata filters from authenticated tenants or use separate knowledge bases for isolation.
- The example serves six tenants across three regions and teams using 32 S3-hosted documents, with Python and TypeScript code targeting us-east-1 by default.
- Metadata filters reduce maintenance but depend on accurate metadata and correct request construction, while separate knowledge bases improve isolation but increase operational and cost overhead.
#amazon bedrock #knowledge bases #retrieval #multi-tenancy
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| AWS Machine Learning Blog | 081dabf951b4e241855972e4877f3f6817f006c8 | https://aws.amazon.com/blogs/machine-learning/customize-answers-per-tenant-in-amazon-bedrock-managed-knowledge-base/ Read discussion |