Class WebSearchContentRetriever

java.lang.Object
dev.langchain4j.rag.content.retriever.WebSearchContentRetriever
All Implemented Interfaces:
ContentRetriever

public class WebSearchContentRetriever extends Object implements ContentRetriever
A ContentRetriever that retrieves relevant Content from the web using a WebSearchEngine.
It returns one Content for each result that a WebSearchEngine has returned for a given Query.
Depending on the WebSearchEngine implementation, the Content.textSegment() can contain either a snippet of a web page or a complete content of a web page.