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 Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article