Artificial intelligence is transforming retail, from streamlining inventory management to delivering personalized customer experiences.