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

改进联网搜索插件-新增搜索模式,搜索增强 #1874

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

Menghuan1918
Copy link
Contributor

@Menghuan1918 Menghuan1918 commented Jun 28, 2024

Note

以下所有示范都是使用deepseek-chat进行测试

  • 搜索模式更新为默认使用"Mixed",即混合使用远端Searxng服务器中所有搜索引擎
    根据这个issue以及这个issue中所提到的,bing搜索结果会受到远端Searxng服务器所在IP影响,且效果均不如直接使用网页版bing效果好,因此建议不默认使用bing而改用使用"Mixed"

  • 新增“搜索优化”功能

  1. "关闭":默认选择,相比原有流程无任何更改。
  2. “开启”:将会对问题进行重写,例如输入:如何使用Caddy反代本地的静态网页?将会被优化为三个问题:["Caddy 反代本地静态网页","Caddy 配置静态网页反代","Caddy 静态网页反向代理"]并进行搜索。
  3. "开启(增强)":将会对问题进行重写,并且同时会结合历史记录。例如历史记录为上面例子2中询问完如何使用Caddy反代本地的静态网页?,再询问如何指定使用我自己的https证书?,此时问题会被优化为:["Caddy 自定义 HTTPS 证书","Caddy 配置 HTTPS 证书","Caddy 使用自己的 SSL 证书","Caddy 设置 HTTPS 证书"]

示范截图:

图片

图片

  • 已知Bug:
    使用"开启(增强)"功能时会莫名调用docs/test_markdown_format.py,并在当前目录生成一个tmp.html,内容为docs/test_markdown_format.pysample变量的值

不是bug,只是VSCode的测试插件自动运行了测试而已

@binary-husky binary-husky changed the base branch from frontier to master June 30, 2024 14:09
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.

None yet

2 participants