Vector dimensions mismatch in OpenSearch vector store using BedrockEmbeddings #7530
Open
5 tasks done
Labels
auto:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
What I want to do is use the vector store instance to add vectors to it and use similarity search to get the relevant documents.
While trying to add the vectors, I didn't get any errors, but when checking it in dashboard, no vector is added. Also, while similarity search, an error is thrown, which I've put above (the query embedding is mysteriously 8192 dimensions whereas bedrock's titan model can only create embedding with 1024 dimensions max.)
To debug, I tried to create embeddings with just using BedrockEmbeddings, and I verified that the created embedding was 1024 dimensions to be precise.
System Info
Dependencies:
@langchain/openai: >=0.1.0 <0.4.0 js-yaml: ^4.1.0 openapi-types: ^12.1.3 yaml: ^2.2.1
@langchain/textsplitters: >=0.0.0 <0.2.0 jsonpointer: ^5.0.1 p-retry: 4 zod-to-json-schema: ^3.22.3
js-tiktoken: ^1.0.12 langsmith: ^0.2.8 uuid: ^10.0.0 zod: ^3.22.4
The text was updated successfully, but these errors were encountered: