SourceAttributionResult
org.llm4s.agent.guardrails.rag.SourceAttributionResult
final case class SourceAttributionResult(hasAttributions: Boolean, attributionScore: Double, citedSources: Seq[String], uncitedClaims: Seq[String], explanation: String)
Result of source attribution evaluation.
Value parameters
- attributionScore
-
Score for quality of attributions (0.0 to 1.0)
- citedSources
-
List of sources that were cited in the response
- explanation
-
Brief explanation of the evaluation
- hasAttributions
-
Whether the response contains any source citations
- uncitedClaims
-
Claims that should have been cited but weren't
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article