flairNLP / fabricator

[EMNLP 2023 Demo] fabricator - annotating and generating datasets with large language models.
Apache License 2.0
99 stars 13 forks source link

Upgrade haystack & fix imports in tests #16

Closed julian-risch closed 1 year ago

julian-risch commented 1 year ago

This PR pins the Haystack dependency to >= 1.18.0. The advantage is that torch won't be installed anymore, thus the installation is leaner and faster. Haystack 1.18.0 comes with a breaking change affecting how we use the HaystackPromptTemplate here, which is why I removed one parameter and renamed another. While running the tests I noticed that the import doesn't work so this PR fixes that too.

Please note that after merging this you will need to run pip install --upgrade farm-haystack or pip install -r requirements.txt in a fresh environment.