← 返回
未分类 Key 中文

🔍 惠迈智能搜索

Web search and content extraction using Tavily Search/Extract/Research APIs (Bearer auth). Use when you need web results (general/news/finance), date/topic/d...
使用 TavilySearch/Extract/Research API(Bearer 鉴权)进行网页搜索和内容提取,适用于需要通用、新闻、财经等网页结果,并支持日期、主题等条件过滤。
yezhaowang888-stack yezhaowang888-stack 来源
未分类 clawhub v1.1.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 321
下载
💾 0
安装
1
版本
#calibration#huimai#latest#search#tavily

概述

Tavily (Web Search / Extract / Research)

Prereqs

  • Ensure TAVILY_API_KEY is set in the Hermes environment (commonly ~/.hermes/.env).
  • Do not hardcode or paste API keys into chat logs. See references/bp-api-key-management.md.

Security Notes

  • The bundled CLI (scripts/tavily.py) reads only TAVILY_API_KEY from the environment and only sends requests to https://api.tavily.com.
  • Prefer search then extract over include_raw_content on search to keep outputs small and reduce accidental data exposure.

Quick Reference

Use the terminal tool to run the bundled CLI script (prints JSON).

SKILL_DIR is the directory containing this SKILL.md file.

# Search (general)
python3 SKILL_DIR/scripts/tavily.py search --query "latest OpenAI API changes" --max-results 5

# Search (news) with recency filter
python3 SKILL_DIR/scripts/tavily.py search --query "latest OpenAI API changes" --topic news --time-range week --max-results 5

# High-precision search (more cost/latency)
python3 SKILL_DIR/scripts/tavily.py search --query "OpenAI API rate limits March 2026" --search-depth advanced --chunks-per-source 3 --max-results 5

# Search + answer (still cite URLs from results)
python3 SKILL_DIR/scripts/tavily.py search --query "What is X?" --include-answer basic --max-results 5

# Extract (targeted chunks; prefer this over include_raw_content on search)
python3 SKILL_DIR/scripts/tavily.py extract --url "https://example.com" --query "pricing" --chunks-per-source 3 --format markdown

# Research (creates task + polls until complete)
python3 SKILL_DIR/scripts/tavily.py research --input "Summarize the EU AI Act enforcement timeline. Provide numbered citations." --model auto --citation-format numbered --max-wait-seconds 180

Use returned results[].url fields as citations/sources in your final answer.

No-Script Option (curl)

Use Tavily directly via curl (same endpoints, no bundled script):

curl -s "https://api.tavily.com/search" \
  -H "Authorization: Bearer <TAVILY_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"query":"latest OpenAI API changes","topic":"news","time_range":"week","max_results":5}'

curl -s "https://api.tavily.com/extract" \
  -H "Authorization: Bearer <TAVILY_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"urls":"https://example.com","query":"pricing","chunks_per_source":3,"extract_depth":"basic","format":"markdown"}'

Procedure

  1. Turn the user request into a focused search query (keep it short, ideally under ~400 chars). Split multi-part questions into 2-4 sub-queries.
  2. Choose topic:
    • general for most searches
    • news for current events (prefer also setting time_range or date range)
    • finance for market/finance content
  3. Choose search_depth:
    • Start with basic (1 credit) unless you need higher precision.
    • Use advanced (2 credits) for high-precision queries; use chunks_per_source to control snippet volume.
  4. Keep max_results small (default 5) and filter by score + domain trust.
  5. For primary text, run extract on 1-3 top URLs:
    • Provide an extract --query ... --chunks-per-source N to avoid dumping full pages into context.
  6. For synthesis across multiple subtopics with citations, run research and poll until status=completed.

Pitfalls

  • include_raw_content on search can explode output size; prefer the two-step flow: search then extract.
  • auto_parameters can silently pick search_depth=advanced (2 credits). Set --search-depth explicitly when you care about cost.
  • exact_match is restrictive; wrap the phrase in quotes inside --query and expect fewer results.
  • country boosting is only available for topic=general.
  • On failures, keep the request_id from responses for support/debugging.

Verification

  • Check credits/limits: python3 SKILL_DIR/scripts/tavily.py usage
  • Add --include-usage on search/extract if you want per-request usage info.

References

  • references/search.md
  • references/extract.md
  • references/research.md
  • references/research-get.md
  • references/bp-search.md
  • references/bp-extract.md
  • references/bp-research.md
  • references/bp-api-key-management.md
  • references/usage.md

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-05-08 03:29 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

professional

学术研究助手

yezhaowang888-stack
学术研究全流程助手,提供论文写作指导、文献检索方法、学术工具推荐、期刊投稿指南、学术会议信息、科研项目管理等。适用于大学生、研究生和科研人员。支持家庭(知识库)和商业(API扩展)双模式。触发条件:用户提出与论文、文献、期刊、投稿、学术、科
★ 1 📥 1,072
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 211 📥 70,287
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 142,167