Closed ScopatGames closed 3 months ago
Thanks @ScopatGames ! I see in the logs the error 'reason': 'Vector dimension mismatch. Expected: 1536, Given: 1024'
, I think you are using an embedding model where the length of the embedding vector is different from the OpenSearch's index current dimension for the vector field knn_vector
.
@ScopatGames As discussed, I will open an issue to update the documentation. The use case mentioned above is not very clear, thanks for reporting it !
Describe the bug
I am trying to ingest an image using the aws-rag-appsync-stepfn-opensearch construct by way of the Document Explorer sample, but the embedding lambda function is failing.
Expected Behavior
The image will be ingested and embedded.
Current Behavior
The ingestion step function is failing here:
with the following error:
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.150.0
Framework Version
No response
Node.js Version
v18.17.0
OS
Windows 10 Enterprise
Language
Typescript, Python
Language Version
No response
Region experiencing the issue
us-east-1
Code modification
The embeddings_job lambda has not been modified. I am working with Custom Lambda code passed in to the
aws-rag-appsync-stepfn-opensearch/s3_file_transformer
andaws-qa-appsync-opensearch/question_answering
constructs.Other information
No response
Service quota