perplexity-routing

Route queries to Perplexity API tools by query type and requirements.

3|1|Updated Dec 2, 2024
One-click install
npx skills add https://github.com/faisalanjum/EventTrader --skill perplexity-routing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: perplexity-routing
Source: https://github.com/faisalanjum/EventTrader/tree/main/.claude/skills/perplexity-routing
Command: npx skills add https://github.com/faisalanjum/EventTrader --skill perplexity-routing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a clear decision-making framework to ensure the most efficient and accurate Perplexity tool is selected for any given query, optimizing for speed, cost, and output quality.

Core Features & Use Cases

  • Tool Selection Guidance: Offers a decision tree and cross-reference table to map query types to specific Perplexity API endpoints (search, ask, reason, research, sec).
  • Optimized Resource Usage: Helps users avoid over-utilizing expensive or slow tools for simple tasks, and ensures the correct tool is used for complex analysis.
  • Use Case: When asked to "explain the reasoning behind a recent stock price drop," this guide directs the user to the reason tool instead of the less analytical ask or the potentially overkill research tool.

Quick Start

Use the perplexity-routing skill to determine the best Perplexity tool for analyzing SEC filings.

Frequently Asked Questions about perplexity-routing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right Perplexity API tool for my query?

Perplexity tool selection requires matching query requirements to specific API endpoints using a routing guide. A decision tree maps query types like raw data, synthesized answers, step-by-step analysis, or SEC filing content to the correct endpoint, optimizing speed, cost, and output accuracy.

What is the difference between the Perplexity API search, ask, reason, and research tools?

The Perplexity API offers distinct tools for different needs. The search tool retrieves raw data, ask provides synthesized answers, reason delivers step-by-step analysis, and research handles deeper queries. Selecting the correct tool optimizes resource usage and prevents over-utilizing expensive or slow tools for simple tasks.

When should I use the Perplexity reason API tool instead of ask or research?

Use the Perplexity reason tool when a query requires step-by-step analysis, such as explaining the reasoning behind a recent stock price drop. The ask tool is less analytical, while the research tool may be overkill for targeted analytical questions. The routing guide ensures correct tool selection for complex analysis.

How do I select a Perplexity API model for analyzing SEC filings?

Selecting a Perplexity API model for SEC filings requires using the sec tool. A routing guide directs users to this specific functionality when query requirements involve SEC filing content, ensuring the correct tool is used for accurate financial data extraction and analysis.

Can I optimize Perplexity API costs by routing queries to specific tools?

Yes, Perplexity API costs are optimized by routing queries to specific tools based on their requirements. The routing guide provides a cross-reference table to map query types to endpoints, helping users avoid over-utilizing expensive or slow tools for simple tasks.

Do I need to understand Perplexity API models to use this routing guide?

Yes, using this routing guide requires an understanding of Perplexity API models and their specific use cases. The guide provides a decision-making framework to map query types to endpoints, but users must comprehend the underlying tool functionalities to effectively optimize tool selection.