Target is plowing billions into revamping its products and stores. Key to its efforts are AI tools designed to save employees time and spot trends.