Class WebSearchContentRetriever
-
- All Implemented Interfaces:
-
dev.langchain4j.rag.content.retriever.ContentRetriever
public class WebSearchContentRetriever 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 textSegment can contain either a snippet of a web page or a complete content of a web page.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classWebSearchContentRetriever.WebSearchContentRetrieverBuilder
-
Constructor Summary
Constructors Constructor Description WebSearchContentRetriever(WebSearchEngine webSearchEngine, Integer maxResults)
-
Method Summary
-
-
Constructor Detail
-
WebSearchContentRetriever
WebSearchContentRetriever(WebSearchEngine webSearchEngine, Integer maxResults)
-
-
-
-