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,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 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
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