perplexity-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePerplexity AI Search
Perplexity AI 搜索
Web search with AI-powered answers, deep research, and chain-of-thought reasoning.
基于AI生成答案、深度调研与思维链推理的网页搜索工具。
When to Use
适用场景
- Direct web search for ranked results (no AI synthesis)
- AI-synthesized research with citations
- Chain-of-thought reasoning for complex decisions
- Deep comprehensive research on topics
- 直接网页搜索获取排序结果(无AI合成)
- 带引用的AI合成调研内容
- 用于复杂决策的思维链推理
- 针对特定主题的深度全面调研
Models (2025)
模型(2025年)
| Model | Purpose |
|---|---|
| Lightweight search with grounding |
| Advanced search for complex queries |
| Chain of thought reasoning |
| Expert-level exhaustive research |
| 模型 | 用途 |
|---|---|
| 带事实依据的轻量级搜索 |
| 针对复杂查询的进阶搜索 |
| 思维链推理 |
| 专家级全面调研 |
Usage
使用方法
Quick question (AI answer)
快速提问(AI生成答案)
bash
uv run python scripts/mcp/perplexity_search.py \
--ask "What is the latest version of Python?"bash
uv run python scripts/mcp/perplexity_search.py \
--ask "What is the latest version of Python?"Direct web search (ranked results, no AI)
直接网页搜索(排序结果,无AI处理)
bash
uv run python scripts/mcp/perplexity_search.py \
--search "SQLite graph database patterns" \
--max-results 5 \
--recency weekbash
uv run python scripts/mcp/perplexity_search.py \
--search "SQLite graph database patterns" \
--max-results 5 \
--recency weekAI-synthesized research
AI合成调研内容
bash
uv run python scripts/mcp/perplexity_search.py \
--research "compare FastAPI vs Django for microservices"bash
uv run python scripts/mcp/perplexity_search.py \
--research "compare FastAPI vs Django for microservices"Chain-of-thought reasoning
思维链推理
bash
uv run python scripts/mcp/perplexity_search.py \
--reason "should I use Neo4j or SQLite for small graph under 10k nodes?"bash
uv run python scripts/mcp/perplexity_search.py \
--reason "should I use Neo4j or SQLite for small graph under 10k nodes?"Deep comprehensive research
深度全面调研
bash
uv run python scripts/mcp/perplexity_search.py \
--deep "state of AI agent observability 2025"bash
uv run python scripts/mcp/perplexity_search.py \
--deep "state of AI agent observability 2025"Parameters
参数说明
| Parameter | Description |
|---|---|
| Quick question with AI answer (sonar) |
| Direct web search - ranked results without AI synthesis |
| AI-synthesized research (sonar-pro) |
| Chain-of-thought reasoning (sonar-reasoning-pro) |
| Deep comprehensive research (sonar-deep-research) |
| 参数 | 描述 |
|---|---|
| 快速提问获取AI答案(使用sonar模型) |
| 直接网页搜索 - 获取无AI合成的排序结果 |
| AI合成调研内容(使用sonar-pro模型) |
| 思维链推理(使用sonar-reasoning-pro模型) |
| 深度全面调研(使用sonar-deep-research模型) |
Search-specific options
搜索专属选项
| Parameter | Description |
|---|---|
| Number of results (1-20, default: 10) |
| Filter: |
| Limit to specific domains |
| 参数 | 描述 |
|---|---|
| 结果数量(1-20,默认值:10) |
| 时间过滤选项: |
| 限定搜索特定域名 |
Mode Selection Guide
模式选择指南
| Need | Use | Why |
|---|---|---|
| Quick fact | | Fast, lightweight |
| Find sources | | Raw results, no AI overhead |
| Synthesized answer | | AI combines multiple sources |
| Complex decision | | Chain-of-thought analysis |
| Comprehensive report | | Exhaustive multi-source research |
| 需求 | 使用参数 | 原因 |
|---|---|---|
| 快速获取事实 | | 快速、轻量 |
| 查找来源 | | 原始结果,无AI处理开销 |
| 合成答案 | | AI整合多来源信息 |
| 复杂决策 | | 思维链分析 |
| 全面报告 | | 详尽的多来源调研 |
Examples
示例
bash
undefinedbash
undefinedFind recent sources on a topic
查找某主题的近期来源
uv run python scripts/mcp/perplexity_search.py
--search "OpenTelemetry AI agent tracing"
--recency month --max-results 5
--search "OpenTelemetry AI agent tracing"
--recency month --max-results 5
uv run python scripts/mcp/perplexity_search.py
--search "OpenTelemetry AI agent tracing"
--recency month --max-results 5
--search "OpenTelemetry AI agent tracing"
--recency month --max-results 5
Get AI synthesis
获取AI合成内容
uv run python scripts/mcp/perplexity_search.py
--research "best practices for AI agent logging 2025"
--research "best practices for AI agent logging 2025"
uv run python scripts/mcp/perplexity_search.py
--research "best practices for AI agent logging 2025"
--research "best practices for AI agent logging 2025"
Make a decision
辅助决策
uv run python scripts/mcp/perplexity_search.py
--reason "microservices vs monolith for startup MVP"
--reason "microservices vs monolith for startup MVP"
uv run python scripts/mcp/perplexity_search.py
--reason "microservices vs monolith for startup MVP"
--reason "microservices vs monolith for startup MVP"
Deep dive
深度研究
uv run python scripts/mcp/perplexity_search.py
--deep "comprehensive guide to building feedback loops for autonomous agents"
--deep "comprehensive guide to building feedback loops for autonomous agents"
undefineduv run python scripts/mcp/perplexity_search.py
--deep "comprehensive guide to building feedback loops for autonomous agents"
--deep "comprehensive guide to building feedback loops for autonomous agents"
undefinedAPI Key Required
需要API密钥
Requires in environment or .
PERPLEXITY_API_KEY~/.claude/.env需在环境变量或文件中配置。
~/.claude/.envPERPLEXITY_API_KEY