perplexity-reference-architecture

Featured

Implement Perplexity reference architecture with model routing, citation pipeline, and research automation. Use when designing new Perplexity integrations, reviewing project structure, or establishing architecture for search-augmented apps. Trigger with phrases like "perplexity architecture", "perplexity project structure", "how to organize perplexity", "perplexity design patterns".

AI & Automation 2,940 stars 439 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 ``` ┌─────────────────────────────────────────────┐ │ Application Layer │ │ (Search Widget, Research Agent, Fact Check) │ └──────────────────────┬──────────────────────┘ │ ┌──────────────────────▼──────────────────────┐ │ Search Service Layer │ │ ┌──────────┐ ┌──────────┐ ┌─────────────┐ │ │ │ Model │ │ Query │ │ Response │ │ │ │ Router │ │ Cache │ │ Parser │ │ │ └──────────┘ └──────────┘ └─────────────┘ │ └──────────────────────┬──────────────────────┘ │ ┌──────────────────────▼──────────────────────┐ │ api.perplexity.ai/chat/completions │ │ sonar | sonar-pro | sonar-reasoning-pro │ └─────────────────────────────────────────────┘ ``` ## Prerequisites - Perplexity API key with Sonar access - OpenAI-compatible client library (`openai` package) - Redis for production caching (LRU for development) ## Instructions ### Step 1: Search Service with Model Routing ```typescript // src/perplexity/search-service.ts import OpenAI from "openai"; import { createHash } from "crypto"; type SearchDepth = "quick" | "standard" | "deep" | "reasoning"; const MODEL_MAP: Reco...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category