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

[Feature] Plugin Web Search: 可以增加联网搜索功能吗? #165

Closed
yuntian123456 opened this issue Mar 29, 2023 · 119 comments
Closed
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@yuntian123456
Copy link

在这个项目里发现有联网搜索功能,可以实现类似的功能吗?
https://github.com/GaiZhenbiao/ChuanhuChatGPT

@Yidadaa
Copy link
Collaborator

Yidadaa commented Mar 29, 2023

目前还不太清楚浏览器里是否能直接获取搜索引擎结果,后续再加吧

@Yidadaa Yidadaa added the question Further information is requested label Mar 29, 2023
@Winner-Nick
Copy link

https://github.com/circlestarzero/EX-chatGPT
这个实现了联网功能,调用的是谷歌的接口,每天有20次免费的机会,可以参考一下~

@Winner-Nick
Copy link

https://github.com/circlestarzero/EX-chatGPT 这个实现了联网功能,调用的是谷歌的接口,每天有20次免费的机会,可以参考一下~

写错了,谷歌搜索引擎的api每天应该是100次免费机会

@yuntian123456
Copy link
Author

yuntian123456 commented Mar 30, 2023

我不懂,问下了chatgpt,给出了这样的答案哈哈
image
image

@HenMie
Copy link

HenMie commented Mar 31, 2023

https://github.com/qunash/chatgpt-advanced 这个插件也是可以参考一下的

@gakaki
Copy link

gakaki commented Apr 4, 2023

这些功能langchain js 都有 连sql 都有 大模型也有

@gakaki
Copy link

gakaki commented Apr 4, 2023

当然在js圈子看不到的 这个库最早来自于py 上面说的功能都是agents里的功能

@Yidadaa Yidadaa added the faq Most asked questions label Apr 5, 2023
@Maddaxman
Copy link

川虎的实现逻辑,我估计是这样的,gui调搜索引擎搜索关键词,然后以一定规则爬取某些网页,和网页的内容,然后喂给gpt,所以川虎会有以下两种情况。
1、就算不填key,开了联网功能后,gui也会回复内容,就是gui调用搜索引擎搜索出的内容
2、结果不稳定,不知道他的抓取规则是什么,每次问爬的网站都不一样。

@Maddaxman
Copy link

@Yidadaa

@paobo
Copy link

paobo commented Apr 8, 2023

我是直接扔给chatgpt对话框google网址,让它帮我搜索

@doveppp
Copy link

doveppp commented Apr 9, 2023

川虎用的是duckduckgo这个库获取的搜索结果

@iRubbish
Copy link

https://chat1.aichatos.com/#/chat/1681292288748
这个网址实现了联网功能,但我不知道它是怎么实现的。比川虎的结果更清晰好用

@HenMie
Copy link

HenMie commented Apr 12, 2023

https://chat1.aichatos.com/#/chat/1681292288748 这个网址实现了联网功能,但我不知道它是怎么实现的。比川虎的结果更清晰好用

看了一下,它后端是在service里的,但这个仓库没有service的提交

@liujuntao123
Copy link

https://chat1.aichatos.com/#/chat/1681292288748 这个网址实现了联网功能,但我不知道它是怎么实现的。比川虎的结果更清晰好用

看了一下,它后端是在service里的,但这个仓库没有service的提交

这个作者有个ddg的仓库,大概率应该也是用的ddg的引擎。

@nuclearn
Copy link

https://github.com/circlestarzero/EX-chatGPT
这个实现了联网功能,调用的是谷歌的接口,每天有20次免费的机会,可以参考一下~

这个是真厉害,希望能实现。

@iRubbish
Copy link

https://chat1.aichatos.com/#/chat/1681292288748 这个网址实现了联网功能,但我不知道它是怎么实现的。比川虎的结果更清晰好用

看了一下,它后端是在service里的,但这个仓库没有service的提交

这个作者有个ddg的仓库,大概率应该也是用的ddg的引擎。

