Skip to content

Commit

Permalink
Since we made haystack required, removing importlib check
Browse files Browse the repository at this point in the history
  • Loading branch information
parkervg committed Oct 16, 2024
1 parent 78100b9 commit 37a2594
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions blendsql/ingredients/retriever.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 37a2594

Please sign in to comment.