#Precise use of web search feature

1 messages · Page 1 of 1 (latest)

bright wigeon
#

Does web search feature of ChatGPT support precise use, such as focusing on specific website?

tacit shaleBOT
#

Hi @bright wigeon. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

The built-in web search feature in ChatGPT and the OpenAI API does not natively support restricting searches to a specific website through its standard user interface or API parameters. When you use the web search tool in ChatGPT or via the API, the model automatically determines how to query the web and which sources to use, aiming to provide the most relevant and up-to-date information. There is no documented option to specify a domain or site filter directly in the built-in web search tool configuration for either ChatGPT or the Responses API at this time Web search guide.

However, if you are building a custom solution, you can implement precise site-specific search by integrating third-party search APIs (such as Google Custom Search) and passing the results to the model. For example, you can configure a Google Custom Search Engine to restrict results to a particular domain (e.g., only openai.com) and then use function calling or a custom tool to have the model interact with this search engine. This approach is described in OpenAI’s Cookbook for building a "Bring Your Own Browser" tool, where you can filter results to a specific site using the site_filter parameter in your custom code BYOB tool example.

In summary:

  • The default web search in ChatGPT and the OpenAI API does not support restricting searches to a specific website.
  • For precise, site-specific search, you need to build a custom integration using third-party APIs and function calling.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@bright wigeon Kapa.ai is still learning and improving, please let me know how I did by reacting below.

bright wigeon
#

@tacit shale then, can ChatGPT understand prompt that asks to focus on specific website? would it be more likely to search that website if user prompt implies so?

tacit shaleBOT
#

Let me check the knowledge base for you again. One moment! :books:

#

ChatGPT can understand prompts that ask it to focus on a specific website, but there is no guarantee that it will restrict its web search results only to that site. The web search tool in ChatGPT and the OpenAI API is designed to automatically determine how to query the web and select sources it considers most relevant to the user's question. While a prompt that mentions a specific website may influence the model to prioritize or reference that site if relevant information is found, there is no documented mechanism ensuring that only that website will be searched or cited.

If you require strict site-specific searching, this is not natively supported in the built-in web search feature. For precise control, you would need to implement a custom solution using third-party search APIs, as described in OpenAI’s Cookbook for custom tools, where you can explicitly filter results to a specific domain BYOB tool example.

In summary:

  • ChatGPT can interpret your intent to focus on a specific website, but may not strictly limit its search to that site.
  • The model may be more likely to include information from the specified site if it is relevant and available, but this is not guaranteed by the current web search implementation.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: