Reddit files lawsuit against Perplexity AI for allegedly scraping its data to train AI models without permission.