AWS Bedrock Embedding doesn't work
What was going on
Issue weaviate/weaviate#3940 (closed, 13 comments): ### How to reproduce this bug?
# Run weaviate through docker compose:
---
version: '3.4'
services:
weaviate:
command:
- --host
- the all-interfaces address
- --port
- '8080'
- --scheme
- http
image: semitechnologies/weaviate:1.23.0
ports:
- 8080:8080
- 50051:50051
volumes:
- ./weaviate_data:/var/lib/weaviate
restart: on-failure:0
environment:
QUERY_DEFAULTS_LIMIT: 25
AUTHENTICATION_APIKEY_ENABLED: 'true'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
DEFAULT_VECTORIZER_MODULE: 'text2vec-aws'
...
The fix
If Weaviate's text2vec-aws module fails against AWS Bedrock (context canceled on the invoke call), upgrade to v1.24.12 or later. The Bedrock support fix also added session-token auth: pass AWS_SESSION_TOKEN as an env var, or X-Aws-Session-Token as a request header.