Package com.embabel.agent.rag.tools
Class DualShotRagServiceSearchTools
-
- All Implemented Interfaces:
public final class DualShotRagServiceSearchToolsExpose a RagService as tools. Once the tools instance is created, options such as similarity cutoff are immutable and will be used consistently in all calls. The LLM needs to provide only the search query.
-
-
Field Summary
Fields Modifier and Type Field Description private final RagOptionsoptionsprivate final RagResponseSummarizersummarizer
-
Constructor Summary
Constructors Constructor Description DualShotRagServiceSearchTools(RagOptions options, RagResponseSummarizer summarizer)
-
Method Summary
Modifier and Type Method Description final RagOptionsgetOptions()final RagResponseSummarizergetSummarizer()final Stringsearch(@ToolParam(description = "Standalone query to search for. Include sufficient context") String query)final StringsearchDetails(@ToolParam(description = "Standalone query to search for. Include sufficient context") String query)-
-
Constructor Detail
-
DualShotRagServiceSearchTools
DualShotRagServiceSearchTools(RagOptions options, RagResponseSummarizer summarizer)
-
-
Method Detail
-
getOptions
final RagOptions getOptions()
-
getSummarizer
final RagResponseSummarizer getSummarizer()
-
search
@Tool(description = "Search for information relating to this query. Returns summary results") final String search(@ToolParam(description = "Standalone query to search for. Include sufficient context") String query)
-
searchDetails
@Tool(description = "Drill deep into the details of the last search result") final String searchDetails(@ToolParam(description = "Standalone query to search for. Include sufficient context") String query)
-
-
-
-