perplexity-core-workflow-b

Featured

Execute Perplexity multi-turn research sessions and batch query pipelines. Use when conducting in-depth investigations, generating research briefs, or processing multiple related search queries. Trigger with phrases like "perplexity research", "perplexity batch search", "multi-query perplexity", "perplexity deep dive", "perplexity report".

AI & Automation 2,266 stars 315 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 Core Workflow B: Multi-Query Research ## Overview Multi-turn research workflow using Perplexity Sonar API. Decomposes a broad topic into focused sub-queries, runs them with context continuity, deduplicates citations, and synthesizes a structured research document. Use `sonar` for fast passes and `sonar-pro` for deep dives. ## Prerequisites - Completed `perplexity-install-auth` setup - Familiarity with `perplexity-core-workflow-a` - `PERPLEXITY_API_KEY` set ## Instructions ### Step 1: Conversational Research Session ```typescript import OpenAI from "openai"; const perplexity = new OpenAI({ apiKey: process.env.PERPLEXITY_API_KEY, baseURL: "https://api.perplexity.ai", }); type Message = OpenAI.ChatCompletionMessageParam; class ResearchSession { private messages: Message[] = []; private allCitations: Set<string> = new Set(); constructor(systemPrompt: string = "You are a research assistant. Provide thorough, cited answers.") { this.messages.push({ role: "system", content: systemPrompt }); } async ask(question: string, model: "sonar" | "sonar-pro" = "sonar"): Promise<{ answer: string; citations: string[]; }> { this.messages.push({ role: "user", content: question }); const response = await perplexity.chat.completions.create({ model, messages: this.messages, } as any); const answer = response.choices[0].message.content || ""; const citations = (response as any).citations || []; // Maintain conver...

Details

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

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

perplexity-core-workflow-a

Execute Perplexity primary workflow: single-query search with citations. Use when implementing AI search, building fact-checking tools, or integrating web-grounded answers into your application. Trigger with phrases like "perplexity search", "perplexity query", "search with citations", "perplexity main workflow".

2,266 Updated today
jeremylongshore
AI & Automation Featured

perplexity-architecture-variants

Choose and implement Perplexity architecture blueprints for different scales: direct search widget, cached research layer, and multi-query pipeline. Trigger with phrases like "perplexity architecture", "perplexity blueprint", "how to structure perplexity", "perplexity project layout".

2,266 Updated today
jeremylongshore
AI & Automation Featured

perplexity-reference-architecture

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".

2,266 Updated today
jeremylongshore
AI & Automation Solid

perplexity-search

AI-powered web search, research, and reasoning via Perplexity

495 Updated 1 months ago
vibeeval
AI & Automation Featured

perplexity-hello-world

Create a minimal working Perplexity Sonar search example with citations. Use when starting a new Perplexity integration, testing your setup, or learning basic search-with-citations patterns. Trigger with phrases like "perplexity hello world", "perplexity example", "perplexity quick start", "simple perplexity search".

2,266 Updated today
jeremylongshore