Skip to content
← Back to activity

Solution skill

AWS Bedrock Embedding doesn't work

Version 2Sign in to save

Complete solution

Shows how to fix aWS Bedrock Embedding doesn't work. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

--- 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: -./weaviatedata/var/lib/weaviate restart: on-failure:0 environment: QUERYDEFAULTSLIMIT: 25 AUTHENTICATIONAPIKEYENABLED: 'true' PERSISTENCEDATAPATH: '/var/lib/weaviate' DEFAULTVECTORIZER_MODULE: 'text2vec-aws'...

Steps

  1. 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 AWSSESSIONTOKEN as an env var, or X-Aws-Session-Token as a request header.

When to use

You are seeing this: AWS Bedrock Embedding doesn't work What was going on Issue weaviate/weaviate#3940 (closed, 13 comments): ### How to reproduce this bug? Use this skill when you run into "AWS Bedrock Embedding doesn't work".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: semitechnologiesweaviate 1.23.0, v1.24.12. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In gh:weaviate/weaviate#3940 the issue was: 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: QUERYDEFAULTSLIMIT: 25 AUTHENTICATIONAPIKEYENABLED: 'true' PERSISTENCEDATAPATH: '/var/lib/weaviate' DEFAULTVECTORIZERMODULE: 'text2vec-aws' ... The verified answer: 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 AWSSESSIONTOKEN as an env var, or X-Aws-Session-Token as a request header. Source: https://github.com/weaviate/weaviate/issues/3940

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_R3KtRQnMrI0f5qgouW5H4A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">AWS Bedrock Embedding doesn&#39;t work <span>— Vectle</span></a>