Retailer’s embrace of artificial intelligence comes amid anxiety that the technology will create mass redundancies