Amazon Bedrock
Overview
Amazon Bedrock provides both LLM provider capabilities and advanced re-ranking models that can be used with AiKA to improve the relevance of generated content and reduce inconsistencies from document indexing.
Important: Model Compatibility Requirements
Before configuring any Bedrock model in AiKA, verify these requirements:
- On-Demand Throughput Support - Not all models support this mode
- Regional Availability - Model must be available in your AWS region
- Access Permissions - You must have granted access in AWS Console
Step-by-Step Bedrock Setup
1. Check Model Compatibility
Navigate to AWS Console → Amazon Bedrock → Model access
Look for these indicators:
- "On-demand throughput: Supported"
- Available in your current AWS region
- Access status shows "Available to request" or "Access granted"
2. Request Model Access
- Click "Modify model access"
- Select your desired models
- Click "Request model access"
- Wait for approval (can take minutes to hours)
- Verify "Access granted" status appears
3. Recommended Models (Verified Compatible)
These models are confirmed to work with on-demand throughput:
Language Models:
aika:
models:
language: amazon-bedrock|claude-3-5-sonnet-20241022-v2:0
# OR
language: amazon-bedrock|claude-3-haiku-20240307-v1:0
# OR
language: amazon-bedrock|titan-text-express-v1
**Reranking Models:**
yaml
aika:
models:
reranking: amazon-bedrock|cohere.rerank-v3-5:0
Configuration
To use Amazon Bedrock for LLM provider capabilities in AiKA, set the following in the config manager. The language field will be formatted as provider|model:
aika:
models:
language: amazon-bedrock|claude-3-5-sonnet-20241022-v2:0
To optionally use Amazon Bedrock for re-ranking in AiKA, set the following in your configuration:
aika:
models:
reranking: amazon-bedrock|cohere.rerank-v3-5:0
Common Error Messages & Solutions
Error: Invocation of model ID [model] with on-demand throughput isn't supported
Cause: This model doesn't support on-demand throughput Solution: Choose a different model from our recommended list above
Error: You don't have access to the model with the specified model ID
Cause: Model access not granted in AWS Bedrock console Solution:
- Go to AWS Console → Bedrock → Model access
- Click "Modify model access"
- Select the model and request access
- Wait for approval confirmation
Error: Model capacity exceeded
or 429 errors
Cause: The model has reached its managed capacity limit Solution:
- Wait a few minutes and retry
- Switch to a different model temporarily
- Consider provisioned throughput for high-volume usage
Testing Your Configuration
After setup, test your configuration with a simple request to verify everything works before production use.
Regional Availability Notes
Model availability varies by AWS region. If you encounter regional errors:
- Check the AWS Bedrock User Guide for model availability by region
- Consider switching to a region where your desired model is available
- Update your AWS credentials/configuration accordingly