retrieveAndGenerate Syntax Error: Unknown parameter generationConfiguration or retrievalConfiguration (Claude-v3, Amazon Bedrock) #4081
-
I am trying to retrieve and generate response from knowledge base use claude-v3 model. To do so I followed the boto3 documentation and blog post on Amazon and created the following method:
But it is giving me the following error:
The same error is raised with even one of aforementioned fields. I tried to put It only works with minimum required fields like this:
In both cases I am calling the method with the same inputs:
What is my mistake and how do I solve it? Appreciate your responses. Full trace of the exception:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The issue I encountered was due to running my application inside a Docker container, where the updated version of the boto3 library was not being reflected despite showing the latest version installed. To solve this problem, I needed to rebuild the Docker container by installing the latest version of the boto3 library. Simply updating the library within the existing container was not sufficient. To update boto3 while rebuilding, I modified the of the library in requirement.txt file and rebuilt the docker container with
After rebuilding the Docker container with the latest boto3 version installed, the If you have any further questions or need additional clarification, feel free to comment below. |
Beta Was this translation helpful? Give feedback.
-
I am currently facing the same issue but within lambda. Shouldn't boto3 be up-to-date for it? |
Beta Was this translation helpful? Give feedback.
The issue I encountered was due to running my application inside a Docker container, where the updated version of the boto3 library was not being reflected despite showing the latest version installed.
To solve this problem, I needed to rebuild the Docker container by installing the latest version of the boto3 library. Simply updating the library within the existing container was not sufficient.
To update boto3 while rebuilding, I modified the of the library in requirement.txt file and rebuilt the docker container with
--no-cache
parameter:After rebuilding the Docker container with the latest boto3 version installed, the
retrieveAndGenerate
function worke…