Skip to main content
Use this tutorial when your evaluator depends on retrieved documents as context. This is the standard RAG pattern for Luna evaluators such as context adherence.

Dataset schema

Minimum columns:
  • documents: the retrieved context
  • at least one of:
    • input: the user question
    • output: the model answer
  • label: the ground-truth class for the evaluator

Config shape

Set:
  • data_generation.metric.input_format: "rag"
  • data_generation.source_data.dataset.columns.features to a subset of ["documents", "input", "output"]
  • generation.context_examples: 1

Minimal end-to-end config