Skip to content

feat: add Amazon Bedrock Knowledge Base retrieval tool#170

Draft
PVidyadhar wants to merge 1 commit into
google:mainfrom
PVidyadhar:bedrock-kb-tool
Draft

feat: add Amazon Bedrock Knowledge Base retrieval tool#170
PVidyadhar wants to merge 1 commit into
google:mainfrom
PVidyadhar:bedrock-kb-tool

Conversation

@PVidyadhar

Copy link
Copy Markdown

Adds bedrock_kb_retrieve function tool for ADK agents to query Amazon Bedrock Managed Knowledge Bases for RAG (retrieval-augmented generation).

Features:

  • Agentic retrieval (multi-hop reasoning with managed reranking)
  • Standard semantic retrieval with automatic fallback
  • User-agent tracking (google-adk/bedrock-kb)
  • Configurable via environment variables or function arguments

Usage:
from google.adk_community.tools.bedrock_kb import bedrock_kb_retrieve
agent = Agent(model='gemini-2.0-flash', tools=[bedrock_kb_retrieve])

Requires: boto3 >= 1.43.2

Adds bedrock_kb_retrieve function tool for ADK agents to query Amazon
Bedrock Managed Knowledge Bases for RAG (retrieval-augmented generation).

Features:
- Agentic retrieval (multi-hop reasoning with managed reranking)
- Standard semantic retrieval with automatic fallback
- User-agent tracking (google-adk/bedrock-kb)
- Configurable via environment variables or function arguments

Usage:
    from google.adk_community.tools.bedrock_kb import bedrock_kb_retrieve
    agent = Agent(model='gemini-2.0-flash', tools=[bedrock_kb_retrieve])

Requires: boto3 >= 1.43.2
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