LLMQualityGuardrail

org.llm4s.agent.guardrails.builtin.LLMQualityGuardrail
See theLLMQualityGuardrail companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(client: LLMClient, originalQuery: String, threshold: Double): LLMQualityGuardrail

Builds a quality guardrail for a query.

Builds a quality guardrail for a query.

Value parameters

client

the client that makes the judge call

originalQuery

the query the response is judged against

threshold

the lowest score that passes (default 0.7)

Attributes

def highQuality(client: LLMClient, originalQuery: String): LLMQualityGuardrail

Builds a quality guardrail with a threshold of 0.85.

Builds a quality guardrail with a threshold of 0.85.

Value parameters

client

the client that makes the judge call

originalQuery

the query the response is judged against

Attributes