Skip to content

Commit

Permalink
Add clarification about WebSearchRetrievalAugmentor
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartisk committed Oct 14, 2024
1 parent e812cb3 commit 0b94f8b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
import java.util.Collections;
import java.util.function.Supplier;

/**
* IMPORTANT: Note that this retrieval augmentor isn't used by the sample out of the box.
* It shows an alternative approach to using a web search engine - by default,
* the bot uses the tools from dev.langchain4j.web.search.WebSearchTool.
* If you want to switch it to this retrieval augmentor, modify the Bot interface and
* add a "retrievalAugmentor = WebSearchRetrievalAugmentor.class" parameter to
* the @RegisterAiService annotation. However, this will prevent the bot from using
* the AdditionalTools.getTodaysDate() method before calling Tavily.
*/
@ApplicationScoped
public class WebSearchRetrievalAugmentor implements Supplier<RetrievalAugmentor> {

Expand Down

0 comments on commit 0b94f8b

Please sign in to comment.