feat: add Managed Knowledge Base support to AWS Bedrock KB Retriever#6612
feat: add Managed Knowledge Base support to AWS Bedrock KB Retriever#6612PVidyadhar wants to merge 1 commit into
Conversation
PVidyadhar
commented
Jul 11, 2026
- Added Knowledge Base Type dropdown (MANAGED/VECTOR)
- MANAGED path tries langchain first, falls back to direct Bedrock API
- Direct API uses managedSearchConfiguration
- Returns proper langchain Document objects via BaseRetriever subclass
- Unit tests included
- Added BEDROCK_MANAGED_KB.md design doc
There was a problem hiding this comment.
Code Review
This pull request introduces support for Amazon Bedrock Managed Knowledge Bases to the AWSBedrockKBRetriever node, allowing users to select between managed and traditional vector search. It implements a new ManagedKBRetriever class that supports agentic retrieval with query decomposition and automatic fallback mechanisms, adds corresponding unit tests, and provides documentation. The code review feedback suggests several key improvements: adding defensive nullish checks to prevent runtime errors in getSourceUri, optimizing performance by avoiding dynamic imports inside the query execution loop, and using the public getRelevantDocuments method instead of the protected _getRelevantDocuments to ensure LangChain lifecycle hooks and tracing are preserved.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
e165f6a to
4047a53
Compare
- Added Knowledge Base Type dropdown (MANAGED/VECTOR) - MANAGED path tries langchain first, falls back to direct Bedrock API - Direct API uses managedSearchConfiguration - Returns proper langchain Document objects via BaseRetriever subclass - Unit tests included - Added BEDROCK_MANAGED_KB.md design doc
4047a53 to
8f10b40
Compare