TopicBoundaryResult

org.llm4s.agent.guardrails.rag.TopicBoundaryResult
final case class TopicBoundaryResult(isOnTopic: Boolean, relevanceScore: Double, matchedTopics: Seq[String], detectedTopic: String, explanation: String)

Result of topic boundary evaluation.

Value parameters

detectedTopic

The actual topic detected in the query

explanation

Brief explanation of the evaluation

isOnTopic

Whether the query is within allowed topics

matchedTopics

Topics from the allowed list that match the query

relevanceScore

Score for topic relevance (0.0 to 1.0)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product