用途
Web Search 是一项网络搜索与内容提取技能,通过 inference.sh CLI(命令行工具 belt)调用 Tavily 和 Exa 两个搜索服务,为研究工作、检索增强生成(RAG)、事实核查、内容聚合以及构建具备研究能力的 AI 智能体提供支持。
安装与使用方式
首先安装 belt CLI 技能:
npx skills add belt-sh/cli
该技能需要 inference.sh CLI(belt),随后执行登录:
belt login
之后通过 belt app run 命令调用各应用,输入以 JSON 格式传入。
主要能力
该技能包含以下可用应用:
Tavily
- Search Assistant(应用 ID:
tavily/search-assistant):AI 驱动的搜索,带答案,返回带有来源和图片的 AI 生成答案。 - Extract(应用 ID:
tavily/extract):从 URL 提取内容,可从多个 URL 提取干净的文本和图片。
Exa
- Search(应用 ID:
exa/search):带 AI 的智能网络搜索,返回高度相关的链接及上下文。 - Answer(应用 ID:
exa/answer):直接返回事实性答案。 - Extract(应用 ID:
exa/extract):提取并分析网页内容。
使用示例
Tavily Search:
belt app run tavily/search-assistant --input '{
"query": "What are the best practices for building AI agents?"
}'
Tavily Extract:
belt app run tavily/extract --input '{
"urls": ["https://example.com/article1", "https://example.com/article2"]
}'
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
- 搜索信息:
belt app run tavily/search-assistant --input '{
"query": "latest developments in quantum computing"
}' > search_results.json
- 使用 Claude 分析:
belt app run openrouter/claude-sonnet-45 --input '{
"prompt": "Based on this research, summarize the key trends: <search-results>"
}'
提取 + 总结
- 从 URL 提取内容:
belt app run tavily/extract --input '{
"urls": ["https://example.com/long-article"]
}' > content.json
- 使用 LLM 总结:
belt app run openrouter/claude-haiku-45 --input '{
"prompt": "Summarize this article in 3 bullet points: <content>"
}'
适用场景
- 研究:收集任意主题的信息
- RAG:检索增强生成
- 事实核查:带来源地验证陈述
- 内容聚合:从多个来源收集数据
- 智能体:构建具备研究能力的 AI 智能体
相关技能
# Full platform skill (all apps)
npx skills add inference-sh/skills@infsh-cli
# LLM models (combine with search for RAG)
npx skills add inference-sh/skills@llm-models
# Image generation
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
限制
资料中未提供关于收费、价格、平台限制或性能指标的具体信息。