Prime Minister Narendra Modi has pitched India as a major hub for artificial intelligence, built at home and used worldwide.