amazon-bedrock-samples icon indicating copy to clipboard operation
amazon-bedrock-samples copied to clipboard

The index creation for collections should change to FAISS

Open bigben80 opened this issue 1 year ago • 1 comments

hi,

According to the bedrock knowledge base document website, now the vector index should choose "faiss" as engine.

If still use the "nmslib" engine as written in the sample code, user will get error like this:

[ERROR] ValidationException: An error occurred (ValidationException) when calling the CreateKnowledgeBase operation: The knowledge base storage configuration provided is invalid... The OpenSearch Serverless engine type associated with your vector index is invalid. Recreate your vector index with one of the following valid engine types: FAISS. Then retry your request.

bigben80 avatar Apr 03 '24 10:04 bigben80

err=ValidationException('An error occurred (ValidationException) when calling the CreateKnowledgeBase operation: The knowledge base storage configuration provided is invalid... The OpenSearch Serverless engine type associated with your vector index is invalid. Recreate your vector index with one of the following valid engine types: FAISS. Then retry your request.'), type(err)=<class 'botocore.errorfactory.ValidationException'>

I have faced the same error and as per knowledge base index ; "engine": "nmslib", has to be changed to "engine": "faiss", please make this change ASAP

bs258q avatar Apr 18 '24 22:04 bs258q

Closing this issue, as it has been fixed.

mani-aiml avatar Jun 10 '24 22:06 mani-aiml