Prime Minister Mark Carney says his government will invest up to $1.6 billion in Canadian AI company Cohere.