用途
web-search 用于联网搜索与网页内容提取,通过 inference.sh CLI(belt)调用 Tavily 和 Exa 提供的搜索与提取应用。它适合需要为研究工作、AI 智能体或 RAG 流程获取外部网页信息的场景。
主要能力
该技能包含以下应用:
Tavily:
- Search Assistant(tavily/search-assistant):AI 驱动的搜索并返回答案
- Extract(tavily/extract):从 URL 提取内容
Exa:
- Search(exa/search):带 AI 的智能网页搜索
- Answer(exa/answer):直接的事实性回答
- Extract(exa/extract):提取并分析网页内容
使用方式
需要先安装 inference.sh CLI(belt),安装说明参见官方文档。安装技能:
npx skills add belt-sh/cli
登录:
belt login
搜索示例:
belt app run tavily/search-assistant --input '{"query": "latest AI developments 2024"}'
Tavily Search 示例:
belt app run tavily/search-assistant --input '{
"query": "What are the best practices for building AI agents?"
}'
返回带来源和图片的 AI 生成答案。
Tavily Extract 示例:
belt app run tavily/extract --input '{
"urls": ["https://example.com/article1", "https://example.com/article2"]
}'
从多个 URL 提取干净的文本和图片。
Exa Search 示例:
belt app run exa/search --input '{
"query": "machine learning frameworks comparison"
}'
返回带上下文的高相关链接。
Exa Answer 示例:
belt app run exa/answer --input '{
"question": "What is the population of Tokyo?"
}'
返回直接的事实性回答。
Exa Extract 示例:
belt app run exa/extract --input '{
"url": "https://example.com/research-paper"
}'
提取并分析网页内容。
组合工作流
研究 + LLM:
# 1. 搜索信息
belt app run tavily/search-assistant --input '{
"query": "latest developments in quantum computing"
}' > search_results.json
# 2. 用 Claude 分析
belt app run openrouter/claude-sonnet-45 --input '{
"prompt": "Based on this research, summarize the key trends: <search-results>"
}'
提取 + 总结:
# 1. 从 URL 提取内容
belt app run tavily/extract --input '{
"urls": ["https://example.com/long-article"]
}' > content.json
# 2. 用 LLM 总结
belt app run openrouter/claude-haiku-45 --input '{
"prompt": "Summarize this article in 3 bullet points: <content>"
}'
适用场景
- 研究:收集任意主题的信息
- RAG:检索增强生成
- 事实核查:用来源验证说法
- 内容聚合:从多个来源收集数据
- 智能体:构建具备研究能力的 AI 智能体
相关技能
# 完整平台技能(所有应用)
npx skills add inference-sh/skills@infsh-cli
# LLM 模型(与搜索结合用于 RAG)
npx skills add inference-sh/skills@llm-models
# 图像生成
npx skills add inference-sh/skills@ai-image-generation
浏览所有应用:
belt app list
文档
- Adding Tools to Agents - Equip agents with search
- Building a Research Agent - LLM + search integration guide
- Tool Integration Tax - Why pre-built tools matter
限制
费用、价格、速率限制及具体平台支持等信息暂未提供。