From e732231f6f30f8229c30156f25fc572fb9c23ffa Mon Sep 17 00:00:00 2001 From: ikka Date: Sat, 28 Dec 2024 10:54:11 +0530 Subject: [PATCH] docs: fix typo (#1801) --- docs/getstarted/evals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getstarted/evals.md b/docs/getstarted/evals.md index bb76aa62e..7e79c019d 100644 --- a/docs/getstarted/evals.md +++ b/docs/getstarted/evals.md @@ -212,7 +212,7 @@ from ragas.config import InstructionConfig, DemonstrationConfig demo_config = DemonstrationConfig(embedding=evaluator_embeddings) inst_config = InstructionConfig(llm=evaluator_llm) -evaluator.train(path="", demonstration_config=demo_config, instruction_config=inst_config) +metric.train(path="", demonstration_config=demo_config, instruction_config=inst_config) ``` Once trained, you can re-evaluate the same or different test datasets. You should notice that the metric now aligns with your preferences and makes fewer mistakes, improving its accuracy.