aws-samples / amazon-bedrock-samples

This repository contains examples for customers to get started using the Amazon Bedrock Service. This contains examples for all available foundational models
https://aws.amazon.com/bedrock/
MIT No Attribution
360 stars 183 forks source link

The index creation for collections should change to FAISS #130

Closed bigben80 closed 3 weeks ago

bigben80 commented 3 months ago

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.

bs258q commented 2 months ago

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

mani-aiml commented 3 weeks ago

Closing this issue, as it has been fixed.