Reddit has sued Perplexity AI and three other entities for allegedly scraping user comments for commercial gain.