← Back
AWS ML Blog

Customize answers per tenant in Amazon Bedrock Managed Knowledge Base

•22 min read•
#bedrock#llm
Level:Intermediate
For:AI Engineers
✦TL;DR

Amazon Bedrock Managed Knowledge Base now supports tenant‑specific retrieval instructions, letting you define persona, answerFormat, retrievalGuidance, and answerPolicy per tenant and have those settings applied automatically to every request. The feature works across up to five knowledge bases in a single call and allows version‑pinning so you can roll out instruction changes safely. Engineers can thus avoid custom prompt handling and per‑application response generation while still delivering localized voice, format, and policy for each audience.

⚡ Key Takeaways

  • Retrieval instructions contain four fields: **persona**, **answerFormat**, **retrievalGuidance**, and **answerPolicy**.
  • A single request can search **up to five knowledge bases**, with the tenant’s instruction applied to all.
  • Instructions are stored as **managed, versioned Bedrock resources**, enabling you to pin a version and switch tenants to a new version on demand.
  • The **generateResponse** flag defaults to true; persona, answerFormat, and answerPolicy are only used when it is true, while retrievalGuidance is always applied.
  • Retrieval instructions are **not an authorization boundary**; use metadata filters or separate knowledge bases for data isolation.
💡 Why It Matters

This eliminates the need for custom prompt engineering per tenant, reducing code complexity and latency while ensuring consistent, localized responses across multi‑tenant deployments.

✅ Practical Steps

  1. Create a retrieval instruction resource in Amazon Bedrock with the desired persona, answerFormat, retrievalGuidance, and answerPolicy fields.
  2. Reference the instruction’s ARN (and optionally a pinned version) in each request to the Managed Knowledge Base API.
  3. When updating an instruction, publish a new version and update the pinned version reference for the target tenant to roll out the change.

Want the full story? Read the original article.

Read on AWS ML Blog ↗

More like this

Introducing Gemini 4 Neon

Google DeepMind•#llm

DaisyRose-27B: Pushing the Frontier of Post-Training Efficiency

Hugging Face Blog•#llm

NVIDIA RTX Spark Compact Desktops Out Now

NVIDIA Blog•#compute

Helping AI text detectors keep up with changing conditions

MIT News AI•#llm

EXPLORE AI NEWS

Daily hand-picked stories on LLMs, RAG, agents and production AI — curated for engineers who ship.

BROWSE NEWS

GET THE WEEKLY DIGEST

Join engineers getting the Monday signal-over-noise AI breakdown. No spam, unsubscribe anytime.

LEARN AI ENGINEERING

Curated courses, research papers, repos and tutorials built for engineers leveling up in AI.

START LEARNING