Perplexity AI will pay the social media company $400 million over 1 year to integrate the AI startup’s search features into Snapchat in 2026, Snap said.