Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Add]添加百度、Bing搜索,调整提示词已支持使用多个搜索引擎 #478

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wolfitem
Copy link

Features

  • 新增百度搜索引擎集成功能
  • 新增 Bing 搜索引擎集成功能
  • 优化系统提示词,支持多搜索引擎并行使用
  • 重构搜索工具架构,实现统一的搜索接口

Feature Docs

新增文件:

  • :实现百度搜索功能
  • :实现 Bing 搜索功能

依赖更新:

  • 新增 baidusearch~=1.0.3 用于百度搜索支持
  • 系统已包含必要的网络请求库 aiohttp 和解析库 beautifulsoup4

Influence

  • 扩展了系统的信息获取能力,支持中英文搜索场景
  • 提供多搜索引擎支持,提高搜索结果的多样性和准确性
  • 统一的异步实现确保系统性能不受影响
  • 提示词系统支持智能选择搜索引擎

Result

示例使用:

# 使用百度搜索
baidu_results = await baidu_search.execute("OpenAI ChatGPT", num_results=5)

# 使用 Bing 搜索
bing_results = await bing_search.execute("OpenAI ChatGPT", num_results=5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant