Implementing web-search with LLM

I am using chatGPT API to make requests to create a conversational chatbot but i do now how can i use Web search to give current queries reply also.

1 Like

Welcome to the Forum!

You should take a look at this OpenAI cookbook:

2 Likes

Thanks for the help and support

1 Like

I have some queries related to the code provided in the cookbook
why you filtered the data from openai site only like this

site_filter="https://openai.com"

I think there are two points here. For one, the example is focused on official OpenAI product updates - hence, it makes sense to restrict the source of informaton to the OpenAI website.

Second, the author highlights the following at the top of the cookbook:

Disclaimer: This cookbook is for educational purposes only. Ensure that you comply with all applicable laws and service terms when using web search and scraping technologies. This cookbook will restrict the search to openai.com domain to retrieve the public information to illustrate the concepts.

1 Like