haystack/test/pipelines/conftest.py
Silvano Cerza 5ac3dffbef
test: Rework conftest (#4614)
* Split root conftest into multiple ones and remove unused fixtures

* Remove some constants and make them fixtures

* Remove unnecessary fixture scoping

* Fix failing whisper tests

* Fix image_file_paths fixture
2023-04-11 10:33:43 +02:00

15 lines
320 B
Python

import pytest
from haystack.nodes import FARMReader
@pytest.fixture
def reader_without_normalized_scores():
return FARMReader(
model_name_or_path="deepset/bert-medium-squad2-distilled",
use_gpu=False,
top_k_per_sample=5,
num_processes=0,
use_confidence_scores=False,
)