Variable RagSampleSchemaConst
RagSampleSchema: ZodObject<
{
id: ZodOptional<ZodString>;
question: ZodString;
answer: ZodString;
contexts: ZodArray<ZodString>;
groundTruth: ZodOptional<ZodString>;
tenantId: ZodOptional<ZodString>;
metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
},
$strip,
> = ...
A single RAG pipeline evaluation sample.
Represents one question-answer-context triple to be scored by the LLM judge. Provide a
groundTruthwhenever you want to run thecontextRecallmetric.