7/08/2024

Unknown parameter in retrievalConfiguration.vectorSearchConfiguration: "overrideSearchType", must be one of: numberOfResults

 Error in AWS bedrock like:

Unknown parameter in retrievalConfiguration.vectorSearchConfiguration: "overrideSearchType", must be one of: numberOfResults


Solution 

Update boto3 sdk as latest one.

The parameters changed on 2024-03-27.

refer to here: https://awsapichanges.com/archive/changes/cd42c1-bedrock-agent-runtime.html


Thank you!