Perplexity Reference Architecture Overview Production architecture for AI-powered search with Perplexity Sonar API. Three tiers: search service (model routing + caching), citation pipeline (extract, validate, store), and research orchestrator (multi-query synthesis). Architecture Prerequisites - Perplexity API key with Sonar access - OpenAI-compatible client library ( package) - Redis for production caching (LRU for development) Instructions Step 1: Search Service with Model Routing Step 2: Citation Pipeline Step 3: Research Orchestrator Step 4: Fact-Check Service Error Handling | Issue | Cau…