Adding individual webpages to your search agent allows for the inclusion of specific, high-quality content that can directly answer user queries. The add_webpage
method streamlines the process of incorporating content from single webpages, enhancing the search agent’s ability to provide precise and relevant search results.
The add_webpage
function is tailored for adding content from a single webpage, using a range of parameters to fine-tune how this content is processed and indexed.
Optional[str]
): The URL of the webpage to be added. This specifies the exact page whose content you wish to make searchable.str
): An optional prompt to guide the system in how to process the content of the webpage. It can be used to direct the focus of content extraction towards relevant information.str
): An optional prompt that can enhance the relevance of search queries by wrapping them in a specific context related to the webpage content.Union[str, EmbedType]
): The embedding model used for processing and embedding the webpage’s text content. Defaults to a standard model suitable for general web content.dict
): Parameters for integrating Large Language Models to augment content understanding and query processing capabilities.dict
): Configuration for the vector storage, specifying how and where the extracted content embeddings are stored.dict
): Additional parameters to customize the service context specific to the webpage’s content.dict
): Customization parameters for the query engine, affecting how the webpage content is searched and matched with queries.dict
): Configuration for the document retriever component, determining how the webpage content is indexed and retrieved based on search queries.This example adds content from a specific webpage.
Adding individual webpages to your search agent allows for the inclusion of specific, high-quality content that can directly answer user queries. The add_webpage
method streamlines the process of incorporating content from single webpages, enhancing the search agent’s ability to provide precise and relevant search results.
The add_webpage
function is tailored for adding content from a single webpage, using a range of parameters to fine-tune how this content is processed and indexed.
Optional[str]
): The URL of the webpage to be added. This specifies the exact page whose content you wish to make searchable.str
): An optional prompt to guide the system in how to process the content of the webpage. It can be used to direct the focus of content extraction towards relevant information.str
): An optional prompt that can enhance the relevance of search queries by wrapping them in a specific context related to the webpage content.Union[str, EmbedType]
): The embedding model used for processing and embedding the webpage’s text content. Defaults to a standard model suitable for general web content.dict
): Parameters for integrating Large Language Models to augment content understanding and query processing capabilities.dict
): Configuration for the vector storage, specifying how and where the extracted content embeddings are stored.dict
): Additional parameters to customize the service context specific to the webpage’s content.dict
): Customization parameters for the query engine, affecting how the webpage content is searched and matched with queries.dict
): Configuration for the document retriever component, determining how the webpage content is indexed and retrieved based on search queries.This example adds content from a specific webpage.