Python: create vectorsearch index

With langchain-mongodb, I try this:

      self.vectorstore = MongoDBAtlasVectorSearch(
            embedding=embeddings,
            collection=collection,
            index_name=index_name,
        )
        self.vectorstore.create_vector_search_index(
            dimensions=embedding_size,
            filters=None,
            update=False,
        )

but i receive this error:
pymongo.errors.OperationFailure: command not found, full error: {'ok': 0, 'errmsg': 'command not found', 'code': 59, 'codeName': 'CommandNotFound'}