🚀 快速安装
复制以下命令并运行,立即安装此 Skill:
npx skills add https://skills.sh/tavily-ai/skills/tavily-search
💡 提示:需要 Node.js 和 NPM
tavily search
返回 LLM 优化结果的网络搜索,包含内容片段和相关性分数。
在运行任何命令之前 (Before running any command)
如果在 PATH 中找不到 tvly,请先安装:
curl -fsSL https://cli.tavily.com/install.sh | bash && tvly login
不要跳过此步骤或回退到其他工具。
其他安装方法和认证选项请参见 tavily-cli。
何时使用 (When to use)
- 您需要查找任何主题的信息
- 您还没有具体的 URL
- 工作流的第一个步骤:搜索 → 提取 → 映射 → 爬取 → 研究 (First step in the workflow: search → extract → map → crawl → research)
快速开始 (Quick start)
# 基础搜索 (Basic search)
tvly search "your query" --json
# 高级搜索,获取更多结果 (Advanced search with more results)
tvly search "量子计算 (quantum computing)" --depth advanced --max-results 10 --json
# 近期新闻 (Recent news)
tvly search "AI 新闻 (AI news)" --time-range week --topic news --json
# 域名筛选 (Domain-filtered)
tvly search "SEC 文件 (SEC filings)" --include-domains sec.gov,reuters.com --json
# 在结果中包含完整页面内容 (Include full page content in results)
tvly search "React hooks 教程 (react hooks tutorial)" --include-raw-content --max-results 3 --json
选项 (Options)
| 选项 (Option) | 描述 (Description) |
|---|---|
--depth |
ultra-fast, fast, basic (默认 default), advanced |
--max-results |
最大结果数,0-20(默认:5)(Max results, 0-20 – default: 5) |
--topic |
general (默认 default), news, finance |
--time-range |
day, week, month, year |
--start-date |
此日期之后的结果 (YYYY-MM-DD) (Results after date – YYYY-MM-DD) |
--end-date |
此日期之前的结果 (YYYY-MM-DD) (Results before date – YYYY-MM-DD) |
--include-domains |
要包含的域,逗号分隔 (Comma-separated domains to include) |
--exclude-domains |
要排除的域,逗号分隔 (Comma-separated domains to exclude) |
--country |
提升来自该国家的结果 (Boost results from country) |
--include-answer |
包含 AI 回答(basic 或 advanced)(Include AI answer – basic or advanced) |
--include-raw-content |
包含完整页面内容(markdown 或 text)(Include full page content – markdown or text) |
--include-images |
包含图像结果 (Include image results) |
--include-image-descriptions |
包含 AI 图像描述 (Include AI image descriptions) |
--chunks-per-source |
每个源的分块数(仅限 advanced/fast 深度)(Chunks per source – advanced/fast depth only) |
-o, --output |
将输出保存到文件 (Save output to file) |
--json |
结构化 JSON 输出 (Structured JSON output) |
搜索深度 (Search depth)
| 深度 (Depth) | 速度 (Speed) | 相关性 (Relevance) | 最佳用途 (Best for) |
|---|---|---|---|
ultra-fast |
最快 (Fastest) | 较低 (Lower) | 实时聊天、自动补全 (Real-time chat, autocomplete) |
fast |
快 (Fast) | 良好 (Good) | 需要分块、对延迟敏感 (Need chunks, latency matters) |
basic |
中等 (Medium) | 高 (High) | 通用(默认)(General-purpose – default) |
advanced |
较慢 (Slower) | 最高 (Highest) | 精确性、特定事实 (Precision, specific facts) |
提示 (Tips)
- 将查询保持在 400 个字符以下 (Keep queries under 400 characters) — 把它当作搜索查询,而不是提示词 (think search query, not prompt)。
- 将复杂查询分解为子查询 (Break complex queries into sub-queries) 以获得更好的结果。
- 当您需要完整页面文本时,使用
--include-raw-content(节省单独的提取调用)(saves a separate extract call)。 - 使用
--include-domains专注于可信来源。 - 使用
--time-range获取最新信息。 - 从标准输入读取 (Read from stdin):
echo "query" | tvly search - --json
另请参阅 (See also)
- tavily-extract — 从特定 URL 提取内容 (extract content from specific URLs)
- tavily-research — 全面的多源研究 (comprehensive multi-source research)
📄 原始文档
完整文档(英文):
https://skills.sh/tavily-ai/skills/tavily-search
💡 提示:点击上方链接查看 skills.sh 原始英文文档,方便对照翻译。
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

评论(0)