Class SingleShotRagServiceSearchTools

  • All Implemented Interfaces:

    
    public final class SingleShotRagServiceSearchTools
    
                        

    Expose 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final RagOptions options
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final RagOptions getOptions()
      final String search(@ToolParam(description = "Standalone query to search for. Include sufficient context") String query)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SingleShotRagServiceSearchTools

        SingleShotRagServiceSearchTools(RagOptions options)
    • Method Detail

      • search

        @Tool(description = "Search for information relating to this query. Returns detailed results") final String search(@ToolParam(description = "Standalone query to search for. Include sufficient context") String query)