EvalResult

org.llm4s.rag.evaluation.EvalResult
final case class EvalResult(sample: EvalSample, metrics: Seq[MetricResult], ragasScore: Double, evaluatedAt: Long)

Complete evaluation result for a single sample.

Value parameters

evaluatedAt

Timestamp of evaluation

metrics

Results from each evaluated metric

ragasScore

Composite RAGAS score (mean of all metric scores)

sample

The evaluated sample

Attributes

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

Members list

Value members

Concrete methods

def getMetric(name: String): Option[MetricResult]

Get a specific metric result by name.

Get a specific metric result by name.

Attributes

def metricPassed(name: String, threshold: Double): Boolean

Check if a specific metric passed a threshold.

Check if a specific metric passed a threshold.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product