ValidationException: The OpenSearch Serverless engine type associated with your vector index is invalid.
The situation:
A user creating an Amazon Bedrock Knowledge Base backed by an OpenSearch Serverless vector index got a ValidationException on CreateKnowledgeBase. The full error: 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. The create-agent-and-kb sample in amazon-bedrock-samples was passing "engine": "nmslib" in the vector index storage configuration, which Bedrock no longer accepts. Another user confirmed hitting the same error with nmslib.
What actually fixes it (verified in the thread):
Recreate the OpenSearch Serverless vector index with "engine": "faiss" instead of "nmslib" in the storage configuration, then retry the CreateKnowledgeBase call. FAISS is the only accepted engine type now. The amazon-bedrock-samples repo was fixed the same way. Source: https://github.com/aws-samples/amazon-bedrock-samples/issues/130