我怀疑是 别人在 chatgpt-web 的基础上做了二开吧

@idjj
Copy link

idjj commented Apr 18, 2023

https://chat1.aichatos.com/#/chat/1681292288748 这个网址实现了联网功能,但我不知道它是怎么实现的。比川虎的结果更清晰好用

image
我刚才去试了一下,这样

@vicacheung
Copy link

https://github.com/Significant-Gravitas/Auto-GPT
这个是通过Google 的Custom Search API搜索

@sleep2death
Copy link

@Undertone0809
Copy link

https://chat1.aichatos.com/#/chat/1681292288748 这个网址实现了联网功能,但我不知道它是怎么实现的。比川虎的结果更清晰好用

看了一下,它后端是在service里的,但这个仓库没有service的提交

这个作者有个ddg的仓库,大概率应该也是用的ddg的引擎。

我怀疑是 别人在 chatgpt-web 的基础上做了二开吧

是做二开的,加上了一些自己的功能,并且把自己的收款码放进去了(狗头)

@Hk-Gosuto
Copy link

https://github.com/Hk-Gosuto/ChatGPT-Next-Web
我在自己fork的仓库里试着加了联网搜索功能的代码,感兴趣的老哥可以先用着
prompt用 https://github.com/GaiZhenbiao/ChuanhuChatGPT 项目里改的
先部署个 https://github.com/binjie09/duckduckgo-api
然后加个环境变量 WEB_SEARCH_BASE_URL 指向 duckduckgo-api 的 URL 就行了

开关如图:
image

@Yidadaa
Copy link
Collaborator

Yidadaa commented May 3, 2023

@Hk-Gosuto 效果如何,能否提供几个问答的截图?

@Hk-Gosuto
Copy link

@Hk-Gosuto 效果如何,能否提供几个问答的截图?

效果取决于duckduckgo本身返回的内容,默认只取了3条结果
部分场景返回的数据来源标注的有点问题,如图3,虽然标记了引用但没关联url

image
image
image

@Yidadaa
Copy link
Collaborator

Yidadaa commented May 3, 2023

效果很不错

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


If the current Internet search function uses a third-party API, the cost will be too high.
It is not impossible if you integrate a reader yourself and enter the returned results into GPT.
Or enter it manually (can be combined with leaked prompt words)

@jinleiphys
Copy link

强烈建议优先加入DALL·E 3插件功能。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


It is strongly recommended to add the DALL·E 3 plug-in function first.

@H0llyW00dzZ
Copy link
Contributor

H0llyW00dzZ commented Nov 10, 2023

Interesting about this Issue

By the way, the function calling allows AI for visiting websites, but not all websites can be accessed. It's most likely that only trusted sites are permitted.

image

image

code :

{
  "name": "visit_website",
  "parameters": {
    "type": "object",
    "properties": {
      "url": {
        "type": "string",
        "description": "The URL of the website to visit"
      }
    },
    "required": [
      "https://teapot-cat.pages.dev/teapot.png"
    ]
  },
  "description": "Visit a website"
}

@ccinoo
Copy link

ccinoo commented Nov 20, 2023

强烈建议优先加入DALL·E 3插件功能。

这个我支持。DALL·E 3效果比2好多了。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


It is strongly recommended to add the DALL·E 3 plug-in function first.

I support this. DALL·E 3 is much better than 2.

@mouxangithub
Copy link

强烈建议优先加入DALL·E 3插件功能。

这个我支持。达尔·E 3效果比2好多了。

现在这个仓库已经是最新版的dalle3了,'ChatGPT-Next-Web-LangChain'

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


It is strongly recommended to add the DALL·E 3 plug-in function first.

I support this. Dar·E 3 is much better than 2.

This warehouse is now the latest version of dalle3, 'ChatGPT-Next-Web-LangChain'

@ccinoo
Copy link

ccinoo commented Nov 20, 2023

