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 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