Loading...
Loading...
Compare original and translation side by side
web_searchweb_search用户查询
↓
[Phase 1] 意图分类 → 确定搜索策略
↓
[Phase 2] 查询分解 & 扩展 → 生成子查询
↓
[Phase 3] 多源并行检索 → Brave + search.py (Exa + Tavily + Grok)
↓
[Phase 4] 结果合并 & 排序 → 去重 + 意图加权评分
↓
[Phase 5] 知识合成 → 结构化输出User Query
↓
[Phase 1] Intent Classification → Determine Search Strategy
↓
[Phase 2] Query Decomposition & Expansion → Generate Sub-Queries
↓
[Phase 3] Multi-Source Parallel Retrieval → Brave + search.py (Exa + Tavily + Grok)
↓
[Phase 4] Result Merging & Sorting → Deduplication + Intent-Weighted Scoring
↓
[Phase 5] Knowledge Synthesis → Structured Output| 意图 | 识别信号 | Mode | Freshness | 权重偏向 |
|---|---|---|---|---|
| Factual | "什么是 X"、"X 的定义"、"What is X" | answer | — | 权威 0.5 |
| Status | "X 最新进展"、"X 现状"、"latest X" | deep | pw/pm | 新鲜度 0.5 |
| Comparison | "X vs Y"、"X 和 Y 区别" | deep | py | 关键词 0.4 + 权威 0.4 |
| Tutorial | "怎么做 X"、"X 教程"、"how to X" | answer | py | 权威 0.5 |
| Exploratory | "深入了解 X"、"X 生态"、"about X" | deep | — | 权威 0.5 |
| News | "X 新闻"、"本周 X"、"X this week" | deep | pd/pw | 新鲜度 0.6 |
| Resource | "X 官网"、"X GitHub"、"X 文档" | fast | — | 关键词 0.5 |
详细分类指南见references/intent-guide.md
exploratory| Intent | Identification Signals | Mode | Freshness | Weight Bias |
|---|---|---|---|---|
| Factual | "What is X", "Definition of X", "What is X" | answer | — | Authority 0.5 |
| Status | "Latest developments of X", "Current status of X", "latest X" | deep | pw/pm | Freshness 0.5 |
| Comparison | "X vs Y", "Differences between X and Y" | deep | py | Keywords 0.4 + Authority 0.4 |
| Tutorial | "How to do X", "Tutorial for X", "how to X" | answer | py | Authority 0.5 |
| Exploratory | "Deep dive into X", "Ecosystem of X", "about X" | deep | — | Authority 0.5 |
| News | "News about X", "X this week", "X this week" | deep | pd/pw | Freshness 0.6 |
| Resource | "Official website of X", "GitHub of X", "Documentation of X" | fast | — | Keywords 0.5 |
Detailed classification guidelines can be found inreferences/intent-guide.md
exploratory| 意图 | 扩展策略 | 示例 |
|---|---|---|
| Factual | 加 "definition"、"explained" | "WebTransport" → "WebTransport", "WebTransport explained overview" |
| Status | 加年份、"latest"、"update" | "Deno 进展" → "Deno 2.0 latest 2026", "Deno update release" |
| Comparison | 拆成 3 个子查询 | "Bun vs Deno" → "Bun vs Deno", "Bun advantages", "Deno advantages" |
| Tutorial | 加 "tutorial"、"guide"、"step by step" | "Rust CLI" → "Rust CLI tutorial", "Rust CLI guide step by step" |
| Exploratory | 拆成 2-3 个角度 | "RISC-V" → "RISC-V overview", "RISC-V ecosystem", "RISC-V use cases" |
| News | 加 "news"、"announcement"、日期 | "AI 新闻" → "AI news this week 2026", "AI announcement latest" |
| Resource | 加具体资源类型 | "Anthropic MCP" → "Anthropic MCP official documentation" |
| Intent | Expansion Strategy | Example |
|---|---|---|
| Factual | Add "definition", "explained" | "WebTransport" → "WebTransport", "WebTransport explained overview" |
| Status | Add year, "latest", "update" | "Deno 进展" → "Deno 2.0 latest 2026", "Deno update release" |
| Comparison | Split into 3 sub-queries | "Bun vs Deno" → "Bun vs Deno", "Bun advantages", "Deno advantages" |
| Tutorial | Add "tutorial", "guide", "step by step" | "Rust CLI" → "Rust CLI tutorial", "Rust CLI guide step by step" |
| Exploratory | Split into 2-3 perspectives | "RISC-V" → "RISC-V overview", "RISC-V ecosystem", "RISC-V use cases" |
| News | Add "news", "announcement", date | "AI 新闻" → "AI news this week 2026", "AI announcement latest" |
| Resource | Add specific resource types | "Anthropic MCP" → "Anthropic MCP official documentation" |
web_searchfreshnessweb_search(query="Deno 2.0 latest 2026", freshness="pw")web_searchfreshnessweb_search(query="Deno 2.0 latest 2026", freshness="pw")python3 /home/node/.openclaw/workspace/skills/search-layer/scripts/search.py \
--queries "子查询1" "子查询2" "子查询3" \
--mode deep \
--intent status \
--freshness pw \
--num 5| 模式 | Exa | Tavily | Grok | 说明 |
|---|---|---|---|---|
| fast | ✅ | ❌ | fallback | Exa 优先;无 Exa key 时用 Grok |
| deep | ✅ | ✅ | ✅ | 三源并行 |
| answer | ❌ | ✅ | ❌ | 仅 Tavily(含 AI answer) |
| 参数 | 说明 |
|---|---|
| 多个子查询并行执行(也可用位置参数传单个查询) |
| fast / deep / answer |
| 意图类型,影响评分权重(不传则不评分,行为与 v1 一致) |
| pd(24h) / pw(周) / pm(月) / py(年) |
| 逗号分隔的域名,匹配的结果权威分 +0.2 |
| 每源每查询的结果数 |
grok-4.1Grok API URLGrok API KeyGrok Modelpython3 /home/node/.openclaw/workspace/skills/search-layer/scripts/search.py \
--queries "sub-query1" "sub-query2" "sub-query3" \
--mode deep \
--intent status \
--freshness pw \
--num 5| Mode | Exa | Tavily | Grok | Notes |
|---|---|---|---|---|
| fast | ✅ | ❌ | fallback | Prioritize Exa; use Grok if Exa key is unavailable |
| deep | ✅ | ✅ | ✅ | Three sources in parallel |
| answer | ❌ | ✅ | ❌ | Only Tavily (includes AI answer) |
| Parameter | Description |
|---|---|
| Execute multiple sub-queries in parallel (can also pass a single query as a positional parameter) |
| fast / deep / answer |
| Intent type, affects scoring weights (if not passed, no scoring is performed, behavior is consistent with v1) |
| pd(24h) / pw(week) / pm(month) / py(year) |
| Comma-separated domains, matching results get +0.2 to authority score |
| Number of results per source per query |
grok-4.1Grok API URLGrok API KeyGrok Modelscorescorescore = w_keyword × keyword_match + w_freshness × freshness_score + w_authority × authority_score完整域名评分表见references/authority-domains.json
score = w_keyword × keyword_match + w_freshness × freshness_score + w_authority × authority_scoreComplete domain scoring table can be found inreferences/authority-domains.json
--domain-boostsearch.py "query" --mode deep --intent tutorial --domain-boost dev.to,freecodecamp.orgdev.to, freecodecamp.org, realpython.com, baeldung.comgithub.comtechcrunch.com, arstechnica.com, theverge.com--domain-boostsearch.py "query" --mode deep --intent tutorial --domain-boost dev.to,freecodecamp.orgdev.to, freecodecamp.org, realpython.com, baeldung.comgithub.comtechcrunch.com, arstechnica.com, theverge.com1. [Title](url) — snippet... `[brave, exa]` ⭐0.85
2. [Title](url) — snippet... `[tavily]` ⭐0.721. [Title](url) — snippet... `[brave, exa]` ⭐0.85
2. [Title](url) — snippet... `[tavily]` ⭐0.72**主题 A: [描述]**
- [结果1] — 要点... `[source]`
- [结果2] — 要点... `[source]`
**主题 B: [描述]**
- [结果3] — 要点... `[source]`**Topic A: [Description]**
- [Result1] — Key points... `[source]`
- [Result2] — Key points... `[source]`
**Topic B: [Description]**
- [Result3] — Key points... `[source]`[一段综述,概括主要发现]
**Top 5 最相关结果:**
1. ...
2. ...
共找到 N 条结果,覆盖 [源列表]。需要深入哪个方面?[A paragraph summarizing key findings]
**Top 5 Most Relevant Results:**
1. ...
2. ...
A total of N results found, covering [source list]. Which aspect would you like to explore in depth?web_searchweb_search--intent--intent| 场景 | 命令 |
|---|---|
| 快速事实 | |
| 深度调研 | |
| 最新动态 | |
| 对比分析 | |
| 找资源 | |
| Scenario | Command |
|---|---|
| Quick Facts | |
| Deep Research | |
| Latest Updates | |
| Comparative Analysis | |
| Resource Finding | |