cookbook.eval¶
cookbook.eval
¶
Evaluation glue.
Wraps RAGAS and DeepEval into a single evaluate() call so every notebook
ends the same way: pipeline in, metrics dict out. Recipes that need finer
control (recipe 37 for RAGAS, recipe 38 for DeepEval-in-CI) call the
underlying libraries directly.
EvalSample
dataclass
¶
evaluate(samples, *, use_ragas=True, use_deepeval=False)
¶
Run the requested metric suites and merge their results.
Source code in cookbook/eval.py
run_qa_against(pipeline, questions)
¶
Run a pipeline(question) -> (answer, contexts) over an eval set.