Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change test_evaluator_cli to set env variable BM25
Browse files Browse the repository at this point in the history
jeffrey committed Feb 15, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 9589e3b commit 3e662e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/autorag/test_evaluator.py
Original file line number Diff line number Diff line change
@@ -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'),

0 comments on commit 3e662e4

Please sign in to comment.