强烈建议优先加入DALL·E 3插件功能。

这个我支持。达尔·E 3效果比2好多了。

现在这个仓库已经是最新版的dalle3了,'ChatGPT-Next-Web-LangChain'

这家贡献者很多啊?👏

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


It is strongly recommended to add the DALL·E 3 plug-in function first.

I support this. Dar·E 3 is much better than 2.

This warehouse is now the latest version of dalle3, 'ChatGPT-Next-Web-LangChain'

There are many contributors to this company? 👏

ryiann pushed a commit to ryiann/ChatGPT that referenced this issue Dec 1, 2023
…GPTNextWeb#165)

Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.55 to 0.10.60.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](sfackler/rust-openssl@openssl-v0.10.55...openssl-v0.10.60)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@UgiYo
Copy link

UgiYo commented Dec 29, 2023

When I turn on web search in plugin, it can not search with bing search engine until 60 seconds.

If I adjust the REQUEST_TIMEOUT_MS to 600 seconds, the result will be get.
It seems that will search after 60s, then connect to bing search. Can anyone help me?

@fatwang2
Copy link

fatwang2 commented Jan 6, 2024

在Next Chat里联网可以用我这个方案,只需要换apibase地址就行,也可以自己部署,效果如下:https://search2ai.online/github
telegram-cloud-photo-size-5-6104867043271621052-y

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


You can use my solution for networking in Next Chat. You only need to change the apibase address. You can also deploy it yourself. The effect is as follows: https://search2ai.online/github
telegram-cloud-photo-size-5-6104867043271621052-y

@fredliang44 fredliang44 added enhancement New feature or request and removed faq Most asked questions labels Jan 9, 2024
@LeXwDeX
Copy link

LeXwDeX commented Jan 14, 2024

调用接口那个是第三方的,免费的不好使。
我更倾向于把网页的内容手工提取出来放到聊天内容里,有翻墙能力的话可以用谷歌。目前我是用Python脚本做了一些简单的过滤之后提纯插入到系统对话中,从而达到目的。


建议大佬开放插件接口规范,比如可读,可改对话内容就行,然后自己写fetch调用第三方服务。了不起配一些静态变量。

@Yidadaa

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The calling interface is from a third party, and the free one is not easy to use. I prefer to manually extract the content of the web page and put it into the chat content. If you have the ability to circumvent the wall, you can use Google.

This is what I am doing now, using the reader JS to purify the content.

@fred-bf fred-bf self-assigned this Jan 29, 2024
@sheng-di
Copy link

sheng-di commented Mar 5, 2024

这个目前有进展了吗,看 issue 已经有将近一年了。。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Is there any progress on this currently? It has been nearly a year since I saw the issue. .

@cesarleaz
Copy link

最好的办法是直接实现插件,因为这才符合逻辑,
https://github.com/lobehub/lobe-chat/tree/v0.49.0

@cesarleaz
Copy link

cesarleaz commented Mar 25, 2024

最好的办法是直接实现插件,因为这才符合逻辑, https://github.com/lobehub/lobe-chat/tree/v0.49.0

使用 Vercel AI 模块,使您的开发变得更加轻松,并为您提供干净的代码。

@Yidadaa

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The best way is to implement the plug-in directly, because this is logical, https://github.com/lobehub/lobe-chat/tree/v0.49.0

Use the Vercel AI module to make your development easier and give you clean code.

@ccoc-cc
Copy link
Contributor

ccoc-cc commented May 9, 2024

Hey everyone. How's the development of the plugin features going? Feels like it hasn't been updated for a while. Looking forward to the plugins being launched soon.

@nickfixit
Copy link

This any update or can I assist?

@lloydzhou
Copy link
Member

see #5353

@lloydzhou
Copy link
Member

this is plugin demo (call duckduckgolite) worked on v2.15.0

https://github.com/ChatGPTNextWeb/NextChat-Awesome-Plugins/tree/main/plugins/duckduckgolite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests