EvalSample

org.llm4s.rag.evaluation.EvalSample
final case class EvalSample(question: String, answer: String, contexts: Seq[String], groundTruth: Option[String], metadata: Map[String, String])

A single evaluation sample containing all inputs needed for RAGAS metrics.

Value parameters

answer

The generated answer from the RAG system

contexts

The retrieved context documents used to generate the answer

groundTruth

Optional ground truth answer (required for precision/recall metrics)

metadata

Additional metadata for tracking/filtering

question

The user's query

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