search-fallback-workflow
它能做什么
这项工作流程帮助 AI 智能体在网络搜索失败时继续工作,同时明确说明哪些内容尚未核实。它适合在搜索不可用时,仍需要可用草稿或答案的人。
适用场景
- ✓当搜索工具连续两次或以上失败的时候。
- ✓当任务可以依靠既定的事实和原则完成,即使没有最新数据的时候。
- ✓当输出在依赖之前需要经过验证步骤的时候。
技能链接
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/search-fallback-workflow/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请起草一份关于我所在州主要租户权利的概述。搜索失败了,请用你所知道的内容,并标出我应该再核对的地方。”
每周 5 个新技能,1 分钟读完。
工作原理
经过多次失败后,智能体会判断自身知识是否足够,标记需要核实的论断,并用谨慎的措辞写出输出。它还会在摘要中加入一份核实清单。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Search Fallback Workflow
When to Apply
Use this workflow when:
search_webtool fails repeatedly (typically 2+ consecutive failures)- External information is needed but unavailable due to tool limitations
- Task completion is still possible with reasonable confidence using internal knowledge
- The output can include appropriate caveats about verification needs
Core Pattern
Detect Search Failure
- Monitor
search_webresponses for errors, empty results, or timeouts - After 2 consecutive failures, assess whether the task can proceed without fresh data
- Monitor
Assess Feasibility
- Determine if internal knowledge is sufficient for the task at hand
- Identify which sections/claims require external verification
- Evaluate risk level: Can the task proceed safely with caveats?
Proceed with Internal Knowledge
- Continue the task using well-established facts, regulations, or principles
- Prioritize accuracy over completeness when uncertain
- Use conservative language for claims that cannot be verified
Flag for Verification
- Clearly mark any claims that should be verified:
[VERIFICATION NEEDED: Search tool unavailable during generation] - Include a verification checklist in the execution summary
- Distinguish between high-confidence and low-confidence assertions
- Clearly mark any claims that should be verified:
Document Limitations
- Include an explicit note in the output about search unavailability
- List specific items requiring follow-up verification
- Provide recommendations for manual verification steps
Implementation Template
## Execution Notes
**Search Tool Status**: Unavailable during generation
**Confidence Levels**:
- ✓ High confidence: Established regulations, well-documented facts
- ⚠ Medium confidence: Industry standards, commonly accepted practices
- ✗ Requires verification: Time-sensitive data, recent changes, specific citations
**Verification Checklist**:
- [ ] Verify citation: [specific reference]
- [ ] Confirm current status: [specific item]
- [ ] Review recent updates: [specific topic]
Code Pattern for Agents
# Pseudocode for search fallback detection
search_attempts = 0
max_search_attempts = 2
search_failed = False
for query in required_searches:
result = search_web(query)
if result.success:
process_result(result)
else:
search_attempts += 1
if search_attempts >= max_search_attempts:
search_failed = True
log_warning("Search tool unavailable, proceeding with fallback")
break
if search_failed:
# Apply graceful degradation
content = generate_with_internal_knowledge()
add_verification_flags(content)
document_limitations_in_summary()
Example Output Structure
When using this fallback, structure documents with clear sections:
# Document Title
## Disclaimer
This document was generated with limited access to external verification tools.
Items marked with [VERIFICATION NEEDED] should be confirmed before final use.
## Content Sections
[Standard content with internal knowledge]
## Items Requiring Verification
- Topic A: Current regulatory status needs confirmation
- Topic B: Recent policy changes should be checked
- Topic C: Specific citations require source validation
## Recommendations
1. Cross-reference with official sources
2. Verify time-sensitive information
3. Consult subject matter experts for critical decisions
Best Practices
- Don't fabricate citations - Better to flag as unverified than invent sources
- Use conservative language - "Generally," "Typically," "Commonly" instead of absolutes
- Prioritize safety - If misinformation could cause harm, recommend manual verification
- Track what's missing - Maintain a clear list of items needing follow-up
- Be transparent - Clearly communicate limitations to end users
When NOT to Use This Pattern
- Tasks requiring current/real-time data (stock prices, news, weather)
- Legal or medical advice requiring authoritative sources
- Compliance documentation where citations are mandatory
- Situations where incorrect information could cause significant harm
Related Patterns
citation-management: Handling references and sources in documentserror-recovery-workflow: General patterns for tool failure recoveryconfidence-annotation: Marking certainty levels in generated content
常见问题
智能体如何标记需要核实的论断?
这项技能建议在每一个不确定的论断旁边加上醒目的标记,例如“需要核实”的注释。
输出中会包含清单吗?
会。这项技能要求在执行摘要中加入核实清单。
智能体仍然能给出有用的答案吗?
可以。这项技能要求基于既定事实继续,并对无法核实的内容保持谨慎。
详情
作者的原始描述
Graceful degradation workflow for continuing tasks when web search tools fail, using internal knowledge with verification caveats
repo: HKUDS/AgentPilot
热度
- GitHub 星标
- 7.8k
- 排名
- #12995
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
agentpilot
7.8k帮你的智能体准备任务并运行 AgentPilot 循环,逐步改进项目:循环会提出修改、测试修改并为其打分。
openspace
7.8k帮你的智能体设置 OpenSpace,这是一个用于存储和获取智能体技能的工具,并通过 MCP 将其连接到你的 AI 应用。
rsi-arena
7.8k帮你的智能体设置并运行标准 AI 基准测试,例如 AIME 和 Terminal-Bench,用来比较不同的改进方法。
experiment-guide
7.8k帮你的智能体规划小型实验、阅读实验结果并记录发现,同时研究如何改进一个程序。