aws-samples / serverless-pdf-chat

LLM-powered document chat using Amazon Bedrock and AWS Serverless
https://aws.amazon.com/blogs/compute/building-a-serverless-document-chat-with-aws-lambda-and-amazon-bedrock/
MIT No Attribution
228 stars 206 forks source link

Document Still Processing - InvokeModel Error for Embeddings #34

Closed NethmiWork closed 7 months ago

NethmiWork commented 7 months ago

Hi, I am getting this error for the GenerateEmbeddingsFunction, so my documents are in a recurrent state of processing.

Screenshot 2024-01-21 at 3 11 43 AM

Everything, including the AI models, have been deployed in us-east-1.

NethmiWork commented 7 months ago

Solution: I had to change back to Titan and then re-deploy the build. That solved the issue.

Changing the model to Cohere for embedding caused a ValidationException. My assumption is that the key names for Cohere may be slightly different than Titan, so when the model was being invoked, it was getting an extraneous or incorrect key that the Cohere model did not need.

NethmiWork commented 7 months ago

Closing for now.