Package com.embabel.agent.rag.tools
Class SingleShotRagServiceSearchTools
-
- All Implemented Interfaces:
public final class SingleShotRagServiceSearchToolsExpose 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 RagOptionsoptions
-
Constructor Summary
Constructors Constructor Description SingleShotRagServiceSearchTools(RagOptions options)
-
Method Summary
Modifier and Type Method Description final RagOptionsgetOptions()final Stringsearch(@ToolParam(description = "Standalone query to search for. Include sufficient context") String query)-
-
Constructor Detail
-
SingleShotRagServiceSearchTools
SingleShotRagServiceSearchTools(RagOptions options)
-
-
Method Detail
-
getOptions
final RagOptions getOptions()
-
-
-
-