Closed ManhNguyenNG closed 1 week ago
Which version of @cdklabs/generative-ai-cdk-constructs
are you using? (It can be referred on cdk/package.json
)
Hi, the version used is : "@cdklabs/generative-ai-cdk-constructs": "^0.1.274"
It seems the same version as used in the latest of bedrock-claude-chat. It does not happen on my environment, could you provide more detail to repuroduce?
I can confirm to have the exact same error situation. All bots stay in the "Syncing" state forever.
More details:
@ingestionTime
1730989857672
@log
527704779651:/aws/lambda/BrChatKbStack01JC3GA548P8-OpenSearchIndexCRProvide-b5fLuVHmhdS8
@logStream
2024/11/07/[$LATEST]3702b43d90024f53bb415b3e9eb97524
@message
[ERROR] 2024-11-07T14:30:48.654Z No module named 'opensearch_index'
Traceback (most recent call last):
File "/var/task/custom_resources/init.py", line 28, in
1730989848655
The only thing in my deployment which might be different from a standard one: the stack is not deployed in us-east-1, but in eu-central-1. I am happy to share more details if needed!
This solved the problem for me: I checked the Step Functions workflow, and it failed. Reason: I had not given access to the needed embedding model. Snippet from Step Functions step "StartIngentionJob", state output: "[...] not able to call specified bedrock embedding model arn:aws:bedrock:eu-central-1::foundation-model/amazon.titan-embed-text-v2:0: You don't have access to the model with the specified model ID.".
Needed further steps:
🚨 Please Note 🚨
To ensure efficient investigation of the issue, please fill out the fields below with as much detail as possible. Reports that do not follow this template may be closed without notification. We appreciate your cooperation.
Describe the bug
The Lambda function fails to import the opensearch_index module, resulting in a "No module named 'opensearch_index'" error. This prevents the function from executing correctly, as it relies on opensearch_index to connect to OpenSearch. As a result the bot is always syncing without result.
To Reproduce
Steps to reproduce the behavior:
Screenshots
Additional context
This issue may be related to the Lambda deployment package or missing dependencies. The code attempts to import connect_opensearch from the opensearch_index module, which seems to be unavailable in the current environment. We are using a custom resource to create, update, and delete VPC endpoints with OpenSearch, and this error prevents the resource from functioning as expected.