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