These companies are playing central roles in two important niches of the AI industry.