You might not view electric vehicle maker Rivian as an AI investment, but look closer and you'll see why you should.