Amazon is starting to sell the technology behind its AI shopping assistant to other retailers, as the AI arms race continues.