From 37a25940d68ac586c40eb4aaaaad4ca38edc345a Mon Sep 17 00:00:00 2001 From: parkervg Date: Tue, 15 Oct 2024 20:00:44 -0400 Subject: [PATCH] Since we made haystack required, removing importlib check --- blendsql/ingredients/retriever.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/blendsql/ingredients/retriever.py b/blendsql/ingredients/retriever.py index 6b83a16..d28e05d 100644 --- a/blendsql/ingredients/retriever.py +++ b/blendsql/ingredients/retriever.py @@ -1,19 +1,3 @@ -import importlib.util - -_has_haystack = importlib.util.find_spec("haystack") is not None -_has_sentence_transformers = ( - importlib.util.find_spec("sentence_transformers") is not None -) - -if not _has_haystack: - raise ImportError( - 'Please install haystack with `pip install "haystack-ai>2.0.0"`!' - ) from None - -if not _has_sentence_transformers: - raise ImportError( - "Please install sentence_transformers with `pip install sentence_transformers`!" - ) from None import os from attr import attrs, attrib, Factory from typing import List, Dict, TypeVar, Union