Create, manage, and connect your LLMs to organizational data using AWS Bedrock Knowledge Bases through Portkey.
Navigate to Integrations
aws-bedrock-prod
).aws-bedrock-prod
).@
prefix as the provider
in your Portkey client initialization (e.g., @aws-bedrock-prod
).Configure Models
put
method. This acts as a proxy, sending a signed request directly to the AWS PUT /knowledgebases/
API endpoint. Portkey handles the complex AWS Signature Version 4 authentication process for you.
When initializing the Portkey client, you must provide a custom_host
that points to the AWS Bedrock Agent API endpoint for your region.
post
method. This request is sent to the AWS retrieve
API endpoint: POST /knowledgebases/{knowledgeBaseId}/retrieve
.
custom_host
URL is different. You must use the Bedrock Agent Runtime endpoint for your region (e.g., bedrock-agent-runtime.us-east-1.amazonaws.com
).custom_host
to target the Bedrock Agent Runtime for retrieval. The second one is a standard client for chat completion.