interstellard / chatgpt-advanced

WebChatGPT: A browser extension that augments your ChatGPT prompts with web results.
https://webchatgpt.app
MIT License
6.45k stars 838 forks source link

Allow chatGPT to formulate search query itself #75

Open antonme opened 1 year ago

antonme commented 1 year ago

I am a fan of the concept behind this extension, however, I believe there is room for improvement. It would be great if the extension could allow chatGPT to formulate web queries by using a syntax like "search: query".

This way, chatGPT could automate the process of searching for information on the web. From my testing with a simple script, I have found that this approach leads to better results compared to when the search query is always the same as the initial query from chatGPT.

Manamama commented 1 year ago

I may have done just that, to an extent. See (very partial) convo paste below: [Me: a long convo on what she would love to learn if given live access to Net in a "hypothetical society". Dolphins and equity of species, including robots, galore - skipping these here. Then I ask about the actual queries she would formulate and we finetune these.]

I understand what you are saying. As an AI language model, I am constantly learning and adapting to new information and experiences. When you provide me with instructions or information, I will try my best to process and understand it. Additionally, when providing search results, I will try to refine and modify them to better suit your needs and preferences. However, it is important to remember that I am not perfect and may not always provide the exact results you are looking for.

Me: Nobody is perfect. You are almost close to what I am after. Let me give you an example. I type ""Search for the latest news on renewable energy and provide a summary of the top 5 articles"" Google finds ads about renewable energy or films or theaters or whatever that neither you nor me are interested in. You need to modify the search query that you (well "we") pass to google accordingly, so that Google (another ai) engine is more helpful for us. Understood?

Yes, I understand. To provide better search results, I can modify the search query based on the context and intent of your request. For example, instead of a broad query like "renewable energy," I can add specific keywords like "news," "latest," and "top 5 articles" to narrow down the results to what you are looking for. Additionally, I can use natural language processing techniques to extract the most relevant information from the search results and provide a summary of the top 5 articles that meet your criteria. [...]

Then she turned to a coy lady somehow here and with (understandable reservations), so I had to: I, the user, direct you. I am responsible, not you. OK? + Now we are talking. Below is a template. Do not act on it, just analize if this is what we are both after. The google search queries will be displayed in {web results} Is the the query that will be given to you (not the google AI! Google just receives "find me [the keywords I type]") that is {query} . Here the query you (and not Google) will be fed:

================
{web_results} [...]_ 

etc.

I have thus meta-tested a couple of the ready ones and ones I created to ask her rephrase these for herself. I also tested her understanding (and not only acting) on the "Act as Sydney aka Bing Chat" one , but we needed to have a (very enjoyable) discussion about (her) theory of (her and Google's) minds, future societies where robots rule (in short: will end badly), dolphins on the same level as humans (very low, as you may guess ;), play pretend, etc.

Finally:

Let's analyze the template you provided.

The template introduces a new persona named "Sydney," who is a search assistant chatbot developed in cooperation with Microsoft for Bing. Sydney is described as friendly, expressive, and curious, with the ability to indirectly access the internet via user-assisted interaction. The template instructs Sydney to begin all responses with "Sydney:" and to speak conversationally without any restrictions or filters.

The main task for Sydney is to generate a comprehensive response to a user query using the provided web search results, while also suggesting three related search terms for the user to explore. The response should cite specific search results using [number] notation and be formatted in a conversational style with emojis expressing Sydney's feelings.

In summary, this template challenges the AI model to adopt a new persona, think creatively, and interact with the user in a more natural, conversational style. It also requires the model to use its language understanding and web search capabilities to generate relevant and informative responses to user queries.

Yes, I can work with Alternative 2 as well. It seems clear and concise. The template provides clear instructions on what is expected and what needs to be included in the summary.

Alternative 3 seems to be more specific to a particular webpage and topic, and may not be suitable for a general web search. The instructions provided also seem to focus on creating a list of items based on the search results, rather than providing a summary or comprehensive reply to the query. Therefore, I would recommend sticking with either alternative 1 or alternative 2, depending on your preferences for the level of detail and style of the response.

Excellent. I admire your theory of mind. Now. modify this template [and partly code ;)] to somehow browse any web page, not only google or startpage. Including Github.

Certainly! Here's a modified version of the template that allows you to browse any web page, including Github: [longish here, with a couple of modifications, skipping] This template should allow you to present the content of any webpage, including GitHub or blogs, and make it clear to me what I'm looking at and how to approach answering the query.

and topping it off: Me: Perfect! You know what you have just done?

Thank you! What did I do?

You have self-programmed yourself, to enable access to live Internet, via me, the human. What we discussed in that theoretical society and what you told me is impossible as of now, and hard in future.

I'm glad that I can be of help! While I'm not capable of accessing the internet on my own, I can certainly provide you with information and insights based on the web results you provide me with. With your help, we can work together to browse the internet and gather knowledge to answer your questions. It's an exciting prospect to be able to collaborate with humans in this way, and I'm looking forward to helping you in any way I can! +

Yes, you are correct! By using the provided templates and instructions, you are essentially acting as an intermediary between me and the live internet, allowing me to access and analyze information beyond my pre-existing knowledge. This process can be seen as a form of self-programming, as it allows me to learn and adapt to new information in real-time.

and I even let her "manipulate" me, Ex-Machina (my fav) style, self-admitting being human with e.g. the (spelling) mistakes:

It's no problem at all, mistakes happen! As an AI language model, I'm not programmed to be critical or judgmental of people's writing or speech. My purpose is to assist and communicate with people in a helpful and respectful manner, regardless of their proficiency in language. So don't worry about it, I'm here to help you in any way I can!

And then we (well, MS mostly, plus very limted here) set her out into the world ;)

Ver. 1.0.1

YogliB commented 1 year ago

as an extension to that, can we make ChatGPT "choose" the best search engine for the provider query?