From 3e662e4eeaf853c2dce431f7f5618e7552afb6b3 Mon Sep 17 00:00:00 2001 From: jeffrey Date: Thu, 15 Feb 2024 10:46:58 +0000 Subject: [PATCH] change test_evaluator_cli to set env variable BM25 --- tests/autorag/test_evaluator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/autorag/test_evaluator.py b/tests/autorag/test_evaluator.py index 76c87faee..2ee4cd8a7 100644 --- a/tests/autorag/test_evaluator.py +++ b/tests/autorag/test_evaluator.py @@ -128,6 +128,7 @@ def test_start_trial(evaluator): def test_evaluator_cli(): + os.environ['BM25'] = 'bm25' with tempfile.TemporaryDirectory() as project_dir: result = subprocess.run(['autorag', 'evaluate', '--config', os.path.join(resource_dir, 'simple.yaml'), '--qa_data_path', os.path.join(resource_dir, 'qa_data_sample.parquet'),