SingleShotRagServiceSearchTools

class SingleShotRagServiceSearchTools(val ragService: RagService, val options: RagOptions)

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)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

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