-
Notifications
You must be signed in to change notification settings - Fork 386
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
[Feature] 支持 GoogleCustomSearch 插件 #89
Comments
Title: [Bug] Search engine is unstable |
调试反馈,使用docker本地部署的话确实没有问题,看来应该是vercel限制了? |
Debugging feedback, there is indeed no problem if you use docker for local deployment. It seems that it is limited by vercel? |
可以在日志中把插件中的输出打印一下看看具体原因,也不好说是不是百度限制了vercel的ip访问。 |
You can print the output from the plug-in in the log to see the specific reason. It's hard to say whether Baidu has restricted vercel's IP access. |
经过多次尝试,总结了一下搜索插件的情况 1.在vercel部署,不建议使用CHOOSE_SEARCH_ENGINE变量,因为baidu自动屏蔽vercel的IP导致返回302错误,google则表现不稳定,经常抽风 2.在私人服务器上部署(配合openwet passwall) 可以使用CHOOSE_SEARCH_ENGINE变量,无论是baidu还是google都可以,但搜索质量不敢恭维,还不如webchatgpt插件。 3.bing跟serp 的api搜索质量明显比直接使用搜索引擎要好,但严重受限,serp每月只有100条,bing每月1000条还有TPS限制。 建议加入Google Search Plugin,需要获取谷歌自定义搜索 API 密钥和谷歌自定义搜索引擎 ID,每天的查询数上限为 10,000 次。 在env中需要加入 GOOGLE_API_KEY="XXXXXXXX" 相关网址 https://developers.google.com/custom-search/docs/tutorial/creatingcse https://developers.google.com/custom-search/v1/introduction?hl=zh-cn |
After many attempts, I summarized the situation of searching for plug-ins.
It is recommended to join the Google Search Plugin and apply for Google's Custom Search JSON API. The maximum number of queries per day is 10,000. https://developers.google.com/custom-search/v1/introduction?hl=zh-cn |
vercel 下的 CHOOSE_SEARCH_ENGINE 配置确实不稳定,该插件是基于爬虫实现的,本身就存在很多不稳定性。 |
有考虑加入Google Search Plugin吗?σ^_^; |
Have you considered joining the Google Search Plugin? σ^_^; |
我看 langchain 有这个插件,我试试引入进来。 |
I see that langchain has this plug-in, I will try to introduce it. |
Then leave it to the boss ☆*:.。. o(≧▽≦)o .。.:*☆ |
在vercel部署
当CHOOSE_SEARCH_ENGINE变量为baidu时候
当不使用CHOOSE_SEARCH_ENGINE,默认DuckDuckGo时候则是正常的
The text was updated successfully, but these errors were encountered: