RagReference

class RagReference(val name: String, val description: String, val options: RagOptions, summarizerPromptRunner: PromptRunner) : LlmReference

Expose a RagService as an LlmReference with tools.

Constructors

Link copied to clipboard
constructor(name: String, description: String, options: RagOptions, summarizerPromptRunner: PromptRunner)

Properties

Link copied to clipboard
Link copied to clipboard
open val name: String
Link copied to clipboard

Functions

Link copied to clipboard
open fun contribution(): String
Link copied to clipboard
open override fun notes(): String

Notes about this reference, such as usage guidance. Does not need to consider prompt prefix, name or description as they will be added automatically.

Link copied to clipboard
open override fun toolInstance(): Any

Return the instance of the tool object. Defaults to this

Link copied to clipboard

Create a tool object for this reference.

Link copied to clipboard
open fun toolPrefix(): String

A safe prefix for LLM tools associated with this reference. Defaults to the name lowercased with spaces replaced by underscores. Subclasses can override it