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.
More from coding & agent
- 6 AI Agents Design an Apartment's Full MEP: 4,871 Layouts, 11 Clashes Fixed — minchoi · 2026-11-17
- Quick-start guides in 2026: just show me the prompt, not npm install — MxMnr · 2026-11-17
- W&B Sweeps adds Optuna and Ax: pick your HPO engine with one line of YAML — coreweavedevs · 2026-11-17
- Vibe Check: Gemini 4 Carbon Codes Better Than Argon but Trails Fable 5.2 on Judgment — every · 2026-11-17
- How do you find which step blew your LLM budget? Devs discuss per-step cost tracking — Youthify · 2026-11-17
- Gemini Managed Agents Adds Self-Hosted Sandboxes: Google Runs the Loop, You Run the Tools — _philschmid · 2026-11-17