Loading...
Loading...
LLM-based deep iterative search and reasoning service. Specializes in handling complex problems, automatically decomposing queries, conducting multi-round iterative retrieval, evaluating and verifying information, and finally generating comprehensive and structured deep analysis reports.
npx skill4agent add lin-a1/skills-agent deepsearch-servicefrom services.deepsearch_service.client import DeepSearchClient
client = DeepSearchClient()
# 健康检查
status = client.health_check()
# 深度搜索(默认参数)
result = client.search("Python异步编程的最佳实践有哪些?")
# 自定义参数
result = client.search(
query="如何设计一个高可用的微服务架构?",
max_iterations=3, # 最大迭代次数 (1-5)
queries_per_iteration=3, # 每轮查询数 (1-5)
depth_level="deep" # 搜索深度: quick/normal/deep
)
# 获取报告和来源
print(result["report"])
for source in result["sources"]:
print(f"- {source['title']}: {source['url']}"){
"query": "Python异步编程的最佳实践有哪些?",
"report": "# Python异步编程最佳实践\n\n## 1. 核心概念...",
"sources": [
{
"title": "Python官方asyncio文档",
"url": "https://docs.python.org/...",
"relevance": 0.95,
"snippet": "asyncio是Python标准库中的异步I/O框架..."
}
],
"iterations": [
{
"iteration": 1,
"queries": ["Python asyncio 教程", "async await 用法"],
"results_count": 6,
"key_findings": ["asyncio是标准库组件"]
}
],
"total_iterations": 2,
"total_sources": 8,
"elapsed_seconds": 45.32,
"search_timestamp": "2025-12-28T18:30:00"
}| Feature | WebSearch | DeepSearch |
|---|---|---|
| Search Mode | Single-round search | Multi-round iterative search |
| Query Strategy | Direct use of input | LLM decomposition/optimization |
| Output Format | Structured list | Comprehensive report + sources |
| Response Time | 10-30s | 30-120s |