gen-ai-workshop icon indicating copy to clipboard operation
gen-ai-workshop copied to clipboard

kb_rag.py: Getting an error with RetrieveAndGenerate operation

Open BowlOfFruits opened this issue 1 year ago • 0 comments

Hello, I created an S3 bucket and a knowledge base on top of it, with pdf documents uploaded into the S3 bucket. I followed the exact code in kb_rag.py; Only difference is I used llama3 model instead of claude-3 sonnet. I'm getting an error: "botocore.errorfactory.ValidationException: An error occurred (ValidationException) when calling the RetrieveAndGenerate operation: The model arn provided is not supported. Please check your configuration and retry the request."

I've attached the screenshot of the issue for reference. Is there anything I can do to resolve this? error

BowlOfFruits avatar Jul 24 '24 22:07 BowlOfFruits