Its new global collaboration with Bain signals an expansion of its AI platform at a time when its premium valuation is under scrutiny.