You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/chatbot-web-search/src/main/java/io/quarkiverse/langchain4j/sample/chatbot/WebSearchRetrievalAugmentor.java
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,15 @@
12
12
importjava.util.Collections;
13
13
importjava.util.function.Supplier;
14
14
15
+
/**
16
+
* IMPORTANT: Note that this retrieval augmentor isn't used by the sample out of the box.
17
+
* It shows an alternative approach to using a web search engine - by default,
18
+
* the bot uses the tools from dev.langchain4j.web.search.WebSearchTool.
19
+
* If you want to switch it to this retrieval augmentor, modify the Bot interface and
20
+
* add a "retrievalAugmentor = WebSearchRetrievalAugmentor.class" parameter to
21
+
* the @RegisterAiService annotation. However, this will prevent the bot from using
22
+
* the AdditionalTools.getTodaysDate() method before calling Tavily.
0 commit comments