Amazon is relying on technology from Anthropic, a startup in which it has invested $8 billion, to power the AI behind Alexa.