Perplexity Data Handling Overview Manage data flowing through Perplexity Sonar API. Critical concern: queries are sent to Perplexity for web search, so any PII in queries is exposed to external infrastructure. Responses contain citations (third-party URLs) that must be validated before displaying to users. Data Flow Prerequisites - Perplexity API key configured - Understanding of PII regulations (GDPR/CCPA) - Cache storage (Redis or in-memory) Instructions Step 1: Query Sanitization Step 2: Citation Validation Step 3: Result Caching with Freshness Policy Step 4: Conversation Context Managemen…