Skip to content

feat: add Bedrock Managed Knowledge Base support to RetrieveTool#360

Draft
PVidyadhar wants to merge 1 commit into
aws-samples:mainfrom
PVidyadhar:bmkb-managed-kb-support
Draft

feat: add Bedrock Managed Knowledge Base support to RetrieveTool#360
PVidyadhar wants to merge 1 commit into
aws-samples:mainfrom
PVidyadhar:bmkb-managed-kb-support

Conversation

@PVidyadhar

Copy link
Copy Markdown

Issue #, if available:

N/A — new feature addition for AWS Bedrock Managed Knowledge Base GA launch.

Description of changes:

Added Bedrock Managed Knowledge Base support to the RetrieveTool. The tool now supports both MANAGED and VECTOR knowledge bases. When
knowledgeBaseType: "MANAGED" is passed, the tool uses managedSearchConfiguration and attempts AgenticRetrieveStream for intelligent query
decomposition and reranking. Existing VECTOR behavior is unchanged.

Changes:

  • RetrieveTool supports MANAGED KB type via knowledgeBaseType parameter (default: VECTOR)
  • Added managedSearchConfiguration support alongside existing vectorSearchConfiguration
  • Added AgenticRetrieveStream for MANAGED KBs with fallback to plain Retrieve
  • Updated README with managed KB callout and reranking options
  • 262 jest tests pass
  • Added BEDROCK_MANAGED_KB.md design doc
  • Existing VECTOR retrieval path unchanged

Testing:

  • Jest: ✅ 262 tests pass (8 suites)
  • Live E2E: ✅ managedSearchConfiguration returns results from managed KB
  • Live E2E: ✅ vectorSearchConfiguration correctly rejected on managed KB (clear error)
  • Live E2E: ✅ No config (API auto-detects) works for both types
  • Existing VECTOR path: ✅ Unchanged (default behavior)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@PVidyadhar PVidyadhar force-pushed the bmkb-managed-kb-support branch from a44790f to 35de2cc Compare July 11, 2026 00:26
- RetrieveTool supports MANAGED KB type via knowledgeBaseType parameter (default: VECTOR)
- Added managedSearchConfiguration support alongside existing vectorSearchConfiguration
- Added AgenticRetrieveStream for MANAGED KBs with fallback to plain Retrieve
- Updated README with managed KB callout and reranking options
- 262 jest tests pass
- Added BEDROCK_MANAGED_KB.md design doc
- Existing VECTOR retrieval path unchanged
@PVidyadhar PVidyadhar force-pushed the bmkb-managed-kb-support branch from 35de2cc to a1a6ce9 Compare July 11, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant