DualShotRagServiceSearchTools

class DualShotRagServiceSearchTools(val ragService: RagService, val options: RagOptions, val summarizer: RagResponseSummarizer)

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.

Constructors

Link copied to clipboard
constructor(ragService: RagService, options: RagOptions, summarizer: RagResponseSummarizer)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun search(query: String): String
Link copied to clipboard